<![CDATA[ Unable to preview not-published pages (MODx Parse Error / error in SQL syntax) - My Forums]]> https://forums.modx.com/thread/?thread=36141 <![CDATA[Re: Unable to preview not-published pages (MODx Parse Error / error in SQL syntax)]]> https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203293 Charlie99 Jun 08, 2011, 09:47 PM https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203293 <![CDATA[Re: Unable to preview not-published pages (MODx Parse Error / error in SQL syntax)]]> https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203292 brucec May 30, 2011, 12:46 PM https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203292 <![CDATA[Re: Unable to preview not-published pages (MODx Parse Error / error in SQL syntax)]]> https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203291 As you can see, here lies the error: .....secip=’127.0.0.1’,sechash=’66bdcc49bb898112067978e80ee45071’,uparent=’9’,tagid=’’,published=’1’ WHERE id=;
]]>
Hitcliff Mar 21, 2011, 09:44 AM https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203291
<![CDATA[Re: Unable to preview not-published pages (MODx Parse Error / error in SQL syntax)]]> https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203290 opengeek Mar 08, 2010, 08:23 AM https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203290 <![CDATA[Re: Unable to preview not-published pages (MODx Parse Error / error in SQL syntax)]]> https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203289
I have a similar problem - once unpublished the page throws up a lot of html code back if a user is not logged in. No 404 page.]]>
papachumba Mar 08, 2010, 06:45 AM https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203289
<![CDATA[Unable to preview not-published pages (MODx Parse Error / error in SQL syntax)]]> https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203288 Page Settings -> Published? is unticked) that they are editing, by using the "Preview" tab.

This is not a feature that I normally use myself (publish, view in a new browser window, and then re-edit until done, is my way), but having tested this, the problem also occurs to me as well.

When trying to preview the not-published page, instead of the preview, the MODx preview tab displays the following error message:

« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - 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 '' at line 1 »
      SQL: SELECT fullname FROM `modx`.`modx_user_attributes` WHERE `modx`.`modx_user_attributes`.id = 


It looks as though one of the MODx SQL calls is getting truncated part-way through.

Does anybody have any ideas what may be causing the problem, and how I could resolve it?

Thanks for any advice.
]]>
david55 Nov 19, 2009, 12:09 PM https://forums.modx.com/thread/36141/unable-to-preview-not-published-pages-modx-parse-error-error-in-sql-syntax#dis-post-203288