Platform Error (Problem Solved)

kiama

Joined: 2003-04-19
Posts: 22
Posted: Thu, 2009-07-02 18:37

I can't add/rename/edit album & photo titles! Have followed the instructions on http://codex.gallery2.org/Gallery2:FAQ#How_can_I_fix_the_filesystem_permissions_of_the_Gallery_storage_folder.3F, but still can't be resolved.

Prior to this, I had a HTTP 500 Error a week ago and my webhost fixed it. Could it be some file permission setting done by them which caused the current Platform Error ??

********************************************************

Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.2.8 apache
Webserver = Apache/1.3.41 (Unix) PHP/5.2.8 mod_perl/1.30 mod_gzip/1.3.26.1a mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 DAV/1.0.3 mod_ssl/2.8.31

********************************************************

Debug output link

********************************************************

Warning: fopen(/home/jchia/public_html/gallery/photos/locks/5335) [function.fopen]: failed to open stream: No such file or directory in /home/jchia/public_html/gallery/modules/core/classes/GalleryPlatform.class on line 326

Warning: Cannot modify header information - headers already sent by (output started at /home/jchia/public_html/gallery/modules/core/classes/GalleryPlatform.class:326) in /home/jchia/public_html/gallery/modules/core/classes/GalleryPhpVm.class on line 142
Platform Error

An error has occurred while interacting with the platform.
The exact nature of the platform error is unknown. A common cause are insufficient file system permissions. This can happen if you or your webhost changed something in the file system, e.g. by restoring data from a backup.

Back to the Gallery
Error Detail -
Error (ERROR_PLATFORM_FAILURE) : /home/jchia/public_html/gallery/photos/locks/5335

* in modules/core/classes/FlockLockSystem.class at line 72 (gallerycoreapi::error)
* in modules/core/classes/GalleryLockSystem.class at line 147 (flocklocksystem::_acquirelock)
* in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 176 (flocklocksystem::acquirewritelock)
* in modules/core/classes/GalleryCoreApi.class at line 2193 (gallerylockhelper_simple::acquirewritelock)
* in modules/core/ItemEditItem.inc at line 200 (gallerycoreapi::acquirewritelock)
* in modules/core/ItemEdit.inc at line 90 (itemedititem::handlerequest)
* in main.php at line 231 (itemeditcontroller::handlerequest)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.6
PHP version 4.4.7 cgi
Webserver Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5
Database mysqlt 4.1.22-standard
Toolkits Thumbnail, ImageMagick, NetPBM
Operating system Linux toyota.sparkstation.net 2.6.9-023stab044.4-enterprise #1 SMP Thu May 24 17:41:23 MSD 2007 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9283
Posted: Thu, 2009-07-02 19:36

Have you folloed this:
FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
kiama

Joined: 2003-04-19
Posts: 22
Posted: Thu, 2009-07-02 19:43
nivekiam wrote:
Have you folloed this:
FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

thank you but I've stated in my post it has been done, without resolving the problem.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9283
Posted: Thu, 2009-07-02 19:52

Try switching to database locking. Go to Site Admin > General and change the setting from File to Database, click Save
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
kiama

Joined: 2003-04-19
Posts: 22
Posted: Thu, 2009-07-02 20:12
nivekiam wrote:
Try switching to database locking. Go to Site Admin > General and change the setting from File to Database, click Save
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

thank you nivekiam that worked.

Another question, quoting from the FAQ: "ask your webhost to change the filesystem permissions recursively for you (e.g. chmod -R 777 g2data)."

Is that the same as doing a CHMOD777 myself via FTP? I don't get the meaning of it.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9283
Posted: Thu, 2009-07-02 20:18

Yes, it's the same, but most FTP clients, very few that I've seen, change permissions recursively through all directories. It's easier for your host or you if you have the ability to do chmod -R 777 g2data from the command line via an SSH login.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
kiama

Joined: 2003-04-19
Posts: 22
Posted: Thu, 2009-07-02 20:23
nivekiam wrote:
Yes, it's the same, but most FTP clients, very few that I've seen, change permissions recursively through all directories. It's easier for your host or you if you have the ability to do chmod -R 777 g2data from the command line via an SSH login.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

ok I will ask them to do that too. Thanks again for the help!!

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9283
Posted: Thu, 2009-07-02 20:31

Not to mention, that if you don't own those files and directories you couldn't make that change anyway :)

The important part is that the webserver, how ever it's setup, is able to write to those directories and change the files.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments