Jump to content

domainchecker.php blank page


ElliotVS

Recommended Posts

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?

Link to comment
Share on other sites

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'

Link to comment
Share on other sites

  • 4 weeks later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated