Category list parsing problem ONLY on gallery pages.

Post Reply
alexscj
Posts: 97
Joined: Mon Apr 01, 2013 3:04 pm

Category list parsing problem ONLY on gallery pages.

Post by alexscj » Fri Nov 24, 2017 8:49 am

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 ?

admin
Site Admin
Posts: 24468
Joined: Wed Sep 10, 2008 11:43 am

Re: Category list parsing problem ONLY on gallery pages.

Post by admin » Fri Nov 24, 2017 1:06 pm

100% its an error in your php code, not tags
Have you done script update ?

alexscj
Posts: 97
Joined: Mon Apr 01, 2013 3:04 pm

Re: Category list parsing problem ONLY on gallery pages.

Post by alexscj » Tue Nov 28, 2017 10:18 am

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.

admin
Site Admin
Posts: 24468
Joined: Wed Sep 10, 2008 11:43 am

Re: Category list parsing problem ONLY on gallery pages.

Post by admin » Tue Nov 28, 2017 1:35 pm

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
Have you done script update ?

Post Reply