Fatal error: Cannot redeclare class galleryutilities

chueewowee

Joined: 2005-03-01
Posts: 8
Posted: Fri, 2005-05-06 15:29


Gallery URL (optional):
Gallery version:2
Webserver (with version):apache 2
Datatabase (with version):gallery2
PHP version (eg 4.2.1):4.3.6
phpinfo URL (optional):
Graphics Toolkit(s):imagemagik
Operating system:os x 10.39
Web browser/version:safari
G1 version (for migration bugs):

On step seven in a fresh install with the gallery beta 2.0 installer, I get:

Fatal error: Cannot redeclare class galleryutilities in /Volumes/Files/Users/chuee/Sites/vhtest/gallery2/modules/core/classes/GalleryUtilities.class on line 50

I don't know what to do next!javascript:emoticon(':(')

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-05-10 07:26

This is an issue on OSX boxes that I have been unable to reproduce. I can't reproduce it on my 10.3.9 OSX laptop. Others have given me their password and I've logged onto their boxes to find that I can't reproduce it there either. Can I try logging onto your box to see if I can figure out what's going wrong?

 
Peter Schooley

Joined: 2005-10-01
Posts: 2
Posted: Mon, 2005-10-03 20:38

I solved this problem (in a round about way).

I could not get past step three of the installer on my desktop (running OS 10.3.9, Apache - 2.0.48, PHP - 4.3.4). I repeatedly got the same error message:
Fatal error: Cannot redeclare class galleryutilities in /Library/Apache2/htdocs/gallery2/modules/core/classes/GalleryUtilities.class on line 50

I was able to work around this by first installing Gallery2 on my Powerbook (running OS 10.4.2, Apache - 2.0.52, PHP - 4.3.9). Next I exported the gallery2.sql file containing all of the tables created by the gallery installer from the mysql server on the laptop and imported it to the same db on my desktop.

Next, I copied and chmodded the g2data directory and contents that had been created by the gallery installer from the laptop gallery2 directory to the desktop gallery2 directory.

Last, I copied and chmodded the config.php file from the laptop gallery2 directory to the desktop gallery2 directory.

Doing this resulted in a Gallery2 install that I can access from http://localhost/gallery2/main.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-10-04 08:08

well, ok. works for you. i'd still be curious what's wrong with OSX / PHP.
btw: there's a FAQ entry on how to move a G2 installation from one server to another.
FAQ: How can I move my gallery installation from one server to another?

 
macunkie
macunkie's picture

Joined: 2004-08-21
Posts: 24
Posted: Sat, 2005-10-08 11:24
Peter Schooley wrote:
I solved this problem (in a round about way).

I could not get past step three of the installer on my desktop (running OS 10.3.9, Apache - 2.0.48, PHP - 4.3.4). I repeatedly got the same error message:
Fatal error: Cannot redeclare class galleryutilities in /Library/Apache2/htdocs/gallery2/modules/core/classes/GalleryUtilities.class on line 50

I was able to work around this by first installing Gallery2 on my Powerbook (running OS 10.4.2, Apache - 2.0.52, PHP - 4.3.9). Next I exported the gallery2.sql file containing all of the tables created by the gallery installer from the mysql server on the laptop and imported it to the same db on my desktop.

Next, I copied and chmodded the g2data directory and contents that had been created by the gallery installer from the laptop gallery2 directory to the desktop gallery2 directory.

Last, I copied and chmodded the config.php file from the laptop gallery2 directory to the desktop gallery2 directory.

Doing this resulted in a Gallery2 install that I can access from http://localhost/gallery2/main.php

I had the exact same problem and followed your directions and they worked perfectly!
Thank you!