mashbox Posted October 20, 2006 Share Posted October 20, 2006 Hello,I'm trying to run a script called "o.r.i.g.i.n.a.l photo gallery" found here [url=http://jimmac.musichall.cz/original.php]http://jimmac.musichall.cz/original.php[/url]. Unfortunately i get this error:[i][b]Warning: Invalid argument supplied for foreach() in /home/1055/domains/mashbox.org/html/original/index.php on line 206[/b][/i]It would be great if anyone could help. Thanks in advance!Here's my gallery instalation: [url=http://mashbox.org/original/]http://mashbox.org/original/[/url] Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 21, 2006 Share Posted October 21, 2006 In that case foreach syntax is incorrect. Make sure the syntax is like this:foreach($var as $other_ver)orforeach($var as $key => $value)$var should be an array.Also note you should of posted this in the Third Part Scripts forum. Try contacting the creater of the script for assistance.EDIT: The script is poorly coded. However a quick fix is to add the following:[code=php:0]$galerieyearordered = array();[/code]after [b]$thisyear = 0;[/b] on line 187 in index.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.