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/ ================================================================================= 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: 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. |
|
Posts: 8339
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
Posts: 6
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.
Posts: 8339
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
Posts: 6
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
Posts: 8339
the upgrade instructions ask you to:
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
Posts: 6
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
Posts: 8339
You should be able to find most DB info from /gallery2/config.php
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 8339
Also, I'm available for hire.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 6
Hey awesome thanks. How would I contact you regarding getting help and to find out what your rates are?
Posts: 8339
You can PM me
-s
________________________________
All New jQuery Minislideshow for G2/G3