FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » A little Warning is detected in a server log file
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
A little Warning is detected in a server log file [message #165485] Tue, 28 June 2011 08:41 Go to next message
Atomicrun is currently offline  Atomicrun   Sweden
Messages: 54
Registered: November 2010
Location: Lund
Karma: 0
Member
[19-Jun-2011 07:58:46] PHP Warning:  Invalid argument supplied for foreach() in C:\Apache\htdocs\forum\feed.php on line 323 
[20-Jun-2011 14:03:56] PHP Warning:  Invalid argument supplied for foreach() in C:\Apache\htdocs\forum\feed.php on line 323 


I can see no effect of this; possibly merely a warning ?
Aw: A little Warning is detected in a server log file [message #165898 is a reply to message #165485] Sat, 20 August 2011 23:15 Go to previous message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
In the mentioned line there is a call to glob() to enumerate the feed cache files. glob() can return false which could have caused these warnings. A harmless situation where this can happen would be that there are no cache files and open_basedir restrictions are in effect. I added a check before foreach() to make sure glob() returned an array:
http://sourceforge.net/apps/trac/fudforum/changeset/5357

If you want to try it please remember that it is needed to rebuild the theme to apply the changes. Only the changes in function feed_cache_cleanup() are related to this issue.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: php-error-log undefined lang on line 33
Next Topic: Undefined variable: MOD in ppost.php on line 2427
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:46:48 GMT 2024

Total time taken to generate the page: 0.02519 seconds