Ticket #63 (closed Bug report: fixed)

Opened 14 years ago

Last modified 12 years ago

Adding a new RSS content => foreach() error

Reported by: Prospere Owned by: benoitg
Priority: low Milestone: WifiDog Auth Server 1.0
Component: Auth server, Content Management Version: Auth Server SVN
Keywords: Cc:

Description (last modified by max-horvath) (diff)

Warning: Invalid argument supplied for foreach() in /var/www/wifidog-auth/wifidog/classes/Content/RssAggregator/RssAggregator.php on line 523

Change History

Changed 14 years ago by max-horvath

  • component changed from Auth server: Authentication to Auth server: Features
  • description modified (diff)

Please provide the RSS feed you've been using ...

Changed 14 years ago by Prospere

- Go the administration page - Content management (in the menu) - Choose RSSAgregator - Create Content

And : Warning: Invalid argument supplied for foreach() in /var/www/wifidog-auth/wifidog/classes/Content/RssAggregator/RssAggregator.php on line 523

That's all :-)

Changed 14 years ago by max-horvath

  • owner set to benoitg
  • component changed from Auth server: Features to Auth server: Content Management
  • milestone set to WifiDog Auth Server 1.0

Changed 13 years ago by Damien Raude-Morvan <drazzib-web@…>

This warning appears when there no elements in 'content_rss_aggregator_feeds' : the request return no rows and $feed_urls var is empty.

A simple if (!empty($feed_urls)) { ... } should correct the problem.

Changed 13 years ago by benoitg

  • status changed from new to closed
  • resolution set to fixed

Fixed in [1092]

Note: See TracTickets for help on using tickets.