Install Problems at Step 8

zchoice

Joined: 2003-07-26
Posts: 31
Posted: Wed, 2005-04-13 22:06

Hi, I'm having installation difficulties on step 8 (Install More Modules).
The error message returned is here:
Fatal error: Cannot redeclare class gallerydatacache in C:\apachefriends\xampp\htdocs\xampp\BPB\gallery2\modules\core\classes\GalleryDataCache.class on line 39

Any recommendations? G2 looks lovely. Cant wait to use it.
I have'nt tested it too much but the installer did not complete.
Any help is much appreciated.
Thanks.
----

Gallery version: HolyHandGrenade
Webserver :Windows NT 5.1 build 2600
Datatabase :MySQL
PHP version :5.0.3
Graphics Toolkit(s):GD2/ImageMagick/NetPBM
Operating system:WinXP SP2
Web browser/version:Firefox/IE6

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-14 15:02

haven't heard of that before.. which modules were you trying to install? all of the ones selected by default, or all? did step 2 of the install report any modified files?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-14 16:08

there was a kind of similar error once. also "cannot redeclare". but it was on os x...

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27258&highlight=cannot+redeclare

however, there are a couple of "cannot redeclare" errors which can be found with the search function, but i think this one is unrelated.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-04-17 23:46

Hrm. That's odd. I just did a complete reinstall of the latest code on WinXP (PHP 5.0.2, Apache 2, MySQL 4.x) and it worked fine. I couldn't reproduce the problem.

Hmmm. Anybody have any ideas here? Any chance I can rdesk into the Windows box with the problem and poke around?

 
sven111

Joined: 2005-05-15
Posts: 10
Posted: Sun, 2005-05-15 16:21

I got the same error - I am using Linux and gallery-2.0-beta-2, lighttpd 1.3.13 and php 5.04 and mysql 4.1.11.

I just edited the .class file - put something ahead of class name. Then saved and reloaded the page. Got another error, then re-edited the file into original form. And then again reloaded and step 8 worked. Then I oncemore had problem and again did reload and finally got all configuration done.

UPDATE: I got more weird errors like could not login. I installed apache 1.3.33 along with php 5 as the compiled-in module. Then again had prolem at step 8 and my previous solution didn't seem to work. Then I grep -i'd and saw from where the GalleryDataCache was called . I edited the most obvious one - install/steps/InstallOtherModulesStep.class and set require(dirname(__FILE__) . '/../../modules/core/classes/GalleryDataCache.class'); to require_once(dirname(__FILE__) . '/../../modules/core/classes/GalleryDataCache.class'); and voila :) Install worked nicely and could start to manage my galleries.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-05-19 03:54

This is very bizarre behavior. It sounds to me like you've possibly got some interference from a bytecode compiler. Do you have an accelerator like ionCube, eaccelerator, Turcke MMCache, or Zend Studio installed? If so, when you have these problems can you try flushing the accelerator cache to see if that fixes the problem?

 
sven111

Joined: 2005-05-15
Posts: 10
Posted: Thu, 2005-05-19 12:48

Yes, I have the newest version of eaccelerator. I'll test the flushing and let you know how it went.

EDIT: I disabled eaccelerator and tried with beta 3. Now there is no problem at all at step 8.