Jump to content

Array !! in Client Profile Summary Tab


Recommended Posts

Hi All

 

 

We just notes in some clients, in Admin area -> Client Profile -> Summary Tab

 

Right under Client Name just the word Array

 

 

Summary.png

 

 

I see in whmcs/admin/templates/v4/clientssummary.tpl

 

This where the Array word come from and we don't have any addons at all!

 

{foreach from=$addons_html item=addon_html}
<div style="margin-bottom:10px;">{$addon_html}</div>
{/foreach}

 

 

 

Any idea what is this about?

 

WHMCS 3.6.1

 

Thank you

Link to comment
Share on other sites

Hi All

 

 

We just notes in some clients, in Admin area -> Client Profile -> Summary Tab

 

Right under Client Name just the word Array

 

 

[ATTACH=CONFIG]11314[/ATTACH]

 

 

I see in whmcs/admin/templates/v4/clientssummary.tpl

 

This where the Array word come from and we don't have any addons at all!

 

{foreach from=$addons_html item=addon_html}
<div style="margin-bottom:10px;">{$addon_html}</div>
{/foreach}

 

 

 

Any idea what is this about?

 

WHMCS 3.6.1

 

Thank you

 

this can be caused by one of the ActionHook files installed in your system, you need disable each of these files to find out which one is doing this, start with /includes/hooks/ directory

Link to comment
Share on other sites

then perhaps it could be an addon module causing this. :?:

 

but before you go and start removing your addon modules, if you believe the above code is causing the output, you can remove the code from /admin/templates/v4/clientsummary.tpl @ line 29 and see if that resolves the issue.

Link to comment
Share on other sites

then perhaps it could be an addon module causing this. :?:

 

but before you go and start removing your addon modules, if you believe the above code is causing the output, you can remove the code from /admin/templates/v4/clientsummary.tpl @ line 29 and see if that resolves the issue.

 

 

Yes I believe the above code I did this simple test

 

{foreach from=$addons_html item=addon_html}
<div style="margin-bottom:10px;">1 {$addon_html} 2</div>
{/foreach}

 

It output:

 

1 Array 2

 

 

If I disable an addon it will delete data in it right?

 

And yes, if I remove all the addons foreach code the "Array" word is gone.

 

I also tray this code but same problem

{if $addons_html}
   {foreach from=$addons_html item=addon_html}
   <div style="margin-bottom:10px;">{$addon_html}</div>
   {/foreach}
{/if}

Link to comment
Share on other sites

If I disable an addon it will delete data in it right?

it shouldn't necessarily as the data will be in the database, but I was working on the assumption that if you have these addons installed, you need and are using them... hence why not to disable them. :idea:

 

And yes, if I remove all the addons foreach code the "Array" word is gone.

I also try this code but same problem

the problem with that code is it tells the foreach loop to work if $addon_html exists - but we know it exists (as it's outputting 'Array'!), so will always work.

 

if it were me, and this 'Array' text was the only issue being seen, i'd just delete that foreach loop and not worry about it.

 

I might be tempted to disable the addons one-by-one to see which one is causing this output and then contact that addon's author, but I doubt I would bother to do that... unless I found functional errors rather than visual ones like this.

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