@Darklt

Почему Drupal не запускает сайт?

Ничего не делали, и вдруг сайт перестал работать, Drupal 8.4

Cannot use object of type Drupal\filter\Render\FilteredMarkup as array in Drupal\Component\Utility\Unicode::substr() (line 451 of core/lib/Drupal/Component/Utility/Unicode.php).

Строки там вот такие:

// Find the ending byte offset.
      if ($length === NULL) {
        $iend = $strlen;
      }
      elseif ($length > 0) {
        // Count all the characters except continuation bytes from the starting
        // index until we have found $length characters or reached the end of
        // the string, then backtrace one byte.
        $iend = $istart - 1;
        $chars = -1;
        $last_real = FALSE;
        while ($iend < $strlen - 1 && $chars < $length) {
          $iend++;
         $c = ord($text[$iend]);   // Ругается вот на эту строки
          $last_real = FALSE;
          if ($c < 0x80 || $c >= 0xC0) {
            $chars++;
            $last_real = TRUE;
          }
        }
  • Вопрос задан
  • 35 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы