Deprecation error--albums and files not showing up

Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Sun, 2013-08-25 17:49


Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.3.10 cgi-fcgi
Webserver = Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3.4
Database = mysqlt 5.1.50-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux n264s2p0 3.10.4-SE #14 SMP Mon Aug 19 11:25:42 GMT 2013 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Media Center PC 5.0; SLCC1)

Wow. It's been a long time since I've been here! Still a noob, so go easy on me.

Found that pictures from my gallery that were linked to my website aren't showing up. Went to the gallery and found this error:

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/thunderbirdscentral.tikatu.com/gallery2/bootstrap.inc on line 43

How do I fix this?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-08-25 23:28
Quote:
Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.3.10 cgi-fcgi

Gallery 2.3.x was released to be compatible w/ PHP 5.3+
You need to upgrade.
You should do incremental update 2.2.5 -> 2.2.6 -> 2.3.2
FAQ: How to upgrade Gallery2?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Mon, 2013-08-26 04:24

I was afraid you'd say that.

I've done what I think the instructions said. I downloaded and unzipped the upgrade files and used FTP to upload them.

Now I'm getting a "502 Bad Gateway
The server returned an invalid or incomplete response." message.

I think I put two of the files in the wrong place as well as the right one but I have no idea how to fix that. Do I upload my exported back up or what?

As I said, "noob".

ETA: I double checked the files and found I hadn't updated them all. When I did, I got to the installer. But after I put in my password, I got a "Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
--------------------------------------------------------------------------------

Apache/1.3.33 Server at thunderbirdscentral.tikatu.com Port 80"

So, now what do I do?

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Mon, 2013-08-26 22:10

Okay. I fixed those files I accidently overwrote by overwriting them again from 2.2.6 (after all, they weren't among the files changed in the upgrade package). I got the updater, whoo hoo! And I put in the right password this time.

Problem is: it went to authentification (good)... and back to Step 0 (language choice) when I clicked on the "Go to Step 2" button (not so good).

IF I decided to "unpack" 2.2.6 "on top of" my current gallery, does that mean I copy over ALL the files in one fell swoop? I don't remember if I used the preinstaller or not, but I could use that if necessary--I usually have to use FTP.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-08-27 01:44

As per upgrade instructions, you overwrite your gallery files w/ new version and run the upgrader.
I've upgraded hundreds of galleries, its not difficult.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Tue, 2013-08-27 04:19

Okay. I've used FTP to overwrite all the gallery files with 2.2.6. When accessing the site via bookmark, (gallery2/main.php) I get the error message: "Deprecated: Assigning the return value of new by reference is deprecated in /home/www/thunderbirdscentral.tikatu.com/gallery2/bootstrap.inc on line 43. The site is temporarily down for maintenance." (Which is the nearly the same error message I got before.) I did copy over the bootstrap.inc file from the 2.2.6.

Now, I get: "502 Bad Gateway
The server returned an invalid or incomplete response." when my browser tries to access the upgrader/index.php.

Nothing I've seen in the link you've given me gives me any clue as to just how I'm supposed to get to the upgrader in the first place.

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Wed, 2013-08-28 02:13

Since I wasn't getting anywhere with the FTP business, I figured out how to use the preinstaller and unzip a copy of the gallery so I knew I'd get all the files and folders. I also figured out how to get to the updater--go me! However, I'm having trouble with that loop business. It will authenticate me and bingo! Back to Language Select again. So, what bug do I have which causes this?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-08-28 02:25

so you were able to successfully run the upgrader?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Wed, 2013-08-28 02:46

Oh dear God.

I decided to screw the upgrader and use the installer. Got as far as Step 7.

Quote:
Step 7: Version Check

This is not a fresh install and the installed version does not match the new version.

The installed version is older than the new version. You should run the upgrader and not the installer!

Currently installed 1.2.0.7
New version 1.2.0.8

Okay. So I go to the upgrader.

Quote:
You tried to run the upgrade process but a valid config.php is missing.
• If you've lost your config.php file when replacing the Gallery 2 files in the preparation for this upgrade, please restore it and try again.
• If you actually want to run the Gallery 2 installer, please follow the link below.
• If you want to upgrade from Gallery 1, you first need to install Gallery 2 and then use the import module to import your data from Gallery 1. Please follow the link below to install Gallery 2.

Go to the Gallery 2 Installer

Mind you this. IS. GALLERY2. I have, to my knowledge, NEVER had Gallery1. My config.php is there. Updated and everything. When I tried to authenticate myself earlier using the Updater, I was able to do so! So, what the hell do I do now?

ETA: Okay. Having caught a glimpse of the php info I gave at the beginning, I see the problem. My CORE is 1.2.0.7. I thought I'd updated/upgraded it when I installed 2.2.6. How do I update the core?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-08-28 02:52

I cannot give better instructions than we have already documented.
http://codex.galleryproject.org/Gallery2:Upgrading

Maybe you need to hire someone more competent.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Wed, 2013-08-28 03:04

This is a fansite. I'm it. Nobody more competent, I'm afraid. :S

I'm going through the files in the core to see what may have not been updated. Thing is: not all the core files have updates in 2.2.6. There were quite a few folders in my old install that had no corollary in the new version. I didn't know what to do with those. I used the preinstaller to unzip the zip file I downloaded and uploaded via ftp so it should have overwritten everything, right?

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Wed, 2013-08-28 03:26

You are not going to believe this.

I went into my config.php and updated it with my new password and the new suffix I gave the g2data file. NOW the updater is running, and I'm on updating the core.

I guess I'm more competent than I thought. :)

ETA: Now I have a HUGE pile of debug errors. What does the upgrader tell me? Why take it to the forums, of course, so y'all can help me diagnose the problem!

So, now what?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-08-28 03:26

You need to overwrite all files in your gallery2 directory.
Not config.php as the upgrade package won't have one.
Not g2data as there wpon't be one of those either.

You need to choose an upgrade package that has all the plugins you had in your previous version.

This is an extremely easy step. One you will have to do again w/ 2.3.2

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Wed, 2013-08-28 03:53

So, I need the full package? I thought I had a typical one.

ETA: Okay. I used the full package and got way less errors, though there are still a few--including the pesky one I showed you at the beginning of this thread. Now, I guess it's on to the next upgrade?

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Wed, 2013-08-28 15:20

Okay. Upgraded to 2.3.2, I think.

Still can't see my albums. Still get errors on log in (actually, I can't log in), including the one at the beginning. There were two plug-ins I wasn't able to upload: album select and archive upload. Don't know what to do about that.

Shall I list the errors here?

ETA: I see where I can get album select and archive upload. Do I need to download them and install? If so, how do I install?

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Thu, 2013-08-29 00:23

I have updated album select and archive upload. I'm still getting that pesky deprecation error, but I can log in. However, though I thought I'd upgraded to 2.3.2, my run of the details tells me this:

Quote:
Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.3.10 cgi-fcgi
Webserver = Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3.4
Database = mysqli 5.1.50-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux n264s2p0 3.10.4-SE #14 SMP Mon Aug 19 11:25:42 GMT 2013 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)

I take it I have to upgrade to 2.3.2 again. So, off I go to try that.

ETA: After having upgraded to 2.3.2, my gallery STILL says I've got 2.2.6. Also, here's the final set of error messages from the install... besides the pesky deprecated error I started out with!

Quote:
Unable to load the albumselect module
Unable to load the archiveupload module

Error (ERROR_PLUGIN_VERSION_MISMATCH) : [archiveupload] db: (v: 1.0.6 core api: 7/4, module api: 3/0) code: (v: 1.0.10 core api: 7/18, module api: 3/5)
•in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 178 (GalleryCoreApi::error)
•in modules/core/classes/GalleryCoreApi.class at line 209 (GalleryPluginHelper_simple::loadPlugin)
•in install/steps/InstallOtherModulesStep.class at line 161 (GalleryCoreApi::loadPlugin)
•in install/index.php at line 169 (InstallOtherModulesStep::loadTemplateData)

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Sat, 2013-08-31 01:54

Any ideas why, after updating to 2.3.2, my gallery still says I have 2.2.6? I couldn't use the updater; I had the same problem with it as I did the first time I tried it. There seems to be loop somewhere that pops me back to step 0 when I've been authenticated and should be going to step 2. I still have the same problem and the same Deprecated error I had when I first posted this thread. Where else to I go? What else can I do?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-08-31 03:28

I suspect you are not completely overwriting the gallery2 code base w/ the new version

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Sat, 2013-08-31 04:28

I uploaded the 2.3.2 zip file to my gallery2 folder on my host.
I uploaded the 2.3 preinstaller to my website folder (not the gallery folder).
I used the 2.3 preinstaller to open and unpack the 2.3.2 over my current install. (Since I used the preinstaller on the 2.2.6, I was under the impression I had to use it again. After all, the upgrader wasn't working--it was in some kind of loop.)

I'll try it again, unless you can tell me a step I've missed.

ETA: Now the installer has a loop. I get to step 10 (Security). I change the folder permissions, and get popped back to step 1 (authentification).

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Sat, 2013-08-31 04:52

The only things that are not being overwritten/installed are the albumselect and archiveupload modules. I downloaded these modules, unzipped them, and uploaded the files via FTP. Not sure what else to do.

As it seems these two plug-ins are incompatible, how do I uninstall them? I can't do it from site admin. Are there newer, more compatible versions?

Never mind. I figured out how to update them--hopefully it will be enough. I managed to do archiveupload but not albumselect.

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Sat, 2013-08-31 05:07

Okay. I deleted the albumselect folder wholesale, then ran the preinstaller again. For the first time, I got these two errors:

Warning: zip_read() expects parameter 1 to be resource, integer given in /home/www/thunderbirdscentral.tikatu.com/preinstall.php on line 876

Warning: zip_close() expects parameter 1 to be resource, integer given in /home/www/thunderbirdscentral.tikatu.com/preinstall.php on line 908

Not going any further without some guidance.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-09-01 13:27

you'll have to PM me SFTP and Gallery Admin creds so I can have a look.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Tikatu

Joined: 2009-10-18
Posts: 23
Posted: Sun, 2013-09-01 18:28

I think I get the admin creds (user name and password for the gallery, right?). I don't understand what you mean by SFTP. What I use in my FTP program to upload?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-09-02 02:36

FTP is insecure, SFTP is better if your host supports it.

-s
________________________________
All New jQuery Minislideshow for G2/G3