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

Home » FUDforum » FUDforum Installation Issues » [Error] Warning: Invalid argument supplied
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
[Error] Warning: Invalid argument supplied [message #20855] Sat, 30 October 2004 20:01 Go to next message
tradenet is currently offline  tradenet   Canada
Messages: 16
Registered: October 2004
Karma: 0
Junior Member
Ok, When I do an UNLOCK and LOCK I get:
Warning: Invalid argument supplied for foreach() in ~/forum/adm/admlock.php on line 48

Again. I'm the latest CVS.

[Updated on: Sat, 30 October 2004 20:02]

Report message to a moderator

Re: [Error] Warning: Invalid argument supplied [message #20858 is a reply to message #20855] Sun, 31 October 2004 01:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
What version of PHP and what OS are you using?

FUDforum Core Developer
Re: [Error] Warning: Invalid argument supplied [message #20860 is a reply to message #20855] Sun, 31 October 2004 01:26 Go to previous messageGo to next message
tradenet is currently offline  tradenet   Canada
Messages: 16
Registered: October 2004
Karma: 0
Junior Member
Linux 2.4.22-gentoo-r1 #3 SMP Mon Dec 15 06:40:27 PST 2003 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

PHP v.4.3.8

Re: [Error] Warning: Invalid argument supplied [message #20870 is a reply to message #20860] Sun, 31 October 2004 18:15 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Can you please add the following line between current line #47 and #48 inside admlock and tell me what is says.

if (!$files) echo "Empty dir? {$v}<br>\n";


FUDforum Core Developer
Re: [Error] Warning: Invalid argument supplied [message #20876 is a reply to message #20870] Sun, 31 October 2004 20:44 Go to previous messageGo to next message
tradenet is currently offline  tradenet   Canada
Messages: 16
Registered: October 2004
Karma: 0
Junior Member
Between line #47 & #48:
$files = glob($v . '/{.h*,.p*,.n*,.m*,*}', GLOB_BRACE|GLOB_NOSORT);
if (!$files) echo "Empty dir? {$v}<br>\n";
                        foreach ($files as $path) {


Empty dir? ~/FUDforum/template

Warning: Invalid argument supplied for foreach() in ~/forum/adm/admlock.php on line 49
Empty dir?
~/FUDforum/thm/default/i18n/lithuanian/help

Warning: Invalid argument supplied for foreach() in ~/forum/adm/admlock.php on line 49
Re: [Error] Warning: Invalid argument supplied [message #20880 is a reply to message #20876] Mon, 01 November 2004 04:59 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS, here is the patch:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3084


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [Error Message] Notice: Undefined index:
Next Topic: caught in a loop, can&acute;t register members
Goto Forum:
  

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

Current Time: Sat Nov 30 12:25:05 GMT 2024

Total time taken to generate the page: 0.02587 seconds