PDA

View Full Version : ZendOptimizer and Gallery2?


walker
02-21-2006, 02:35 PM
OK, I opted to install Gallery 2.02 manually (instead of via Fantastico) because I'd rather delve beyond the surface if I'm going to stick with it and upgrade in future. But whilst running the installer, I got the following error message (dozens of times):

"Notice: Only variable references should be returned by reference in...."

This is what G2 Wiki has to say about it:

"Most probably you are running PHP 4.4.0+ and use the PHP Zend Optimizer (see phpinfo). This is a Zend Optimizer bug. See http://gallery.menalto.com/node/36605#comment-133101 for some explanations.

Solution: Use a newer Zend Optimizer version, e.g. ZendOptimizer-2.6.2 or later versions."

Anybody else come across this, when installing Gallery or *any* PHP application? And does anybody know what version of ZendOptimizer bluehost use?

(I actually think I can work around this problem so it's certainly not an upgrade request.)

2notch
02-21-2006, 06:31 PM
I'm on box 33 and the version is:
Zend Optimizer v2.5.10

Create a file called info.php
put this code in it:
<? phpinfo();?>
Save it and upload it to your site.

Now go to your site where you uploaded it.
Example: http://www.yourdomain.com/info.php

Right below the first block of info is a small block with Zend info.
*** When finished,remove this file or change permissions to 400 so no one else can use it to see all that info.***

walker
02-22-2006, 01:34 PM
I'm on box 33 and the version is:
Zend Optimizer v2.5.10


Same here. Sorry, I should have posted earlier to let you know I'd done this. I tried reducing the zend_optimizer.optimization_level but it made no difference, so I ended up modifying the source code so it would accept the references. Only then did it let me install the program but I'm now..er abandoning because it's clearly very CPU intensive. (I can tell just clicking around in it that there's far too much going on beneath the lid.)

Not much choice of PHP photo gallery software out there is there? :(

JimT2
02-26-2006, 02:29 PM
No there doesn't seem to be many to choose from. I've tried all three options bundled with fantastico and haven't been happy with any.

Anybody know of any other...?

2notch
02-26-2006, 03:39 PM
There are some gallery apps in SourceForge...
http://sourceforge.net/search/?words=gallery&type_of_search=soft

...and Freshmeat...
http://freshmeat.net/search/?q=gallery&section=projects&Go.x=9&Go.y=9

...and Hotscripts...
http://www.hotscripts.com/PHP/Scripts_and_Programs/Image_Galleries/more5.html

...and of course "gallery scripts" search on Google...
http://www.google.com/search?hl=en&q=Gallery+Scripts&btnG=Google+Search

Alot of stuff to sift through, but there it is.

stanvman
02-26-2006, 06:01 PM
You should check out SPGM (Simple Picture Gallery Manager). It's very easy to plug into your site, and maintain a consistent layout.
http://spgm.sourceforge.net/

I'm using it on my site, if you would like to see how it looks. http://stantonia.com