Gallery 1.5, 1.6RC and PHP 5.3.3, please help

rob11

Joined: 2003-10-01
Posts: 15
Posted: Fri, 2010-09-03 15:06

Im'm using Gallery 1.5 and my web hosting company just upgraded PHP to
5.3.3 and now my gallery is no longer working and I'm getting a bunch of
error messages about deprecated functions.

I see from the code that even the latest 1.6RC of gallery is still using
these functions (ereg(), split(), etc.). Is there no plan for Gallery 1 to
continue working with the latest PHP?

I saw some earlier posts that the only option was to upgrade to Gallery 2.0
but that has a completely differnt look and I have a customized shopping cart
integraded in my 1.5.

Would it be difficult to get my version to work with the latest PHP? It looks
like there are only a few functions it is complaining about. Can I just
replace these with whatever are the new supported functions in PHP? I have a
software background> Would this be too big of a task? I need to get this
back in the next couple of days because I have a big job that needs to be
online for a customer.

Or should I just give up on it and move to something else and convince my
hosting company to put me on a server running the older PHP temporarily until
I can get this figured out?

Thanks for any help,
Robert

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-09-03 15:36

No there is no plans at all for any work or new releases for G1.

Try what Tim_j suggests here:
http://gallery.menalto.com/node/96259

Really start looking at migrating to a newer version of Gallery because there is not going to be another release of Gallery1 every again. I don't know if the Jallery project is still alive or not:
http://jallery.com/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rob11

Joined: 2003-10-01
Posts: 15
Posted: Fri, 2010-09-03 16:20

Thanks for the reply. Right now I'll take anything I can to buy me some time. I also saw Tim_j suggestion in another thread at: http://gallery.menalto.com/node/93745 but then he goes on to say that it won't work something about the exec() function not working. Is that right, should I pursue this further?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-09-03 16:31

The issues that person was having with exec() doesn't apply here.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rob11

Joined: 2003-10-01
Posts: 15
Posted: Fri, 2010-09-03 16:48

OK, so if I understand correctly, as long as my web hosting company has not disabled exec() with the new version of PHP, then all I need to do is change

error_reporting(E_ALL & ~E_NOTICE);

to

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

in the init.php file. Is that right? Wow this will be too easy! Thank you, thank you very much.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-09-03 16:53

Try it :) You can see you php environment by looking at phpinfo
FAQ: How do I create a phpinfo page?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rob11

Joined: 2003-10-01
Posts: 15
Posted: Fri, 2010-09-03 17:23

Looks to be working. Thanks again for all the help!

 
LaForge

Joined: 2007-08-17
Posts: 1
Posted: Wed, 2011-03-16 21:51

Three days ago we started having problems with our Gallery at Cameocakesnixa.com we tried downloading several new pictures. The pictures are corrupted and will not fully load up. I tried from work and loaded a picture and it too was corrupted but it would come up if double clicked on. We tried several different pictures and they all show broken. Is it something in the gallery? Can you help?

Larry

cameocakesnixa.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-03-16 22:12

Hmmm, you absolutely require JS to view your page, hmmmm.... After verifying that the junk on your site was safe and finding your Gallery URL... I may rethink ever visiting those pages again....

Quote:
The page you are trying to see uses javascripts. This feature can be enabled in your browsers settings.

That's Gallery 2 and a super ancient version at that, really, really old.

Start a new post here:
http://gallery.menalto.com/forum/62

And fill out as much info as possible:
FAQ: What information is required when I ask for help in the forums?

You're going to be ask to upgrade as nobody doing Gallery support has used that old code for years. Since that version is soooo old, you'll need to make a few incremental upgrades to 2.1 first, last I checked SourceForge didn't have those old downloads any longer. You can get it here if you trust a core team member of Gallery:
www.kevinnehls.com/temp/gallery2.1.zip

Then you'll need to upgrade to 2.2
www.kevinnehls.com/temp/gallery2.2.zip

Then you can get the latest version of Gallery 2 from here: http://codex.gallery2.org/Gallery2:Download#Packages
____________________________________________
Like Gallery? Like the support? Donate now!