Jump to content

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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.