1.5x to 2.0.4 errors

Hello,

I upgraded from 1.5x to 2.0.4 yesterday. The site seemed to be working fine.

I've been trying to add new items or edit old items by adding new files and I have been getting error messages of the type "omeka has encountered an error."

I tried to follow the retrieve error message directions, but my .htaccess file does not have "# SetEnv APPLICATION_ENV development" in it.

Thanks,
Jared

If you don't have that line, then you probably kept your old .htaccess file instead of using the one from 2.0.4.

This may not be the cause of your problems, but you generally need the new 2.0 .htaccess for many things to work. You can get it out of the zip again if you need it.

Hi John,

Ok. I've updated the .htaccess file from the 2.0.4 download folder.

Once I removed the #SetEnv etc, I got the following error message:

Omeka has encountered an error

Omeka_File_Derivative_Exception
Failed to execute command: /usr/bin/identify '/tmp/c8375dd8cf3072e0524b07029409cd41.jpg[0]'.

#0 /home/mappi180/public_html/application/libraries/Omeka/File/Derivative/Image/Creator.php(232): Omeka_File_Derivative_Image_Creator::executeCommand('/usr/bin/identi...', NULL, NULL, NULL)
#1 /home/mappi180/public_html/application/libraries/Omeka/File/Derivative/Image/Creator.php(215): Omeka_File_Derivative_Image_Creator->_isIdentifiable('/tmp/c8375dd8cf...')
#2 /home/mappi180/public_html/application/libraries/Omeka/File/Derivative/Image/Creator.php(86): Omeka_File_Derivative_Image_Creator->_isDerivable('/tmp/c8375dd8cf...')
#3 /home/mappi180/public_html/application/models/File.php(362): Omeka_File_Derivative_Image_Creator->create('/tmp/c8375dd8cf...', 'c8375dd8cf3072e...', 'image/jpeg')
#4 /home/mappi180/public_html/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#5 /home/mappi180/public_html/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#6 /home/mappi180/public_html/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#7 /home/mappi180/public_html/application/models/File.php(209): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#8 [internal function]: File->afterSave(Array)
#9 /home/mappi180/public_html/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#10 /home/mappi180/public_html/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#11 /home/mappi180/public_html/application/models/Item.php(322): Omeka_Record_AbstractRecord->save()
#12 /home/mappi180/public_html/application/models/Builder/Item.php(204): Item->saveFiles()
#13 /home/mappi180/public_html/application/libraries/globals.php(554): Builder_Item->addFiles('Upload', 'file', Array)
#14 /home/mappi180/public_html/application/models/Item.php(307): insert_files_for_item(Object(Item), 'Upload', 'file', Array)
#15 /home/mappi180/public_html/application/models/Item.php(217): Item->_uploadFiles()
#16 [internal function]: Item->beforeSave(Array)
#17 /home/mappi180/public_html/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#18 /home/mappi180/public_html/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)
#19 /home/mappi180/public_html/application/libraries/Omeka/Controller/AbstractActionController.php(175): Omeka_Record_AbstractRecord->save(false)
#20 /home/mappi180/public_html/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()
#21 /home/mappi180/public_html/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#22 /home/mappi180/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#23 /home/mappi180/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#24 /home/mappi180/public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#25 /home/mappi180/public_html/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#26 /home/mappi180/public_html/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#27 /home/mappi180/public_html/admin/index.php(28): Omeka_Application->run()
#28 {main}

Has this problem been fixed in 2.1.2?

Is it advisable to jump from 2.0.4 to 2.1.2 directly?

Any help is appreciated. Thanks.

The problem might be that your server is blocking the use of the proc_open function Omeka 2 uses to call ImageMagick.

There's no difference in that behavior between 2.0 and 2.1, though.

Thanks John! I contacted my server host and now that I had a function to search in Omeka, seems this exact problem has been recurring with 2.0. Seeing that proc_open is essential for Omeka, my only option at this point is to begin the search for a host all over again for one that supports this functionality. Many hosts are saying its being disabled due to security reasons on a shared server and dedicated machines are much more expensive.

I wanted to update this thread so others searching will beware some of these problems with 2.0.