Keyword

Invalid argument supplied for foreach() ...

  • Thomas Felz
  • Thomas Felz's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #150631 by Thomas Felz
Invalid argument supplied for foreach() ... was created by Thomas Felz
Hello,
I am using Joomla 3.4.8 with RSS Feed Reader 3.3

I created a module with this feeds:
rss.kicker.de/news/fussball
rss.kicker.de/news/jugendfussball
rss.kicker.de/news/allgemeinersport

On my site I get this error messages before there news are listet:
Warning: fopen(): Filename cannot be empty in /www/htdocs/v160123/joomla3/libraries/joomla/filesystem/file.php on line 330
Warning: Invalid argument supplied for foreach() in /www/htdocs/v160123/joomla3/modules/mod_jw_srfr/helper.php on line 42

I tried with all feeds separately, but without any effect.

Anybody an idea how to solve that?


Thomas

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #150653 by Lefteris
Replied by Lefteris on topic Invalid argument supplied for foreach() ...
Hi,

Ensure that you have not added a blank line in the textarea where you enter the feeds URLs.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Thomas Felz
  • Thomas Felz's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #150655 by Thomas Felz
Replied by Thomas Felz on topic Invalid argument supplied for foreach() ...
I removed the CR after the last link. Now the error message disappeared.

When you split the text area to an array separated by CR it would be very easy for a programmer to delete or skip empty lines in the foreach() loop !!!
Who will think about not to press [Enter] after last entry in text area. I think no one.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #150744 by Lefteris
Replied by Lefteris on topic Invalid argument supplied for foreach() ...
Applied a simple check for that:

github.com/joomlaworks/simple-rss-feed-reader/commit/79acd0b86cb781dd004ba407c8c96c195b46e4b8

Thank you for your feedback.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum