Cannot add albums or photos

Robert Cheetham

Joined: 2014-01-18
Posts: 5
Posted: Sat, 2014-01-18 14:19

I added another admin person but neither of us can now add either photos or albums. We are getting: ERROR_PLATFORM_FAILURE and get ../Archive/g2data/locks/1 ; ../Archive/g2data/locks/47 etc summaries in the event logs.

I suspect it is to do with permissions but cannot see what to change. Detais are below.

Regards,
Rob.

Error (ERROR_PLATFORM_FAILURE) : /websites/123reg/LinuxPackage22/da/hl/ia/dahlia-mds.co.uk/public_html/Archive/g2data/locks/7
in modules/core/classes/FlockLockSystem.class at line 72 (GalleryCoreApi::error)
in modules/core/classes/GalleryLockSystem.class at line 95 (FlockLockSystem::_acquireLock)
in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 62 (GalleryLockSystem::acquireReadLock)
in modules/core/classes/GalleryCoreApi.class at line 2252 (GalleryLockHelper_simple::acquireReadLock)
in modules/core/ItemAddAlbum.inc at line 48 (GalleryCoreApi::acquireReadLock)
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.5.33-31.1-log
Toolkits SquareThumb, ImageMagick
Operating system Linux linweb15.atlas.pipex.net 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64
Browser Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2014-01-18 14:44

from shell
chmod -R 0777 /websites/123reg/LinuxPackage22/da/hl/ia/dahlia-mds.co.uk/public_html/Archive/g2data

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Robert Cheetham

Joined: 2014-01-18
Posts: 5
Posted: Sat, 2014-01-18 16:15

Thanks,
however 123-reg does not allow me to do shell commands - I have changed as many files in the g2data directory to 777 as I can find.
The problem still persists.
NB I have done a delete d/b cache maintenance.

Any other ideas?
Thanks,
Rob.

 
Robert Cheetham

Joined: 2014-01-18
Posts: 5
Posted: Sat, 2014-01-18 17:10

I have added debug and the following is the summary:

Warning: fopen(/websites/123reg/LinuxPackage22/da/hl/ia/dahlia-mds.co.uk/public_html/Archive/g2data/locks/28) [function.fopen]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage22/da/hl/ia/dahlia-mds.co.uk/public_html/Archive/modules/core/classes/GalleryPlatform.class on line 337

hope this helps.
Regards,
Rob.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2014-01-18 20:15

it is trying to open /websites/123reg/LinuxPackage22/da/hl/ia/dahlia-mds.co.uk/public_html/Archive/g2data/locks/28
does this file exist? if not, create a blanks file 28

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Robert Cheetham

Joined: 2014-01-18
Posts: 5
Posted: Sun, 2014-01-19 09:58

Thanks.
OK - a bit of progress however:
there was no /g2data/locks folder, so I created one. I then created a folder: /g2data/locks/28. This allowed me to add an item.
However I now get:

Event Details
Date
Type Image Error
Location http://www.dahlia-mds.co.uk/Archive/main.php
User Id 6
Client 86.151.66.196
Summary Unable to build image
Referer http://www.dahlia-mds.co.uk/Archive/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=7&g2_return=%2
Details Error (ERROR_TOOLKIT_FAILURE)in modules/imagemagick/classes/ImageMagickToolkit.class at line 638[/i]

There was no locks/7 folder, so I creatd one - this stopped me from adding an item!
deleting the /locks/7 folder let me add the item with the error above.

Not sure why I had to create these folders...

Where do I go next?

Regards,
Rob.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2014-01-19 16:09
Quote:
Error (ERROR_TOOLKIT_FAILURE)in modules/imagemagick/classes/ImageMagickToolkit.class at line 638

this is where imagemagick is trying to execute its image operation.
Your filesystem permissions are not correct. Imagemagick and gallery does not have permission to create/update/delete files in /websites/123reg/LinuxPackage22/da/hl/ia/dahlia-mds.co.uk/public_html/Archive/g2data

this will always be the case until you figure out the filesystem permissions.
Many hosts won't allow you to have writable directories in public_html.
it is better/more secure to have your g2data outside public_html

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Robert Cheetham

Joined: 2014-01-18
Posts: 5
Posted: Mon, 2014-01-20 17:03

Thanks again.
I am getting the idea.
How do I move the g2data files to another area whilst keeping the link to the new location within the rest of the gallery s/w?
Regards,
Rob.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-01-20 19:01