Category list parsing problem ONLY on gallery pages.

Category list parsing problem ONLY on gallery pages.

Postby alexscj on 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 ?
alexscj
 
Posts: 98
Joined: Mon Apr 01, 2013 3:04 pm

Re: Category list parsing problem ONLY on gallery pages.

Postby admin on Fri Nov 24, 2017 1:06 pm

100% its an error in your php code, not tags
Have you done script update ?
admin
Site Admin
 
Posts: 23901
Joined: Wed Sep 10, 2008 11:43 am

Re: Category list parsing problem ONLY on gallery pages.

Postby alexscj on 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.
alexscj
 
Posts: 98
Joined: Mon Apr 01, 2013 3:04 pm

Re: Category list parsing problem ONLY on gallery pages.

Postby admin on 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 ?
admin
Site Admin
 
Posts: 23901
Joined: Wed Sep 10, 2008 11:43 am


Return to SmartCJ Support Forum

Who is online

Users browsing this forum: No registered users and 3 guests