[Solved] Warning: array_keys() [function.array-keys]:

Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Wed, 2006-11-29 13:30

Gallery version: 1.5.5-p1
Apache version: Apache/1.3.34 (Unix)
PHP version (don't just say PHP 4, please): PHP/5.1.2
Graphics Toolkit: ImageMagick
Operating system: FreeBSD 6.0-RELEASE #1
Web browser/version (if applicable): IE 7, Maxthon, Opera 9.02, FireFox 2.0
==============================

The problem is, that on one of my servers I get this one during setup:
------------------------------
Warning: array_keys() [function.array-keys]: The first argument should be an array in /.../www/gallery/util.php on line 1490

Warning: Invalid argument supplied for foreach() in /.../www/gallery/util.php on line 1492

Warning: array_keys() [function.array-keys]: The first argument should be an array in /.../www/gallery/util.php on line 1490

Warning: Invalid argument supplied for foreach() in /.../www/gallery/util.php on line 1492
==============================

Also below I get 80 errors like:
------------------------------
/* Constants */
Error: Missing value: Gallery Title!
Error: Missing value: Admin password!
Error: Missing value: Use Icons ?!
Error: Missing value: Skin Name!
Error: Missing value: Default upload method!
Error: Missing value: Album directory!
Error: Missing value: Temporary directory!
Error: Missing value: Gallery URL!
Error: Missing value: Albums URL!
Error: Missing value: Thumbnail image!

==============================
Another side of hte problem that when I hit "Edit config" and than "Previous state", I don't see my ''Gallery Title'' which I set when I started the setup process. I see default one.

On another Server I don't have such problem.
I can't understand what can cause such a problem "80 errors. See Details below."

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Wed, 2006-11-29 13:52

Fixed this one by adding a line to .htaccess

php_value session.cookie_domain MY.DOMAIN.COM

But remeber, that after you will press "Save Configuration" button, setup will overwrite your .htaccess
So you will have to add that line again!

Or you can add this line to .htaccess one level above your gallery folder.

 
trunghau

Joined: 2008-03-05
Posts: 1
Posted: Wed, 2008-03-05 13:28

thanks a lot, now i see that error? but you can show me detail ? thanks a lot

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sat, 2008-03-15 21:30
trunghau wrote:
thanks a lot, now i see that error? but you can show me detail ? thanks a lot

I didn't understand what you see and what you want.