faisal Posted July 12, 2016 Share Posted July 12, 2016 Hi All We just notes in some clients, in Admin area -> Client Profile -> Summary Tab Right under Client Name just the word Array 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Nate Posted July 12, 2016 Share Posted July 12, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted July 12, 2016 Share Posted July 12, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 13, 2016 Share Posted July 13, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted July 13, 2016 Author Share Posted July 13, 2016 Sorry I mean 6.3.1 I will check the hooks and get back to you, Thank you 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted July 13, 2016 Author Share Posted July 13, 2016 I delete all files under whmcs/includes/hooks Same problem! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 13, 2016 Share Posted July 13, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted July 13, 2016 Author Share Posted July 13, 2016 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} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 13, 2016 Share Posted July 13, 2016 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. 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. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 13, 2016 Share Posted July 13, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted July 14, 2016 Author Share Posted July 14, 2016 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 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.