Page 1 of 1

Category list parsing problem ONLY on gallery pages.

Posted: Fri Nov 24, 2017 8:49 am
by alexscj
Hello,

TCMS Build 201711240647 , in the bottom template I have this category list:

Code: Select all

<ul><category order=alphabet num=1-209><li><a href="/cat/<!--CATEGORY_CUSTOM_NAME-->"><!--CATEGORY_NAME--></a> (<!--TOTAL_ITEMS-->)</li></category></ul>
<ul><category order=alphabet num=210-418><li><a href="/cat/<!--CATEGORY_CUSTOM_NAME-->"><!--CATEGORY_NAME--></a> (<!--TOTAL_ITEMS-->)</li></category></ul>
<ul><category order=alphabet num=419-627><li><a href="/cat/<!--CATEGORY_CUSTOM_NAME-->"><!--CATEGORY_NAME--></a> (<!--TOTAL_ITEMS-->)</li></category></ul>
<ul><category order=alphabet num=628-836><li><a href="/cat/<!--CATEGORY_CUSTOM_NAME-->"><!--CATEGORY_NAME--></a> (<!--TOTAL_ITEMS-->)</li></category></ul>
<ul><category order=alphabet num=837-1045><li><a href="/cat/<!--CATEGORY_CUSTOM_NAME-->"><!--CATEGORY_NAME--></a> (<!--TOTAL_ITEMS-->)</li></category></ul>
Only on the gallery pages it produces this error:

Code: Select all

Warning, can not parse template (content_page) (Error: Type 4, syntax error, unexpected '==' (T_IS_EQUAL), line 110 )
All other pages are parsed without errors and display the category list fine.

What could be the problem ?

Re: Category list parsing problem ONLY on gallery pages.

Posted: Fri Nov 24, 2017 1:06 pm
by admin
100% its an error in your php code, not tags

Re: Category list parsing problem ONLY on gallery pages.

Posted: Tue Nov 28, 2017 10:18 am
by alexscj
Checked everything; as soon as I remove just the group list (leaving all php code there) from the bottom template the gallery pages start loading fine.

On one site, TCMS Build 201711220836, I don't have this issue. All php code is exactly the same like on the sites with the problem, also using the same templates, same master db, same groups etc.

Re: Category list parsing problem ONLY on gallery pages.

Posted: Tue Nov 28, 2017 1:35 pm
by admin
It doesn't matter

Usually I see errors where people doens't escape parameters or don't use quotes (" or ') around tags

Post your code plz, I'm 99% sure you have pretty much the same mistake there and i'm 100% sure it's in your php code