After Upgrade to 2.6: Context "omeka-json" does not exist error


#1

Hello,
After upgrading Omeka 2.5.1 to 2.6, I have the following error messages while browsing the public pages of our Omeka web site. It is difficult to determine which pages generate the errors as those are sent by emails with a gap.

2018-03-29T14:31:35+00:00 ERR (3): Zend_Controller_Action_Exception: Context “omeka-json” does not exist in /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Controller/Action/Helper/ContextSwitch.php:532
Stack trace:
#0 /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Controller/Action/Helper/ContextSwitch.php(1239): Zend_Controller_Action_Helper_ContextSwitch->hasContext(‘omeka-json’, true)
#1 /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Controller/Action/Helper/ContextSwitch.php(257): Zend_Controller_Action_Helper_ContextSwitch->hasActionContext(‘browse’, ‘omeka-json’)
#2 /sites/bibnumcrbc/www/web_main/application/libraries/Omeka/Controller/AbstractActionController.php(475): Zend_Controller_Action_Helper_ContextSwitch->initContext()
#3 /sites/bibnumcrbc/www/web_main/application/libraries/Omeka/Controller/AbstractActionController.php(72): Omeka_Controller_AbstractActionController->_setActionContexts()
#4 /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Controller/Dispatcher/Standard.php(281): Omeka_Controller_AbstractActionController->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#5 /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#7 /sites/bibnumcrbc/www/web_main/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#8 /sites/bibnumcrbc/www/web_main/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#9 /sites/bibnumcrbc/www/web_main/index.php(23): Omeka_Application->run()
#10 {main}

Plugins:
BookReader 2.3
Clean Url 2.11
COinS 2.0.3
CreativeCommonsChooser 2.3
CSV Import 2.0.3
Curator Monitor 2.4.7
Default Search Options 1.0
Derivative Images 2.0
Dropbox 0.7.2
Dublin Core Extended 2.0.1
Escher 2.3.2
Exhibit Builder 3.4
Geolocation 2.2.3
GoogleAnalytics 1.3-2.0
History Log 2.9.1
HTML5 Media 2.6
OAI-PMH Harvester 2.01
OAI-PMH Repository 2.0
PDF TOC 1.0.2
Search By Metadata 1.2
SimpleContactForm 0.6
Simple Pages 3.1
Simple Vocab 2.1
UniversalViewer 2.4.4

Any idea or suggestion to find the origin of the problem ?
Thanks,


#2

Omeka 2.6 removes the “omeka-json” context, so you’d get this error for anything that visits a page trying to request the omeka-json version of the content.

For whatever reason, crawlers and other bots really like to index the omeka-json context versions of items, so the errors you’re seeing could just be that, particularly if you’re not able to reproduce the problem yourself at all. In other words, you’re just seeing automated attempts to access URLs that used to exist but now don’t.