Jump to content

Having trouble running an image gallery


mashbox

Recommended Posts

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]
Link to comment
https://forums.phpfreaks.com/topic/24595-having-trouble-running-an-image-gallery/
Share on other sites

In that case foreach syntax is incorrect. Make sure the syntax is like this:

foreach($var as $other_ver)

or

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

Archived

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

×
×
  • Create New...

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.