[TriLUG] Gallery/PHP Problem
Randall Barlow
rpbarlow at eos.ncsu.edu
Tue Dec 27 10:34:16 EST 2005
Alright, so I've gotten past that particular error, but I'm still
experiencing pretty similar problems. Last night I was reading some
things online, and some folks recommended erasing everything in the
Gallery folder except the config file and the albums folder, and
reinstalling. Turns out that Gentoo also had an updated version
available to me, so I upgraded too. I first:
emerge --unmerge gallery
Then I:
emerge gallery
Afterwards, there was a command emerge told me to do to install Gallery
to the /var/www/localhost/htdocs directory, so I did that too, and
voila, I have a new version of Gallery with the same config and albums
as before. However, I'm still getting errors. Sometimes, the system
seems to "lock up". It's not the machine that's locked up, because I'm
writing this e-mail to you on it. But the webbrowser just waits and
waits, and apache/php never send it anything. Other times it works just
fine. And sometimes I get this error:
*Fatal error*: Cannot redeclare makegalleryurl() (previously declared in
/var/www/localhost/htdocs/gallery/lib/url.php:18) in
*/var/www/localhost/htdocs/gallery/lib/url.php* on line *18
*I just don't get why the problems aren't reproducible. Sometimes it
works, sometimes it doesn't. Anybody have any ideas?
Randy
Randy Barlow wrote:
> Hi,
>
> I have a problem with Gallery at http://www.hamlettcorp.com If you
> go to the site, you will see an intro screen, and then you will be
> redirected to my Gallery page. Frequently, the Gallery page gives the
> following PHP error:
>
> *Fatal error*: Cannot redeclare editfield() (previously declared in
> /var/www/localhost/htdocs/gallery/util.php:27) in
> */var/www/localhost/htdocs/gallery/util.php* on line *27
>
> *I can't make any sense of this error, because it's complaining about
> a function being declared twice, but both times it's talking about the
> same line of the same file! The bizarre thing is that if you refresh
> the page enough, it will work. Any ideas of what's wrong?
>
> Randy
More information about the TriLUG
mailing list