| Author | Message |
| Post Title: Fatal error: Cannot redeclare editfield | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Sat Nov 29, 2003 9:05 am
Hi all,
When I follow links from the integration blocks (Random Photo, new Albums) such as : http://localhost/modules.php?set_albumN ... _photo.php I get the following error : Fatal error: Cannot redeclare editfield() (previously declared in d:\dev\nu\apache\apache\htdocs\modules\gallery\util.php:33) in D:\Dev\Nu\Apache\Apache\htdocs\modules\gallery\util.php on line 33 I can get to Gallery using http://localhost/modules/gallery/index.php without any issue and dig into photos and albums. Any idea ? Erik. ---- Give us your Gallery/webserver information to get a faster answer. Get this information from the PHP diagnostic (in the configuration wizard). Gallery version: 1.4.1 Apache version: Apache/1.3.29 (Win32) PHP Version 4.3.4 Graphics Toolkit: netbpm Operating system: Windows XP |
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Sun Nov 30, 2003 8:58 am
- bump
Sorry, still cannot fix this anybody has any idea ? Or success with this configuration ? |
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Sun Nov 30, 2003 9:46 am
The site is now online at http://edasque.mine.nu/index.php if anyone wants to look at the problem (click on anything gallery)
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Nov 30, 2003 7:28 pm
please read the directions when you post a new topic here and include the config lines from your block file(s).
|
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Sun Nov 30, 2003 8:46 pm
Well, the same error occurs when clicking on an image or album in the Random, AlbumList and newAlbums block but here is the config line for my random block :
$GALLERY_BASEDIR = "D:/Dev/Nu/Apache/Apache/htdocs/modules/gallery/"; define(ALBUM_BASEADDR, "http://edasque.mine.nu/albums/"); define(SERVER_ADDR, "http://edasque.mine.nu/"); I did do a search on this forum and the gallery forum about this issue but it didn't come up with anything. Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 01, 2003 8:11 am
make sure all references in the block file(s) are for "require_once...", instead of just "require"...
|
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Mon Dec 01, 2003 10:35 am
They are. I checked the three NG related blocks (random, album list and new albums) as well as the random_support.php and they all use require_once.
One more thing, http://edasque.mine.nu/modules.php?name=gallery produces the same result. What do you think ? Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 01, 2003 1:41 pm
deactivate the random block, leaving the other block as is. let me know what happens.
|
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Mon Dec 01, 2003 4:14 pm
Interesting tip. After deactivating all three NG related blocks, it now works. After activating the New Album block it still works. However, activating either the Random block or the Album lists block brings the error back. What do you think ?
Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 01, 2003 9:38 pm
hmm this is an interesting error. paste the code from your random block file (the block file and the support file) here. i think i know the problem...
|
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Tue Dec 02, 2003 12:40 am
Here you go (but remember it also happens when using the block-NG-AlbumsList block )
block-NG-Random.php : PHP: ›
<?php
and random_support.php : PHP: › <?php
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 02, 2003 12:06 pm
try deleting this line from the block-Random file:
PHP: › <?php require_once($GALLERY_BASEDIR . "init.php"); ?> |
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Tue Dec 02, 2003 12:53 pm
that didn't do it. Same result. I wonder what's so different in the albumList and random blocks from the NewAlbum block that prevents it from working.
Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 02, 2003 12:58 pm
try adding $GALLERY_BASEDIR to the global statements at the top of the random block and the support file.
this really has me puzzled, i've never seen this particular error, and i'm not encountering it on my site... I've made one small change to the download available. grab the new one and try it. |
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Tue Dec 02, 2003 1:15 pm
No, that's not it either. I really wonder what's different about block_NG_newAlbums . Are any of my software version suspicious, PHP, Apache, ...
Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 02, 2003 1:16 pm
try grabbing the new download for it....
also, deactivate the random block and move one of the other blocks to the left. i know why the error is occuring, but it shouldn't be. it might be a php.ini setting that's set funny and causing problems. |
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Tue Dec 02, 2003 1:19 pm
Also, I wonder if my installation of Gallery as a module is correct. It shows up on the list. It's in webroot/modules/gallery . Albums are in webroot/albums . It's activated. I don't know what else to do.
Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 02, 2003 1:20 pm
your installation is fine...
|
| Author | Message |
| Post Title: | |
boubele
Joined: Nov 29, 2003 Posts: 12
|
Posted: Tue Dec 02, 2003 2:07 pm
I am confused. Grab the new download for what ? Gallery ? (I have 1.4.1). Blocks, I thought I had the latest of all three, which one do you mean ?
However, you are right, putting any NG block to the left causes the error. Having all of them on the right solves the problem. You're onto something ! Erik. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 02, 2003 2:09 pm
new download == new download for the random block.
this is truly odd...can you create a php file called phpinfo.php and place this in it: PHP: ›
<?php
email me the address of the page... |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 04, 2003 9:09 am
ah..i just had this same problem.
make sure you don't have two gallery installations (i had my standard install, then was beta testing a branch of gallery when this message popped up). check your modules directory and make sure only one Gallery install exists. |
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
bbongyi
Joined: Dec 27, 2003 Posts: 11
|
Posted: Tue Dec 30, 2003 3:23 pm
same problem here....did you all solve this problem..
here is the message i got... Fatal error: Cannot redeclare editfield() (previously declared in c:\appserv\www\phpnuke\modules\gallery\util.php:33) in C:\AppServ\www\PHPNuke\modules\gallery\util.php on line 33 I don't know why.... I have a gallery 1.4.1 and a server Apache 1.3.34 here is the URL, http://bbongyi.gotdns.com:9000/ |
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
gwyers
Joined: Feb 06, 2004 Posts: 1
|
Posted: Fri Feb 06, 2004 1:57 pm
Glad to know it's just me getting the "Cannot redeclare editfield()" error. I too have two gallery installations on the same postnuke site, which is a must, and I would very much like to continue using the random block. Has there been a resolution to this issue?
Thanks |
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
strobeyprobey
Joined: Jul 14, 2003 Posts: 4
|
Posted: Fri Feb 20, 2004 5:50 pm
I have the random block working just fine for one gallery. But I too have more then one gallery (four of them at the moment) on my Nuke site.
|
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
Krystoff
Joined: Mar 22, 2004 Posts: 1
|
Posted: Tue Mar 23, 2004 1:53 am
I'm having the same problem, however, the whole thing appears to work fine when I go to the direct link to the gallery instead of clicking on the gallery module link
http://www.mors-optare.org/modules/gallery instead of http://www.mors-optare.org/modules.php?name=gallery when I go to the module link, and click on pernissions (when logged in as god), I get the error, when I go to the module through the direct link, I don't get the error. I found it quite odd. |
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
toreador
Joined: Jul 09, 2004 Posts: 1
|
Posted: Sat Jul 10, 2004 7:49 pm
I get not only the error:
Fatal error: Cannot redeclare editfield() (previously declared in D:\Inetpub\wwwroot\nukeforum\modules\gallery\util.php:33) in D:\inetpub\wwwroot\nukeforum\modules\gallery\util.php on line 33 but if I click on the direct link to the album it tries to load my portal page in the random photo box. I can't find any issues in the setup, but I am not sure how well it works with PHPNuke 7.3 and Gallery 1.4.3. The funny thing is, as the others, it only happens when I have Random photo AND Featured photo enabled. If just random photo or featured photo is enabled by itself it works. As soon as I enable both I can't even get to the album without an error. I do have featured photo on the left and Random on the right. If I put them both on the right side it all works fine!!! |
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
trueguy
Joined: Jul 31, 2003 Posts: 1
|
Posted: Sat Aug 28, 2004 4:08 am
I had this same problem when adding Newest photo block after adding Random photo block. The problem went away as dari suggested.
I am running php 7.4 with gallery 1.4.4 |
| Author | Message |
| Post Title: Re: Fatal error: Cannot redeclare editfield | |
Beridox
Joined: Nov 02, 2004 Posts: 3
|
Posted: Wed Nov 03, 2004 11:41 am
same problem here (php 7.4 with gallery 1.4.4)
Fatal error: Cannot redeclare editfield() (previously declared in h:\appserv\www\site\modules\gallery\util.php:27) in H:\appserv\www\site\modules\gallery\util.php on line 27 |