Jump to content

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


razriv132
 Share

Recommended Posts

[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

 

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

Link to comment
Share on other sites

Данная ошибка означает что к строке обращаются по строковому ключу (для строк допустимо только числовое смещение начиная с 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...