Danya Posted July 25, 2012 Report Share Posted July 25, 2012 Выводит ошибку в админке в блоге, когда выставляешь активность или не активность на записи и нажимаешь кнопку применить:Warning: 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 0' at line 1 [uPDATE s_blog SET visible='1' WHERE id in() LIMIT 0] in /home/u801604994/public_html/api/Database.php on line 116Подскажите, что это может быть и как исправить?Версия Simpla 2.0.2 Quote Link to post Share on other sites
Danya Posted July 25, 2012 Author Report Share Posted July 25, 2012 точно такая же ошибка выводится на демке на официальном сайте Simpla 2.1.3:http://demo.simplacms.ru/simpla/index.php?module=BlogAdminвыключите активность записи и нажмите "ПРИМЕНИТЬ" и выскочит ошибка Quote Link to post Share on other sites
HotHeadMan Posted July 25, 2012 Report Share Posted July 25, 2012 У меня такая же ошибка при включении новой записи. До обновления на 2,1,3 такого не было. Quote Link to post Share on other sites
IGuAn Posted July 26, 2012 Report Share Posted July 26, 2012 У меня нету ни на 2.1.0 ни на 2.1.3. Проверил. Quote Link to post Share on other sites
Danya Posted July 26, 2012 Author Report Share Posted July 26, 2012 IGuAnМожешь выложить файлики блога админки и файл api/Database.php ? Quote Link to post Share on other sites
Noxter Posted July 26, 2012 Report Share Posted July 26, 2012 Database.php тут не при чем.Нужно api/Blog.php и simpla/BlogAdmin.php. Quote Link to post Share on other sites
Novecheg Posted July 26, 2012 Report Share Posted July 26, 2012 Отключите варнинги и будет вам счастье (не в php.ini) Quote Link to post Share on other sites
IGuAn Posted July 26, 2012 Report Share Posted July 26, 2012 http://sdrv.ms/MnwYCj пожалуйста. Quote Link to post Share on other sites
pikusov Posted July 26, 2012 Report Share Posted July 26, 2012 Спасибо, отличный баг.В файле /simpla/BlogAdmin.php на строке 23 лишняя точка с запятой if(is_array($ids)); switch($this->request->post('action'))а должно быть так if(is_array($ids)) switch($this->request->post('action')) Quote Link to post Share on other sites
Danya Posted July 26, 2012 Author Report Share Posted July 26, 2012 спасибо большое! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.