[SOLVED] new albums

sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Sat, 2013-01-12 22:40

Please fill out the following form and take a look at the linked pages. The more information you supply, the better we can help you. Remove this FAQ information from your post before submitting.

- What information is required when asking for help in the forums? See:
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.
- Also visit http://codex.gallery2.org for: Frequently Asked Questions, Debugging Instructions, Known Issues and much more
- And try your luck with the search function of this website


Gallery version (not just "2"):
PHP version (e.g. 5.1.6):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 5.0.32):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 2.0):

I am having a problem creating new albums. The album is created in my database, but doesn't show up in my browser. When trying to crate a new album I get the following error mes:

Error Detail -
Error (ERROR_STORAGE_FAILURE)

in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1113 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage.class at line 534 (GalleryStorageExtras::removeMapEntry)
in modules/core/classes/GalleryCoreApi.class at line 2935 (GalleryStorage::removeMapEntry)
in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 853 (GalleryCoreApi::removeMapEntry)
in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 873 (GalleryItemHelper_medium::invalidateDescendentCountCaches)
in modules/core/classes/helpers/GalleryEventHelper_simple.class at line 59 (GalleryItemHelper_medium::handleEvent)
in modules/core/classes/GalleryCoreApi.class at line 2238 (GalleryEventHelper_simple::postEvent)
in modules/core/classes/GalleryItem.class at line 440 (GalleryCoreApi::postEvent)
in modules/core/classes/GalleryAlbumItem.class at line 256 (GalleryItem::save)
in modules/core/classes/helpers/GalleryItemHelper_advanced.class at line 247 (GalleryAlbumItem::save)
in modules/core/classes/GalleryCoreApi.class at line 1646 (GalleryItemHelper_advanced::createAlbum)
in modules/core/ItemAddAlbum.inc at line 80 (GalleryCoreApi::createAlbum)
in main.php at line 250 (ItemAddAlbumController::handleRequest)
in main.php at line 104
in main.php at line 88

System Information
Gallery version 2.3.1
PHP version 5.2.17 cgi-fcgi
Webserver Apache
Database mysqli 5.1.56-log
Toolkits SquareThumb, ImageMagick, Thumbnail, NetPBM
Operating system Linux ps124851 3.1.9-vs2.3.2.5 #1 SMP Thu Jan 26 02:37:05 UTC 2012 x86_64
Browser Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

Any suggestions on what I could do to correct this?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-01-13 02:39

run the upgrader up to step 2 (system checks) and let us know if it complains about anything
yoursite.com/gallery2/upgrade

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:00

I did that and the results are at www.mempics.com/gallery upgrader.txt for viewing.

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:02
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-15 18:04

no its not

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:04

I checked with my ftp client and my database permissions is set at 777 so I am not sure what the warning is for

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-15 18:08

these permissions need to be recursive
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:18

Gallery Upgrader
? Upgrader Help
X Start Over
Upgrade Steps
v Welcome
v Authenticate
? System Checks
3 Database Backup
4 Upgrade Core
5 Upgrade Plugins
6 Empty Cache
7 Finish Upgrade

Upgrade 10% complete
System Checks
PHP Version
Success
FILE Directive
Success
Safe Mode
Success
exec() allowed
Success
set_time_limit() allowed
Success
Memory limit (256Mb)
Success
File uploads allowed
Success
Maximum upload size (7Mb)
Success
Maximum POST size (8Mb)
Success
Translation support
Success
Output buffering disabled
Warning
Warning: Output buffering is enabled in your PHP by the output_buffering parameter(s) in php.ini. Gallery can function with this setting - downloading files is even faster - but Gallery might be unable to serve large files (e.g. large videos) and run into the memory limit. Also, some features like the progress bars might not work correctly if output buffering is enabled unless ini_set() is allowed.
Storage Directory Permissions
Failed
+ Inaccessible or missing files (1)
Error: Some files and or directories in your storage directory are not writeable by the webserver user. Run chown -R webserverUser /home/sfgumbo/mempics.com/MP-Photos/g2data-xxxxxxxx/ OR run chmod -R 777 /home/sfgumbo/mempics.com/MP-Photos/g2data-xxxxxxxx/.
Gallery file integrity
Warning
+ Modified files (3)
Database permissions
Success
Gallery: your photos on your website » gallery.sourceforge.net

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:20

It showed my version.dat file as not writeable so using ftp I changed that to 755. Is that the correct permission for that file?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-15 18:30

whatever your server can write to 777 is safe

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:40

I tried to clear my cache using the /lib/support function, but my browser shows running and then it returns just a blank page. Is this normal? I also tried to change file permissions to everyone to read and write using /lib/support, but returns an error listing all my files.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-15 18:48
Quote:
Is this normal?

No

Do you have shell access or SFTP access?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:50

no

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 18:57

Right now I have my gallery in maintenance mode, but I cannot access anymore to turn off maintenance mode. How can I log in to change that when I cannot access gallery using my browser?

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 19:02

I tried accessing it with: http://www.mempics.com/MP-Photos/main.php?g2_controller=core.UserLogin&g2_form[formName]=UserLogin&g2_form[action][login]=Login&g2_form[username]=sfgumbo&g2_form[password]=password (password was replaced) and this is what I got.

Error
Error (ERROR_PLATFORM_FAILURE)

in modules/core/classes/GalleryTemplate.class at line 288 (GalleryCoreApi::error)
in modules/core/classes/GalleryTemplate.class at line 214 (GalleryTemplate::_initCompiledTemplateDir)
in main.php at line 521 (GalleryTemplate::fetch)
in main.php at line 104
in main.php at line 88

any suggestions?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-15 19:13

Platform failure means filesystem permission
on the cache directory

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 19:27

so how do I correct it? Using my ftp program to check permissions the cache folder under my database is 755 as each folder under it. What do I need to change them to?

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Tue, 2013-01-15 20:27

I went through each directory in the cache and changed each file to 755 and I still cannot view my gallery. I still getting the same error message.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-15 21:00

g2data needs to be 777 recursively

the command from shell is:
chmod -R 0777 /full/system/path/to/g2data

if you don't have shell access you can try my script that allows you to execute shell commands via php

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
sfgumbo

Joined: 2012-08-12
Posts: 28
Posted: Sat, 2013-01-19 14:12

I had been talking to my hosting company and they recommended that I changed my php5.2 Fast Cache to php 5.2, which I did. I was able to create a new album, but was never able to view it. My hosting company support then over night changed my php back to php5.2 Fast Cache and everything started working again. I have no idea why or the reasoning behind it, but gallery is working great now. Thanks for your suggestions and help.