Helaly Posted July 20, 2016 Share Posted July 20, 2016 I send a post but i can not see it in the forum ?? - - - Updated - - - here it is Hello Our template "tl4t" was working successfully on version 6.2..After upgrade to V 6.3.1 it stops working completely..We enable smarty php from security tab on the old 6.2 so it is already enabled after upgrade..It seems that smarty not parse the php tags after upgrade..I know that the smarty version on both 6.2 and 6.3 is the same so why our template stops.. Our web site : http://www.tl4t.com/ We need you help ASAP.. Regards 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 20, 2016 Share Posted July 20, 2016 as a new member in this forum, your post need one of the Mods to review and approve it. - - - Updated - - - enable the debug mode http://docs.whmcs.com/Blank_Pages#If_you_can_access_the_Admin_Area then check if there is any error displayed in your client area. also check if Admin -> Utilities -> Logs -> Activity Log has any error records 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted July 20, 2016 Share Posted July 20, 2016 As mentioned, the admin logs might be a bit informative here. Also, take a look through your site for error_logs. You should avoid using {php} in general, in your smarty code. It's been frowned upon for years, and there's plenty of hooks, etc that you can use instead. There's really no guarantee that {php} will continue to be an option. 0 Quote Link to comment Share on other sites More sharing options...
Helaly Posted July 23, 2016 Author Share Posted July 23, 2016 Hello Thank you very much for replies..Errors appear in activity log like Smarty Error: Syntax error in template "/home/tl4tabed/public_html/templates/tl4t/em.tpl" on line 31 "<li class="nav-one"><a href="#core1" class="{php} if ($page=='pub') {echo "current";} else {echo "";} {/php}">{$LANG.emservtit1}</a></li>" unknown tag "echo" Smarty Error: Syntax error in template "/home/tl4tabed/public_html/templates/tl4t/domainchecker.tpl" on line 107 "{foreach key=num item=tldpricelist from=$tldpricelist}" item variable 'tldpricelist' may not be the same variable as at 'from' Smarty Error: Syntax error in template "/home/tl4tabed/public_html/templates/tl4t/ts.tpl" on line 31 "<li class="nav-one"><a href="#core1" class="{php} if ($page=='vblicense') {echo "current";} else {echo "";} {/php}">{$LANG.tsservtit1}</a></li>" unknown tag "echo" Smarty Error: Syntax error in template "/home/tl4tabed/public_html/templates/tl4t/em.tpl" on line 31 "<li class="nav-one"><a href="#core1" class="{php} if ($page=='pub') {echo "current";} else {echo "";} {/php}">{$LANG.emservtit1}</a></li>" unknown tag "echo" But why it works before on 6.2 and stops on 6.3 although the smarty version is the same ???!!! Can you help us in fixing this issue with money ??? and how much ?? Regards 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 23, 2016 Share Posted July 23, 2016 the domainchecker issue can be resolved via the thread below... http://forum.whmcs.com/showthread.php?104806-domainchecker-php-blank-page&p=434771#post434771 I suspect the other issues could be resolved by getting rid of the {php} tags and using Smarty... adding {debug} to your template will tell you if there is a Smarty equivalent variable or array you can use. if you want to pay for someone to help you with this, you'd need to post in Service Offers & Requests 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 23, 2016 Share Posted July 23, 2016 Helaly, the issues you mentioned here is easy to be resolved, you need to replace {echo "";} with echo ""; and {echo "current";} with echo "current"; then in foreach you need to modify it from {foreach key=num item=tldpricelist from=$tldpricelist} to {foreach key=num item=tldprices from=$tldpricelist} and of course replace "tldpricelist" used inside the foreach with the new name "tldprices" 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.