I have a commercial site that has been working well for months/years with this setup. Over the weekend, with no updates or changes made as far as I am aware (I am the guy who would handle all of them), I have certain pages that would include content from hidden resources - a way to easily allow for Fred editable muti-tabbed interfaces - these includes have simply stopped rendering. It is baffling. Originally using a simple fastfield call:
[[#780.content]]
I tried re-engineering it to a pdoresources call today to see if I could get it back working:
With no success - it’s like something has changed in the SQL setup or flags or PHP to no longer allow.
The modx error log is showing this error, regardless of fastfield or pdoresources method:
(ERROR @ /home/site-xx-name-xx-here/modx-core/components/pdotools/model/pdotools/pdofetch.class.php : 178) [pdoTools] Error 42000: 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 ‘) ASC, modResource.pagetitle DESC’ at line 1
This error gets generated in the pdoTools extra.
But it’s not clear what the exact SQL syntax error is.
Change modX::LOG_LEVEL_INFO in this line of the code to modX::LOG_LEVEL_ERROR (or change the system setting log_level) to get the full SQL query in the error log.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.