Major Error with my landing page

Hi All,

Its been a while since I last checked into my Omeka website and when I did I found an error at the landing page.

I followed the instructions to get the error log… Any advice appreciated.

Thanks Tony…

Omeka has encountered an error

Zend_Session_Exception
Zend_Session::start() - /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Db/Table/Abstract.php(Line:1307): Error #2 count(): Parameter must be an array or an object that implements Countable
/home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Db/Table/Abstract.php(Line:1307): Error #2 count(): Parameter must be an array or an object that implements Countable

Zend_Session_Exception: Zend_Session::start() - /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Db/Table/Abstract.php(Line:1307): Error #2 count(): Parameter must be an array or an object that implements Countable
/home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Db/Table/Abstract.php(Line:1307): Error #2 count(): Parameter must be an array or an object that implements Countable in /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Session.php:495
Stack trace:
#0 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#1 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Auth/Storage/Session.php(86): Zend_Session_Namespace->__construct(‘Zend_Auth’)
#2 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#3 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Auth.php(141): Zend_Auth->getStorage()
#4 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/Application/Resource/Currentuser.php(42): Zend_Auth->hasIdentity()
#5 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Currentuser->init()
#6 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘Currentuser’)
#7 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘Currentuser’)
#8 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/Application/Resource/Helpers.php(122): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(‘Currentuser’)
#9 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/Application/Resource/Helpers.php(27): Omeka_Application_Resource_Helpers->_initAclHelper()
#10 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Helpers->init()
#11 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘Helpers’)
#12 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘Helpers’)
#13 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/Application/Resource/Frontcontroller.php(63): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(‘Helpers’)
#14 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Frontcontroller->init()
#15 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(638): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘frontcontroller’)
#16 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘frontcontroller’)
#17 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application.php(373): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL)
#18 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/Application.php(49): Zend_Application->bootstrap()
#19 /home/fourtoes/collection.fourtoes.co.uk/index.php(23): Omeka_Application->initialize()
#20 {main}

Your host has probably updated the version of PHP it’s using; this is an error you can get when using an older Omeka version on the latest PHP versions.

Upgrading Omeka to the latest version (currently 2.7) should resolve this.

Thank you, Its been a while since Ive had chance to look at it, so just spent a while figuring out the upgrading and panel stuff. I think I’ve done it, copied across images, themes and plugins etc. and all seems to be working. Can start uploading stuff when I get chance.

Thank you.

Tony

darn it, spoke too soon.

On my Simple Pages plugin I now get this error in the admin area when I click new page or edit page… I can see its missing a js file but its not in my old version of Omeka either so I cant copy it across? Arghhhh

Omeka has encountered an error

InvalidArgumentException

Could not find file javascripts/vendor/tiny_mce/tiny_mce.js!

InvalidArgumentException: Could not find file javascripts/vendor/tiny_mce/tiny_mce.js! in /home/fourtoes/collection.fourtoes.co.uk/application/libraries/globals.php:1288 Stack trace: #0 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/globals.php(1247): web_path_to(‘javascripts/ven…’) #1 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/globals.php(1033): src(‘javascripts/ven…’, ‘javascripts’, ‘js’, ‘2.7’) #2 /home/fourtoes/collection.fourtoes.co.uk/plugins/SimplePages/views/admin/index/edit.php(2): queue_js_file(‘vendor/tiny_mce…’) #3 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/View.php(114): include(’/home/fourtoes/…’) #4 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run(’/home/fourtoes/…’) #5 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL) #6 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript(‘index/edit.php’, NULL) #7 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render() #8 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #9 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch() #10 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘editAction’) #11 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #12 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch() #13 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #14 /home/fourtoes/collection.fourtoes.co.uk/application/libraries/Omeka/Application.php(73): Zend_Application->run() #15 /home/fourtoes/collection.fourtoes.co.uk/admin/index.php(28): Omeka_Application->run() #16 {main}

You probably just need to update Simple Pages. Omeka 2.7 would have come with a compatible version, but if you copied back over the one you had before instead, you’ll have problems.

Again you are quite right, I’ve now updated and everything works as it should, I best start using it again.
Sorry for the silly newbie questions.

Tony

1 Like