Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Опубликовано:

[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

 

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

Рекомендованные сообщения

Опубликовано:

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

Опубликовано:
  • Автор

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

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.