dle-modules / DLE-BlockPro

Модуль вывода новостей для DLE
http://bp.pafnuty.name/
MIT License
13 stars 14 forks source link

Ошибка MySQL при отсутствии новости, для которой нужно вывести похожие #78

Closed pafnuty closed 8 years ago

pafnuty commented 8 years ago

если новость вообще отсутствует на сайте, то выдает такое:

*** Fatal error: Uncaught exception 'Exception' with message 'SafeMySQL: 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 'LIMIT 8, 3' at line 1. Full query: [SELECT p.id, p.autor, p.date, p.short_story, p.full_story, p.xfields, p.title, p.category, p.alt_name, p.allow_comm, p.comm_num, p.fixed, p.allow_main, p.symbol, p.tags, e.news_read, e.allow_rate, e.rating, e.vote_num, e.votes, e.related_ids, e.view_edit, e.editdate, e.editor, e.reason FROM `dle_post` p LEFT JOIN `dle_post_extras` e ON (p.id=e.news_id) WHERE approve AND NOT category IN ('42') AND MATCH (title, short_story, full_story, xfields) AGAINST (' ') AND id != LIMIT 8, 3]' in /engine/modules/base/core/SafeMySQL.php:632 Stack trace: #0 /engine/modules/base/core/SafeMySQL.php(492): SafeMySQL->error('You have an err...') #1 /engine/modules/base/core/SafeMySQL.php(291): S in /engine/modules/base/core/SafeMySQL.php on line 632
pafnuty commented 8 years ago

https://github.com/pafnuty/BlockPro/releases/tag/v4.8.1