Jump to content
faisal

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

Share this post


Link to post
Share on other sites

Hello,

 

Is it happening in WHMCS 6.3.1 or 3.6.1? If its 3.6.1 you are at risk of major security vulnerabilities and should upgrade right away.

 

Nate

Share this post


Link to post
Share on other sites

Yeah, what Nate said!

Also, when did it start happening? Try rolling back any changes or updates you made, if this was indeed 6.3.1

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Sorry I mean 6.3.1 :-P

 

I will check the hooks and get back to you,

 

Thank you

Share this post


Link to post
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.

Share this post


Link to post
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}

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

disabling addon module may cause all information and settings added by this addons to be deleted, you can temporarily rename each module directory name until you find the one causing this error

Share this post


Link to post
Share on other sites

Thank you everybody that was very helpful

 

I start renaming custom addons/modules and I see it from the second one I tested :)

 

And I sorry about messing up with the version number earlier :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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