Author Topic: Variable passed to each() is not an array or object  (Read 8061 times)

0 Members and 1 Guest are viewing this topic.

Offline fotoano

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • http://www.design-photo.com
Variable passed to each() is not an array or object
« on: April 09, 2002, 01:54:35 AM »
:roll: Hello, I have a problem with the installation file, so i can't test your database well.
Very pitty because I am testing and looking now for over 7 mounth to find sometime for my website and I can't find something that works for me.

The error is,
Warning: Variable passed to each() is not an array or object in /home/design/design-photo-www/photo/install.php on line 30

Can you help me please?

Best wishes

Maarten

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Variable passed to each() is not an array or object
« Reply #1 on: April 09, 2002, 07:32:11 AM »
Hi,

is this error before or after pressing "Start Installation"?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline fotoano

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • http://www.design-photo.com
First installation
« Reply #2 on: April 09, 2002, 11:51:40 AM »
I have this in the beginning, so can't not see the installer. Only the error and the banner.
I saw some examples and the software looks nice and intresting.
Thanks for answering so quickly.

Best wishes

Maarten

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Variable passed to each() is not an array or object
« Reply #3 on: April 09, 2002, 12:40:37 PM »
Hi,

very strange! Try this:

open install.php and change:
Code: [Select]
 $HTTP_GET_VARS = addslashes_array($HTTP_GET_VARS);
  $HTTP_POST_VARS = addslashes_array($HTTP_POST_VARS);
  $HTTP_COOKIE_VARS = addslashes_array($HTTP_COOKIE_VARS);

to:
Code: [Select]
if (isset($HTTP_GET_VARS)) {
  $HTTP_GET_VARS = addslashes_array($HTTP_GET_VARS);
}
if (isset($HTTP_POST_VARS)) {
  $HTTP_POST_VARS = addslashes_array($HTTP_POST_VARS);
}
if (isset($HTTP_POST_VARS)) {
  $HTTP_COOKIE_VARS = addslashes_array($HTTP_COOKIE_VARS);
}


If you got the same error running the installed programm do this also in global.php

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search