Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

error image gallery descriptions


Reply


3 Posts   876 Views

Avatar
bit99

Community Member, 24 Posts

9 July 2011 at 6:47am

Hi,
I have a huge problem with the image gallery by Uncle Cheese.
This issue has now happened on 2 websites. for both website - galleries were created fine a few weeks ago, then when updating the galleries this week with more photos: -- it uploads the photos fine, and then when you click continue to enter descriptions it craps out and gives the error below. Seems almost like folders have been rearranged on server and it looks for the uploaded file in the wrong place? nothing has been changed though, and now I get the same error for 2 websites - both shared hosting, but different webhosts.
any ideas?
on one of the sites I am able to create a fresh new gallery which works fine, on the other site - it gives an error for new galleries as well.

/////////////////// heres the error (the * is one foldername, the *** is another foldername etc.)
[User Error] Uncaught Exception: Cannot move assets/image-gallery/***/*/1.jpg to assets/image-gallery/******/*/1.jpg - Directory assets/image-gallery/******/* doesn't exist
POST /admin/EditForm/field/GalleryItems/UploadifyForm?SecurityID=ec07e341de347e2cbb17353df52ffc519668fbe2&ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_11&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100

Line 417 in /home/content/62/7740062/html/sapphire/filesystem/File.php
Source

408       // The folder of the path might've already been renamed by Folder->updateFilesystem()
409       // before any filesystem update on contained file or subfolder records is triggered.
410       if(!file_exists($pathAfterAbs)) {
411          if(!is_a($this, 'Folder')) {
412             // Only throw a fatal error if *both* before and after paths don't exist.
413             if(!file_exists($pathBeforeAbs)) throw new Exception("Cannot move $pathBefore to $pathAfter - $pathBefore doesn't exist");
414             
415             // Check that target directory (not the file itself) exists.
416             // Only check if we're dealing with a file, otherwise the folder will need to be created
417             if(!file_exists(dirname($pathAfterAbs))) throw new Exception("Cannot move $pathBefore to $pathAfter - Directory " . dirname($pathAfter) . " doesn't exist");
418          }
419          
420          // Rename file or folder
421          $success = rename($pathBeforeAbs, $pathAfterAbs);
422          if(!$success) throw new Exception("Cannot move $pathBeforeAbs to $pathAfterAbs");
423       }

Trace

File->updateFilesystem()
Line 368 of File.php
File->onAfterWrite()
Line 1056 of DataObject.php
DataObject->write()
Line 75 of ImageGalleryManager.php
ImageGalleryManager->updateDataObject(ImageGalleryItem)
Line 433 of FileDataObjectManager.php
FileDataObjectManager->saveUploadifyForm(Array,ImageGalleryManager_Popup,SS_HTTPRequest)
Line 329 of Form.php
Form->httpSubmission(SS_HTTPRequest)
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
Director::direct(/admin/EditForm/field/GalleryItems/UploadifyForm)
Line 127 of main.php

Avatar
bit99

Community Member, 24 Posts

9 July 2011 at 6:53am

I am using 2.4.5 and latest image gallery etc.
maybe I should downgrade to different version?

Avatar
bit99

Community Member, 24 Posts

11 July 2011 at 9:21am

nobody else seen this happen?
any ideas on how to solve this would be greatly appreciated
thanks,