[solved]i can't upload those photos to my gallery2

supercn

Joined: 2004-11-10
Posts: 17
Posted: Mon, 2005-05-23 16:33

<
for a long time,my gallery2 can't upload those photos,eg:
http://blog.supercn.net/upload/zlx-0000.jpg

prompt:

Error (ERROR_PLATFORM_FAILURE)
in modules/core/classes/GalleryDataItem.class at line 182 (GalleryPhotoItem::error)
in modules/core/classes/GalleryPhotoItem.class at line 126 (GalleryPhotoItem::create)
in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 190 (GalleryPhotoItem::create)
in modules/core/classes/GalleryCoreApi.class at line 1480 (ItemAddFromBrowser::addItemToAlbum)
in modules/core/ItemAddFromBrowser.inc at line 89 (ItemAddFromBrowser::addItemToAlbum)
in modules/core/ItemAdd.inc at line 91 (ItemAddFromBrowser::handleRequest)
in main.php at line 182 (ItemAddController::handleRequest)
in main.php at line 86
in main.php at line 77

>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional):http://www.supercn.info
Gallery version:2.0-beta-3+
Webserver (with version):Apache 2.0.54
Datatabase (with version):MySQL 4.1.10-max-log
PHP version (eg 4.2.1):5.0.4 apache2handler
phpinfo URL (optional):
Graphics Toolkit(s):ImageMagick, SquareThumb, Gd
Operating system:RedHat Enterprise AS4 With Kernel 2.6.11.10 SMP
Web browser/version:IE 6.0
G1 version (for migration bugs):
[/url]

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-05-23 17:54

don't you get any other php warning or something?

if not, please activate buffered debug mode in config.php and post the complete debug output.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-23 18:07

can you upload any photos at all, or just that one fails?
have you run out of disk space for your g2data dir?

 
supercn

Joined: 2004-11-10
Posts: 17
Posted: Wed, 2005-05-25 01:42

Thank you!The problem has been solved.But it was not caused by the reason stated above.One month ago,I created a new album base named "Sapphire".so,Gallery 2 automatically created a directory "Sapphire".Since the directory has created,we couldn't upload any photos in this album.Whereas,I can upload anything in other albums,.At the beginning,I think there is something wrong with the Gallery 2 code. But just now,I found that it may be caused by the automatically-established directory "Sapphire" which couldn't be accessible.The attribute of the "Sapphire" is 777.But we couldn't access this directory by using ROOT identity through LINUX console,eg:cd Sapphire(strange problem).we could solve the problem by deleting this album in Gallery 2 ,and then manually deleting this directory (rm –rf Sapphire),finally reestablishing the album .