Jump to content


Photo

Having trouble running an image gallery


  • Please log in to reply
1 reply to this topic

#1 mashbox

mashbox
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 20 October 2006 - 08:46 PM

Hello,
I'm trying to run a script called "o.r.i.g.i.n.a.l photo gallery" found here http://jimmac.musich...cz/original.php. Unfortunately i get this error:

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: http://mashbox.org/original/

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 October 2006 - 11:23 AM

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:
$galerieyearordered = array();

after $thisyear = 0; on line 187 in index.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users