razriv132 Posted January 24, 2015 Share Posted January 24, 2015 [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§ion=post&do=edit_post&f=63&t=1334&p=1507&st=0&_from=quickedit Что означает данная ошибка!? Подскажите плз! И как с ней бороться? Link to comment Share on other sites More sharing options...
siv1987 Posted January 24, 2015 Share Posted January 24, 2015 Данная ошибка означает что к строке обращаются по строковому ключу (для строк допустимо только числовое смещение начиная с 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 ) Link to comment Share on other sites More sharing options...
razriv132 Posted January 24, 2015 Author Share Posted January 24, 2015 siv1987 Спасибо большое ошибка вродебы пропала! :huh: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now