[SOLVED] Uploading images the thumbnails and images show up broken

Artflux

Joined: 2007-07-11
Posts: 25
Posted: Mon, 2013-04-22 23:16

http://victorcarnuccio.com/gallery2/main.php

I upgraded running Mysql Version: 5.1.55 from 4.1.14 hoping that this would allow me to upload images. This did not fix the problem. I attempted to upgrade the Gallery 2 to the most reason version overwriting the old files. I was not able to access the upgrade so rolled back to the original version of Gallery 2 that I installed. Somewhere the upgrade did not work.

Gallery version = 2.2.2 core 1.2.0.4
PHP version = 5.3.6 cgi-fcgi
Webserver = Apache/1.3.42 (Unix) mod_ssl/2.8.31 OpenSSL/0.9.8k mod_fastcgi/2.4.2
Database = mysqlt 4.1.14, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux hostingprod.com 2.6.32-220.23.1.el6.YAHOO.20120713.x86_64 #1 SMP Fri Jul 13 11:40:51 CDT 2012 x86_64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
Rows in GalleryAccessMap table = 35
Rows in GalleryAccessSubscriberMap table = 161
Rows in GalleryUser table = 2
Rows in GalleryItem table = 158
Rows in GalleryAlbumItem table = 16
Rows in GalleryCacheMap table = 0

ImageMagick is not activated. Is the plug in the problem?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-04-23 00:19
Quote:
Gallery version = 2.2.2 core 1.2.0.4
PHP version = 5.3.6 cgi-fcgi

Only G2 2.3.1 and above will work correctly on PHP 5.3.x

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Tue, 2013-04-23 00:31

Is there a link on how to upgrade from 2.2. I attempted to upgrade today unsuccessfully so had to roll back the installation.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-04-23 01:48

from that old a version you should go from 2.2.2 -> 2.2.6 -> 2.3.2
FAQ: How to upgrade Gallery2?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Tue, 2013-04-23 06:43

After the upgrade I attempted I was not able to go through the upgrade steps. Is there a way to deteine which version I have now. fulll, normal or minimal thst i have now? I tried the full that failed.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-04-23 08:58

full minimal ect. just refers to which modules the package contains.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Tue, 2013-04-23 09:36

So I guess that I will download the normal version because I already have the carbon module theme installed. I will backup the Gallery 2 folder and copy it to gallry 2_old before attempting the instillation from 2.2.2 -> 2.2.6 in case I have another failed instillation. My server may charge me to roll back so its better to do this ahead of time so that I can repair it myself.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-04-23 09:43

you should always backup the DB, g2data and gallery2 directory when performing upgrades

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Tue, 2013-04-23 17:20

Looking at the database that was recently upgraded I don't see a gallery2 database. Should I be seeing one? Attached it a screen shot of my databases.

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Tue, 2013-04-23 18:57

When I try to configure Imagemagick the error messages are:

ImageMagick binary test results

Binary Name Pass/Fail
identify
Failed
Error messages:
Problem executing binary:
File does not exist
identify
Failed
Error messages:
Problem executing binary:
File does not exist
convert
Failed
Error messages:
Problem executing binary:
File does not exist
composite
Failed
Error messages:
Problem executing binary:

I created a database on MYSQL called gallery2 with 10 fields. How many field do I need to create?

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Tue, 2013-04-23 19:29

I moved all the files to the 2.2.6 to the gallery 2 dirctory on my server over the 2.2.2 instaltion. When I begin the upgrade it stops aftr I enter my password. I get the error message:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /gallery2/modules/core/classes/GalleryStorage.class:275) in /gallery2/lib/support/GallerySetupUtilities.class on line 75

Then it returns me to step one. Is there anyway that I can correct this or should I roll back to the original instalation?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-04-24 00:03

search that error in these forums asked and answered

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-04-24 11:55

particularly http://galleryproject.org/node/64696

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Artflux

Joined: 2007-07-11
Posts: 25
Posted: Wed, 2013-04-24 20:17

Problem solved:

Someone else had the same problem and cleared the gallery cache. This fixed the problem.

Gallery caches some data that doesn't change very often in its storage folder. This includes templates, data from the database and other things. To clear the template cache: login as admin, click site admin, click Maintenance, beside Delete template cache click run now.
To clear the cache in case something bad happened, browse to http://www.example.com/gallery/lib/support/index.php, (change example to your proper url) enter your Gallery setup password, select "Cache Maintenance" and delete the caches. Usually, selecting all but the Thumbnails and resizes (derivative) cache is a good idea (repeat: do not select the Thumbnails and resizes cache for deletion, rebuilding it takes quite a while for large Galleries).
With the introduction of template caching in G2.3, you might find that editing a template file will not have an effect. Login ad admin -> site Admin -> Performance, uncheck 'Enable template caching', click save. Click the Clear Saved Pages button. Reverse when completed with template editing.