Skip to content

Ошибка при редактирование поста!

[sat Jan 24 06:21:02 2015] [warn] [client 78.37.15.64] mod_fcgid: stderr: PHP Warning:  Illegal string offset 'edit_topic' in /admin/applications/forums/sources/classes/post/classPost.php on line 2239, referer: /index.php?app=forums&module=post&section=post&do=edit_post&f=63&t=1334&p=1507&st=0&_from=quickedit

 

Что означает данная ошибка!? Подскажите плз! И как с ней бороться?

Featured Replies

Данная ошибка означает что к строке обращаются по строковому ключу (для строк допустимо только числовое смещение начиная с php 5.4). string - указывает что это строка, offset - смещение по 'edit_topic', недопустимое для строке. Возникает из-за того, что вместо ожидаемого массива там оказывается строка.

Борются с ней дополнительной проверкой переменной.

 

Открыть /admin/applications/forums/sources/classes/post/classPost.php

Найти:

 

($this->moderator['edit_topic'] == 1)

Заменить на:

 

( isset($this->moderator['edit_topic']) AND $this->moderator['edit_topic'] == 1 )

  • Author

siv1987 Спасибо большое ошибка вродебы пропала! :huh:

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.