connect images to items

Hello, I'm a very new omeka user and don't have any programming experience. I am working on a database for a student-teachers' library, specifically for "hand on" items. I have uploaded some test "items" through zotero, but I would like to know how to associate photos with each of the items. When I try to upload a jpeg from my computer, no actual image shows up. The site is here:

https://omeka.oise.utoronto.ca/

I realize that this is probably a very basic question, but I can't figure it out (though I can see that others have done it by looking at the "showcase" sites).

Thanks for your help!

Val

Welcome to Omeka!

It might help to know about the exact steps you took for uploading the file. Did you receive any errors?

To review, to add a file to an existing item, you'll want to edit that item, and upload a file from the Files tab and click Save Changes.

Usually if there is an error with the file you will receive a message at that point. If you get a MIME/type related error message, try going to Admin->Settings->Security and check the box, "Disable File Upload Validation".

Hi Sheila,
I have to get an IT person to enable error messages, so it might be a few days before I get back to you (I'm doing a work placement at a University library).
Thanks for the suggestions, I tried that check box with the same error result.

Hi again,

Error messages have been enabled, so now I have a little more information to work with! Although I don't know how to "read" the error messages...

I tried to upload a new image as a file within an existing item, and when I click "save changes", I get an error. HOWEVER, the image file appears to be attached to the item, but I can't view the actual image.

The error says (this is long, sorry, but I don't know which parts are important):

exception 'Omeka_File_Derivative_Exception' with message 'Something went wrong with image creation. Please notify an administrator.' in /srv/Apps/omeka-1.4.1/application/libraries/Omeka/File/Derivative/Image.php:192
Stack trace:
#0 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/File/Derivative/Image.php(117): Omeka_File_Derivative_Image::createImage('/tmp/d03f2a76e5...', '200', 'square_thumbnai...')
#1 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/File/Derivative/Image.php(225): Omeka_File_Derivative_Image::createDerivativeImages('/tmp/d03f2a76e5...')
#2 /srv/Apps/omeka-1.4.1/application/models/File.php(248): Omeka_File_Derivative_Image::createAll('/tmp/d03f2a76e5...', 'image/jpeg')
#3 /srv/Apps/omeka-1.4.1/application/models/File/ProcessUploadJob.php(24): File->createDerivatives()
#4 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(26): File_ProcessUploadJob->perform()
#5 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Job/Dispatcher/Default.php(91): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"F...', Array)
#6 /srv/Apps/omeka-1.4.1/application/models/File.php(70): Omeka_Job_Dispatcher_Default->send('File_ProcessUpl...', Array)
#7 [internal function]: File->afterInsert()
#8 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(284): call_user_func_array(Array, Array)
#9 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(563): Omeka_Record->runCallbacks('afterInsert')
#10 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(583): Omeka_Record->save()
#11 /srv/Apps/omeka-1.4.1/application/models/Item.php(288): Omeka_Record->forceSave()
#12 /srv/Apps/omeka-1.4.1/application/models/ItemBuilder.php(214): Item->saveFiles()
#13 /srv/Apps/omeka-1.4.1/application/libraries/globals.php(491): ItemBuilder->addFiles('Upload', 'file', Array)
#14 /srv/Apps/omeka-1.4.1/application/models/Item.php(270): insert_files_for_item(Object(Item), 'Upload', 'file', Array)
#15 /srv/Apps/omeka-1.4.1/application/models/Item.php(154): Item->_uploadFiles()
#16 [internal function]: Item->beforeSaveForm(Object(ArrayObject))
#17 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(284): call_user_func_array(Array, Array)
#18 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(805): Omeka_Record->runCallbacks('beforeSaveForm', Object(ArrayObject))
#19 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Controller/Action.php(483): Omeka_Record->saveForm(Array)
#20 /srv/Apps/omeka-1.4.1/application/controllers/ItemsController.php(100): Omeka_Controller_Action->editAction()
#21 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Controller/Action.php(513): ItemsController->editAction()
#22 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('editAction')
#23 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#24 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#25 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#26 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Core.php(166): Zend_Application->run()
#27 /srv/Apps/omeka-1.4.1/admin/index.php(45): Omeka_Core->run()
#28 {main}

Hi again,

I have just discovered that I am unable to delete the image files that I have associated with items; here is the error message:

exception 'Omeka_Storage_Exception' with message 'Unable to delete file.' in /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Storage/Adapter/Filesystem.php:153
Stack trace:
#0 [internal function]: Omeka_Storage_Adapter_Filesystem->delete('files/b33ab483e...')
#1 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Storage.php(66): call_user_func_array(Array, Array)
#2 /srv/Apps/omeka-1.4.1/application/models/File.php(232): Omeka_Storage->__call('delete', Array)
#3 /srv/Apps/omeka-1.4.1/application/models/File.php(232): Omeka_Storage->delete('files/b33ab483e...')
#4 /srv/Apps/omeka-1.4.1/application/models/File.php(238): File->unlinkFile()
#5 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(622): File->_delete()
#6 /srv/Apps/omeka-1.4.1/application/models/Item.php(253): Omeka_Record->delete()
#7 /srv/Apps/omeka-1.4.1/application/models/Item.php(208): Item->_deleteFiles(Array)
#8 [internal function]: Item->afterSaveForm(Object(ArrayObject))
#9 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(284): call_user_func_array(Array, Array)
#10 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Record.php(810): Omeka_Record->runCallbacks('afterSaveForm', Object(ArrayObject))
#11 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Controller/Action.php(483): Omeka_Record->saveForm(Array)
#12 /srv/Apps/omeka-1.4.1/application/controllers/ItemsController.php(100): Omeka_Controller_Action->editAction()
#13 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Controller/Action.php(513): ItemsController->editAction()
#14 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('editAction')
#15 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#17 /srv/Apps/omeka-1.4.1/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#18 /srv/Apps/omeka-1.4.1/application/libraries/Omeka/Core.php(166): Zend_Application->run()
#19 /srv/Apps/omeka-1.4.1/admin/index.php(45): Omeka_Core->run()
#20 {main}

Hello? Is anyone able to help me with this? Do you need more information? Let me know what I need to send and I'll do what I can...

Thanks!

Hello? Is anyone able to help me with this?

Whoops... the forum software flagged your last several posts as spam, so nobody's been able to see them. They're visible now.

The problem you're having trying to delete the Files is a known issue, one that will be fixed by a new Omeka release very soon.

As for the underlying error here, the "Something went wrong with image creation" one, the problem is likely coming from ImageMagick, the software that Omeka uses to create thumbnails from the images you upload.

You might need to have your server administrator check to make sure the path to ImageMagick is correct (the path is set in your Omeka General Settings screen) and to make sure that the ImageMagick install works and doesn't have any problems.

Thanks John. I have sent the info on to my IT buddy, and I'll hopefully get back to you soon with any further questions on this topic.

The part of the problem where you were unable to delete files should be fixed by Omeka 1.4.2.

If I upgrade to Omeka 1.4.2, will my zotero plug-in work-arounds have to be changed? what about other coding issues that we've had to tweak? I feel nervous about upgrading when we've just managed to fix so many little problems...

Hi again,

I heard back from the IT folks, here is what they said:

Imagemagick is definitely installed, and using the "Test" button the general settings screen in Omeka shows it seems to be able to access it, so I don't know if that's the problem they're suspecting. Check in with them again.

Is there anything more specific that we should be checking?

If I upgrade to Omeka 1.4.2, will my zotero plug-in work-arounds have to be changed? what about other coding issues that we've had to tweak? I feel nervous about upgrading when we've just managed to fix so many little problems...

It depends where you've been making these tweaks and changes. If you've been changing Omeka code, particularly core code, you'd have to re-do those changes. If you're talking about settings and things done through the Omeka interface, all that will stay the same. Changes to plugins would also persist.

The documentation for upgrading gives instructions for making sure you don't lose data or overwrite the wrong things (though a lot of it, like the parts telling you you'll need to upgrade your plugins, isn't applicable here, since 1.4.2 is compatible with any plugins that work with the other 1.4 versions).

Hi folks,

Any more suggestions on how to deal with my problem getting images to show as images? (see note above from our IT folks)

Thanks!
Val