Код: Выделить всё
Общая ошибка
SQL ERROR [ mysql4 ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE notification_type_id = 7 AND item_id = 2' at line 3 [1064]
SQL
SELECT notification_data FROM WHERE notification_type_id = 7 AND item_id = 2
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 999
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysql.php
LINE: 191
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysql->sql_query()
FILE: [ROOT]/ext/gfksx/ThanksForPosts/notification/thanks.php
LINE: 289
CALL: phpbb\db\driver\factory->sql_query()
FILE: [ROOT]/phpbb/notification/method/board.php
LINE: 298
CALL: gfksx\ThanksForPosts\notification\thanks->create_update_array()
FILE: [ROOT]/phpbb/notification/manager.php
LINE: 426
CALL: phpbb\notification\method\board->update_notification()
FILE: [ROOT]/phpbb/notification/manager.php
LINE: 406
CALL: phpbb\notification\manager->update_notification()
FILE: [ROOT]/ext/gfksx/ThanksForPosts/core/helper.php
LINE: 910
CALL: phpbb\notification\manager->update_notifications()
FILE: [ROOT]/ext/gfksx/ThanksForPosts/core/helper.php
LINE: 210
CALL: gfksx\ThanksForPosts\core\helper->add_notification()
FILE: [ROOT]/ext/gfksx/ThanksForPosts/event/listener.php
LINE: 186
CALL: gfksx\ThanksForPosts\core\helper->insert_thanks()
FILE: (not given by php)
LINE: (not given by php)
CALL: gfksx\ThanksForPosts\event\listener->viewtopic_handle_thanks()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 181
CALL: call_user_func()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/viewtopic.php
LINE: 1169
CALL: phpbb\event\dispatcher->trigger_event()Кэш вычищал в ручную и через админ панель.
Как я понимаю ошибка указывает на этот код запроса:
Код: Выделить всё
$sql = 'SELECT notification_data
FROM ' . $this->notifications_table . '
WHERE notification_type_id = ' . (int) $this->notification_type_id . '
AND item_id = ' . (int) self::get_item_id($thanks_data);Почему то в ошибке отсутствует название таблицы:
SELECT notification_data FROM тут нет таблицы WHERE notification_type_id = 7 AND item_id = 2


