Old Gallery version - problems migrating/upgrading from G1.19

galeroy

Joined: 2012-12-09
Posts: 6
Posted: Sun, 2012-12-09 09:22

Gallery URL (optional but very useful): http://www.jeffkomisarofphotography.com/
Gallery version: Gallery 1.19
Apache version: Apache 2.2.13
PHP version (don't just say PHP 4, please): PHP 5.3.14
Graphics Toolkit: I'm on a shared hosting environment - not on a dedicated server and not working with any command line input/output.
Operating system: Windows XP
Web browser/version (if applicable): Firefox 17.0.1

=================================================================================

Hello,

I created a website for a friend in 2006 and used Gallery 1.19.

I haven't looked at the website in years and my friend emailed me last week to let me know that his images aren't being displayed on his website.

This message is displayed multiple times on his website: "Deprecated: Function ereg() is deprecated in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryStorage.class on line..."

I read through the Gallery FAQ and forums and it appears that my version of Gallery is way out of date. It's not clear to me whether I need to migrate or upgrade. (Maybe a combination of the two? Upgrade Gallery 1.19 --> Gallery 1.5 and then Migrate Gallery 1/5 --> Gallery 2? (I'm a little confused on this part.)

I read through the "Migrating from Gallery 1 to Gallery 2" notes here http://codex.gallery2.org/Gallery2:migration and it looks like I need to start by doing this:
"If you are running a pre-1.5 version, please consider that upgrade first. Then come back and upgrade to v2."

I've looked around the Gallery website and also in the FAQ and Forums but can't find any documentation that explains how to upgrade from a pre-1.5 version to 1.5.

Does anyone know where I can find this web page/documentation?

Any help would be appreciated. Thanks a lot.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-12-09 15:48
Quote:
"Deprecated: Function ereg() is deprecated in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryStorage.class on line..."

that is a G2 error are you sure of the current version?
in PHP warnings do not halt execution.

Just followed your link... yup G2.
Upgrade to the latest G2 which supports PHP 5.3.x

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
galeroy

Joined: 2012-12-09
Posts: 6
Posted: Mon, 2012-12-10 07:45

Thanks! I feel totally dumb for failing to notice the Gallery 2 image at the bottom of the website.

Question 1.
The first step in the upgrade process is "identify your Gallery 2 version". The instructions say:
"Browse to your Gallery 2 installation in your web browser, log in as an administrator, click the "Site Admin" link then click the "Maintenance" link. "

Because I'm experiencing this problem, I'm unable to successfully log in to my Gallery via a web browser - even though I'm using the corect user ID and password. These error messages appear when attempting to log in:

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/d/e/v/developer02/html/gallery/bootstrap.inc on line 35
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryUtilities.class on line 942
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryStorage.class on line 270
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/d/e/v/developer02/html/gallery/lib/adodb/adodb.inc.php on line 888
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/d/e/v/developer02/html/gallery/lib/adodb/adodb.inc.php on line 1856
Deprecated: Function ereg() is deprecated in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryStorage.class on line 948
.
.
.
Deprecated: Function ereg() is deprecated in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryStorage.class on line 964
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/e/v/developer02/html/gallery/bootstrap.inc:35) in /home/content/d/e/v/developer02/html/gallery/modules/core/classes/GalleryPhpVm.class on line 124

Question 2.
What does this mean?
"Download a complete new copy of Gallery 2 and simply unpack it on top of your existing Gallery 2 install and then run the upgrader."

I downloaded the latest version of Gallery 2, unzipped it, and uploaded it to the host server where my website files are stored. I tried:
- moving the latest version of Gallery2 next to the older version (making the older and newer versions siblings).
- moving the latest version of Gallery2 on top of the older version (making the older version a parent of the newer version - please see attached image).

Since I can't log in to Gallery via a web browser, I manually navigated to the updater file (via my web browser) and was able to run the updater that way.

I still have errors however.

I'm kind of stuck at this point and I'm not sure what to do. Any suggestions would be greatly appreciated.

Thanks a lot.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2012-12-10 14:23

try suppressing the errors...
just after line 28
@ini_set('display_errors', 0);
add:
@ini_set('error_reporting', 0);

also you can check g2data/versions.dat

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
galeroy

Joined: 2012-12-09
Posts: 6
Posted: Tue, 2012-12-11 14:59

I did everything that you and the upgrade instructions suggested and... everything worked! which is awesome! Thanks s!

The only thing now is that after installing the latest version of Gallery - none of the albums, images and image captions from my old version of Gallery carried over to the new version.

Do I really need to
- re-create my albums in the new version?
- manually re-upload the hundreds of images from the old version of Gallery 2.1.1 into the new version?
- retype hundreds of image captions?

Is there a way to do this automatically? I had hoped that this would have been done as part of the upgrade process - i.e. I had hoped that upgrading my version of Gallery wouldn't have wiped out my images - which is pretty disappointing.

Thanks for your continued help.

Gerald

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2012-12-11 15:14

the upgrade instructions ask you to:

  • backup your current gallery codebase
  • backup your current gallery g2data
  • backup your current gallery DB
  • overwrite your current gallery codebase w/ the new codebase
  • run the upgrader by visiting yoursite.com/path to your gallery/upgrade

This upgrades your current DB and g2data.
No need to import old items.
Sounds like you installed a fresh new gallery not upgrading the old.

Although in your case where your gallery is so old(2.1.1) we suggest incremental updates 2.1.1 -> 2.1.2 -> 2.2.6 -> 2.3.2

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
galeroy

Joined: 2012-12-09
Posts: 6
Posted: Wed, 2012-12-12 06:41

ah - got it. Sorry/thanks. This is making more sense now.

Question 1: (sorry hopefully not a dumb question) To back up the database - where to I find phpMyAdmin? Would that be accessed via logging into my Gallery via a web browser? (Would this be something that I'd find in my web hosting account?)

What file would I find this line of code in? @ini_set('display_errors', 0); I've searched through my code files and can't find it.

(Please also note that the 2.1.2 version code is no longer available on your website. When you click on the 2.1.2 link, the 2.2.6 code is the earliest version that one can download.)

Thanks again,

Gerald

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-12-12 06:56

You should be able to find most DB info from /gallery2/config.php

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-12-12 06:57

Also, I'm available for hire.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
galeroy

Joined: 2012-12-09
Posts: 6
Posted: Thu, 2012-12-13 06:25

Hey awesome thanks. How would I contact you regarding getting help and to find out what your rates are?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-12-13 13:42

You can PM me

-s
________________________________
All New jQuery Minislideshow for G2/G3