Platform Error

ScottyRock

Joined: 2009-09-09
Posts: 5
Posted: Thu, 2009-11-05 19:20

After adding images to my site. I will recieve this error message and won't be able to add or delete from the site. Please help. R my images to large?

Adding items

Memory used: 11815640, total: 32M
Error (ERROR_PLATFORM_FAILURE) : /home7/scottco2/public_html/gallery/g2data/locks/15

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/ItemAdd.inc at line 153 (GalleryCoreApi::acquireReadLock)
in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
in modules/core/classes/GalleryTemplateAdapter.class at line 1092
in g2data/smarty/templates_c/%%3948793109/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (GalleryTemplateAdapter::trailer)
in lib/smarty/Smarty.class.php at line 1255
in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
in main.php at line 506 (GalleryTemplate::display)
in main.php at line 104
in main.php at line 88

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-05 20:04

Double check permissions:
FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?

Could be some other restriction you host has. Try changing the locking mechanism from file to database. Go to Site Admin > General for that.

If that doesn't fix anything, post the rest of your system information as specified here:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ScottyRock

Joined: 2009-09-09
Posts: 5
Posted: Thu, 2009-11-05 21:09

Made the change to the locking mechanism from file to database which help import the image but there is no image it's just a box with a broken image. Listed below is my system info:

Get system details; useful for copy/paste into G2 support forum.

Last Run Details:

Gallery URL = http://www.scottcordaro.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
Database = mysqli 5.0.81-community-log, lock.system=database
Toolkits = ArchiveUpload, Exif, NetPBM, Gd
Acceleration = none, none
Operating system = Linux box595.bluehost.com 2.6.28-10.7.intel.IGB.BHsmp #1 SMP Thu Aug 13 21:52:24 MDT 2009 x86_64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 12
Rows in GalleryAccessSubscriberMap table = 50
Rows in GalleryUser table = 2
Rows in GalleryItem table = 50
Rows in GalleryAlbumItem table = 6
Rows in GalleryCacheMap table = 0

Thanks for any help!!!!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-05 21:14

I know bluehost has ImageMagick on their servers. Uninstall GD and install and configure ImageMagick.

Go to Site Admin > Plugins

Uninstall GD

Install ImageMagick and configure it.

Then you can rebuild your images under Site Admin > Maintenance

You may be able to switch back to file locking after that too. It's going to be faster than database locking.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ScottyRock

Joined: 2009-09-09
Posts: 5
Posted: Thu, 2009-11-05 21:59

Any help on the config for ImageMagick? his is all very new to me.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-05 22:17

You'll need to ask you host where it's at. But you can try /usr/bin/ or /usr/local/bin/

Then click Test Settings
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ScottyRock

Joined: 2009-09-09
Posts: 5
Posted: Thu, 2009-11-05 23:20

Neither one worked but I do appreciate the help. I'm in touch with my web host to see if they can help.

 
ScottyRock

Joined: 2009-09-09
Posts: 5
Posted: Thu, 2009-11-05 23:21

Here is the Debug output if you want to view?

is_dir(/usr/bin/)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(/home7/scottco2/public_html/gallery/g2data/tmp/)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/identify"
"/home7/scottco2/public_html/gallery/modules/imagemagick/data/test.gif" )
2>"/var/tmp/g2dbgH33e82"
getParameter exec.expectedStatus for core plugin
file_exists(/var/tmp/g2dbgH33e82)
filesize(/var/tmp/g2dbgH33e82)
unlink(/var/tmp/g2dbgH33e82)
Regular Output:
/home7/scottco2/public_html/gallery/modules/imagemagick/data/test.gif GIF
50x50 50x50+0+0 PseudoClass 8c 2.3e+02
Error Output:
Status: 0 (expected 0)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home7/scottco2/public_html/gallery/g2data/tmp/, imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/home7/scottco2/public_html/gallery/modules/imagemagick/data/test.gif"
"gif:/home7/scottco2/public_html/gallery/g2data/tmp/imgk_xk7qNq" )
2>"/var/tmp/g2dbgc8XEsO"
file_exists(/var/tmp/g2dbgc8XEsO)
filesize(/var/tmp/g2dbgc8XEsO)
fopen(/var/tmp/g2dbgc8XEsO, r, 0)
feof(Resource id #74)
fgets(Resource id #74, 4096)
feof(Resource id #74)
fgets(Resource id #74, 4096)
feof(Resource id #74)
fclose(Resource id #74)
unlink(/var/tmp/g2dbgc8XEsO)
Regular Output:
Error Output:
convert: unable to open image
`/home7/scottco2/public_html/gallery/g2data/tmp/imgk_xk7qNq': No such file
or directory.
Status: 1 (expected 0)
unlink(/home7/scottco2/public_html/gallery/g2data/tmp/imgk_xk7qNq)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/combine)
file_exists(/usr/bin/composite)
is_executable(/usr/bin/composite)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home7/scottco2/public_html/gallery/g2data/tmp/, imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home7/scottco2/public_html/gallery/modules/imagemagick/data/test.jpg"
"/home7/scottco2/public_html/gallery/modules/imagemagick/data/test.gif"
"gif:/home7/scottco2/public_html/gallery/g2data/tmp/imgk_7eCgcc" )
2>"/var/tmp/g2dbguB4SVz"
file_exists(/var/tmp/g2dbguB4SVz)
filesize(/var/tmp/g2dbguB4SVz)
fopen(/var/tmp/g2dbguB4SVz, r, 0)
feof(Resource id #76)
fgets(Resource id #76, 4096)
feof(Resource id #76)
fgets(Resource id #76, 4096)
feof(Resource id #76)
fclose(Resource id #76)
unlink(/var/tmp/g2dbguB4SVz)
Regular Output:
Error Output:
composite: unable to open image
`/home7/scottco2/public_html/gallery/g2data/tmp/imgk_7eCgcc': No such file
or directory.
Status: 1 (expected 0)
unlink(/home7/scottco2/public_html/gallery/g2data/tmp/imgk_7eCgcc)
chdir(/home7/scottco2/public_html/gallery)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-11-06 00:54
Quote:
composite: unable to open image
`/home7/scottco2/public_html/gallery/g2data/tmp/imgk_7eCgcc': No such file

Double check permissions on your g2data directory an all directories and files below it.

They need to be set so that the user the web server (or PHP) run as, can read and write to the files and directories.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here