Hi, I'm using Rocksprocket to display some banner ads at the top of my site - all was working fine until today when I noticed the module was 'checked out' in the admin.
I checked the module in and I now have the following message three times at the top of my site:
Warning: Invalid argument supplied for foreach() in /home/theprtco/public_html/components/com_roksprocket/layouts/mosaic/RokSprocket_Layout_Mosaic.php on line 106
I did update RokSprocket yesterday...anyone any ideas why this error has now cropped up? I notice line 106 of this fine contains code regarding cleaning up tags
If this is a site that is online could you please supply a link so we can better diagnose the issue?
It makes our suggestions more accurate if we see the actual coding of your site.
I've turned site error messages off for now, as everything still works. With them turned on I have the error message 3 times above the top 3 banners.
Not an ideal solution but gets around it for now - would still love some suggestions on how to resolve this.
Web & Graphic Designer
Programmer
Search Engine Optimization Specialist
Business Owner Operator
Re: RokSpocket error message
Posted 10 years 9 months ago
Im running 2.1.1 and still having this issue. As its on a live high traffic site, im going to try anything I can to fix it so it might be fixed by the time u get this message...
Web & Graphic Designer
Programmer
Search Engine Optimization Specialist
Business Owner Operator
Re: RokSpocket error message
Posted 10 years 9 months ago
As an update, to fix this i set all tags to 'custom' but left them blank. as i dont use tags. Something going on with the $tags array when tags are set to none in each item, it still seems to try n parse an empty or non created tags array in the for each which causes an error? (when i commented out line 107 it then errored out on another tags refernece so i think this is probably your prob