ElliotVS Posted August 16, 2015 Share Posted August 16, 2015 Hello My domainchecker.php is not displaying anything on the page. Every other page works fine. I've tried a different template, that doesnt help. I tried overwriting the WHMCS files to the latest version. With error messages turned on it does not show an error. Screenshot: i.gyazo.com/dbe7816e7f24c49640de58010592c4ff.png Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 16, 2015 Share Posted August 16, 2015 What template you currently use? and version of WHMCS? have you checked Activity Log? you may find error records right there. check http://docs.whmcs.com/Blank_Pages 0 Quote Link to comment Share on other sites More sharing options...
ElliotVS Posted August 17, 2015 Author Share Posted August 17, 2015 What template you currently use? and version of WHMCS? have you checked Activity Log? you may find error records right there. check http://docs.whmcs.com/Blank_Pages I'm using the theme 'Portal' however I've tried others and it still doesnt show. An error that is showing on activity log: Smarty Error: Syntax error in template "/templates/portal/domainchecker.tpl" on line 107 "{foreach key=num item=tldpricelist from=$tldpricelist}" item variable 'tldpricelist' may not be the same variable as at 'from' 0 Quote Link to comment Share on other sites More sharing options...
sujithm Posted September 9, 2015 Share Posted September 9, 2015 I'm using the theme 'Portal' however I've tried others and it still doesnt show. An error that is showing on activity log: Smarty Error: Syntax error in template "/templates/portal/domainchecker.tpl" on line 107 "{foreach key=num item=tldpricelist from=$tldpricelist}" item variable 'tldpricelist' may not be the same variable as at 'from' Hello, I had this problem with my WHMCS, and after checking the Activity log, I got the same error too. What I did was to edit the "/templates/<my_template_folder>/domainchecker.tpl" (as I am using a different template than "portal") and changed the following code Default one was: {foreach from=$tldpricelist item=tldpricelist} <tr> <td>{$tldpricelist.tld}</td> <td class="textcenter">{$tldpricelist.period}</td> <td class="textcenter">{if $tldpricelist.register}{$tldpricelist.register}{else}{$LANG.domainregnotavailable}{/if}</td> <td class="textcenter">{if $tldpricelist.transfer}{$tldpricelist.transfer}{else}{$LANG.domainregnotavailable}{/if}</td> <td class="textcenter">{if $tldpricelist.renew}{$tldpricelist.renew}{else}{$LANG.domainregnotavailable}{/if}</td> </tr> {/foreach} I changed it to {foreach from=$tldpricelist item=tldpricelistitem} <tr> <td>{$tldpricelistitem.tld}</td> <td class="textcenter">{$tldpricelistitem.period}</td> <td class="textcenter">{if $tldpricelistitem.register}{$tldpricelistitem.register}{else}{$LANG.domainregnotavailable}{/if}</td> <td class="textcenter">{if $tldpricelistitem.transfer}{$tldpricelistitem.transfer}{else}{$LANG.domainregnotavailable}{/if}</td> <td class="textcenter">{if $tldpricelistitem.renew}{$tldpricelistitem.renew}{else}{$LANG.domainregnotavailable}{/if}</td> </tr> {/foreach} Please try this.. I am not sure whether a future WHMCS update destroys the changes made on the "portal" template. As I am using a custom template, I was not much concerned about the future WHMCS updates. 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.