Jump to content


This topic is now archived and is closed to further replies.


Having trouble running an image gallery

Recommended Posts

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
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]

Share this post

Link to post
Share on other sites
In that case foreach syntax is incorrect. Make sure the syntax is like this:

foreach($var as $other_ver)


foreach($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

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.