Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 01:02:37 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155557 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Aggregator Module problem  (Read 180 times)
david doc watson

Offline Offline

Posts: 49



« on: February 01, 2012, 12:19:21 PM »

Hi,

I'm running WB Version 2.8.2 Revision 1528 Admin version 1.6 and I am having an issue with Aggregator Mod 1.0 (Installation file attached). I have deployed this module without problems on lots of installtions of WB Version 2.8.1.

I am getting an error

Warning: Invalid argument supplied for foreach() in /home/oecdress/public_html/modules/aggregator_mod/view.php on line 63

The page is http://www.oecdressageworldwide.co.uk/pages/horses/horses-for-sale.php

Any help appreciated
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2298



WWW
« Reply #1 on: February 01, 2012, 01:05:03 PM »

You are not getting an error, you are getting a warning.

Looking at the code of your module, this row is cleaning some variables that do not exist in the first place.
It is not programmed very well, but it should not be a problem. The module should function anyway.

Switching of the error_reporting (admin > settings) will hide the warning.
That (error_reporting settings) might also be the difference with other installations.
Logged

Professional WebsiteBaker Solutions
jacobi22
Betatester
*
Offline Offline

Posts: 1376


WWW
« Reply #2 on: February 01, 2012, 01:05:50 PM »

this Line 63 deletes double Entries from the Page-List. Normaly it's not possible to have double Pages, so you dont need this Line 63

for a fast resolution set a # to the beginn of Line 63 in aggregator/view.php, like
Code:
#foreach($agg_pages as $agg) { unset($items[$agg]); }

or use the next Version 1.4
Logged

LG Uwe

Wer sagt, Reichtum ist alles, hat nie ein Kind lächeln gesehen.
david doc watson

Offline Offline

Posts: 49



« Reply #3 on: February 02, 2012, 09:02:06 AM »

Thank you both for your help and advice.

I first checked the PHP Error Reporting Level and it was set to E_NONE. I tried to see if there was an option to switch it off and couldn't see one.

I next commented out the line in the code of the view.php file and the module seems to be working without reporting any error.

Thanks again.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!