1064-Error on joomla 3 page

吃可爱长大的小学妹 提交于 2019-12-13 20:18:06

问题


I'm building a website (locally), and after a little work - created new categories, deleted all the default ones, created some test articles, unpublished a couple of modules and edited other ones, I tried to open the page and I got this error:

"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 ') AND c.extension = 'com_content' AND c.published = 1' at line 10

SQL=SELECT DISTINCT c.id AS CID FROM sbv9a_categories AS c 
      LEFT JOIN sbv9a_content AS content ON c.id = content.catid 
     WHERE ( content.id = ) AND c.extension = 'com_content' AND c.published = 1

It appears the page you were looking for doesn't exist. Sorry about that."

How can I fix this?


回答1:


You have not given input value for content.id field. And hence the query is incomplete causing an SQLException.

WHERE ( content.id = ) AND c.extension = 'com_content' AND c.published = 1
 -------------------^ value is missing here


来源:https://stackoverflow.com/questions/27562222/1064-error-on-joomla-3-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!