/gallery2/modules/core/classes/GalleryLock.class on line 166

eculp

Joined: 2002-12-12
Posts: 3
Posted: Thu, 2002-12-12 16:24

First, I apologize if this isn't the proper forum or method to ask about errors in the CVS version of Gallery2. I have just downloaded it, registered on the site and attempted to initiate configuration this morning.

When accessing test/test.php I receive the following error. Being new to the code,
I have no idea where to start. Hopefully I have committed a typical newbee error.
I did search on this site and google without success. I also downloaded gallery 1.3.2
and it seems to work as expected.

I'm running FreeBSD current, php4 cvs head and apache1.3.27. Any help will be appreciated.

ed

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-12-12 18:25

This is the right place to discuss issues with G2.

What exactly was the error message? Your subject line only gives partial output. What's the URL to your G2 installation?

 
eculp

Joined: 2002-12-12
Posts: 3
Posted: Thu, 2002-12-12 18:48

The complete error follows.

Fatal error: Cannot redeclare islocked() in /usr/local/www/data/gallery2/modules/core/classes/GalleryLock.class on line 164

The url is http://morando.org

Thank you, for assuring me that I am at the right place. :smile: and for any suggestions
as to what I am doing wrong. I also tried a snap from a week ago and have the
same problem. I feel like it is probably something with my installation although
gallery1.3.2 works fine.

ed

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-12-12 19:08

I get the exact same error, the setup/test pages don't even load due
to this.

 
eculp

Joined: 2002-12-12
Posts: 3
Posted: Thu, 2002-12-12 19:43

Valdamar, thanks. I feel better that I'n not alone :smile:

ed

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-12-14 08:56

Hey, whaddaya know -- I was accidentally redeclaring that method. I've fixed it so you should both be working properly again.

I wonder why it wasn't giving me any exceptions in my dev environment. I'm running PHP 4.2.3. Vallimar, good to see ya again, buddy .. are you over your Divine Divinity addiction? :wink:. Are you also using PHP from CVS HEAD? Maybe this is some new, tighter restriction in the new version.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-12-14 16:02

Hey Bharat, I've been using the 4.3.0 Release Candidates, although they don't really
mention any tightening of these things. I still use the same php.ini file as before.

But this did fix that error, however, another one cropped up.
PHP Fatal error: Cannot redeclare unixdate() /.../gallery/lib/adodb/adodb.inc.php on line 1453. Commenting that function out seemed to fix the issue and I was able to play with things. Looking good, much improved over a couple months ago :smile:

And I've been over Divine Divinity for a bit, but my work hours changed....
to the busiest time of the day naturally so I haven't had much time for things
of late.

I can't say for sure, but I'm guessing you can't declare a function of the same name
in a file when it already exists in an included(...) file. FYI, don't try to compile PHP
with newer version of Bison... was giving me headaches till I figured out I had to drop
back to the old reliable 1.35 version.