Omeka has encountered an error pho:1093

Hi -

When users save a transcribed item, they frequently but intermittently get this error “Omeka has encountered an error”. The error log shows the listing below repeatedly - web searches show others have had the same problem, but I don’t see an explanation or solution. What is wrong and how do I fix it?

Thank you
This is the error log - scroll down for version information.

Exception: Unable to read response, or response is empty in /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Http/Client.php:1093
Stack trace:
#0 /home/lan_t3rn/nsmlv.org/omeka/plugins/Scripto/libraries/Scripto/Service/MediaWiki.php(664): Zend_Http_Client->request(‘POST’)
#1 /home/lan_t3rn/nsmlv.org/omeka/plugins/Scripto/libraries/Scripto/Service/MediaWiki.php(466): Scripto_Service_MediaWiki->_request(‘query’, Array)
#2 /home/lan_t3rn/nsmlv.org/omeka/plugins/Scripto/libraries/Scripto/Service/MediaWiki.php(157): Scripto_Service_MediaWiki->query(Array)
#3 /home/lan_t3rn/nsmlv.org/omeka/plugins/Scripto/libraries/Scripto.php(214): Scripto_Service_MediaWiki->getUserInfo(‘groups|rights’)
#4 /home/lan_t3rn/nsmlv.org/omeka/plugins/Scripto/libraries/Scripto.php(83): Scripto->setUserInfo()
#5 /home/lan_t3rn/nsmlv.org/omeka/plugins/Scripto/ScriptoPlugin.php(663): Scripto->__construct(Object(ScriptoAdapterOmeka), Array)
#6 /home/lan_t3rn/nsmlv.org/omeka/themes/Scribe/common/header.php(51): ScriptoPlugin::getScripto()
#7 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Omeka/View.php(117): include(’/home/lan_t3rn/…’)
#8 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run(’/home/lan_t3rn/…’)
#9 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/View/Helper/Partial.php(109): Zend_View_Abstract->render()
#10 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/View/Abstract.php(349): Zend_View_Helper_Partial->partial(‘common/header.p…’, Array)
#11 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/globals.php(1656): Zend_View_Abstract->__call(‘partial’, Array)
#12 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/globals.php(1670): common(‘header’, Array)
#13 /home/lan_t3rn/nsmlv.org/omeka/themes/Scribe/scripto/index/transcribe.php(5): head(Array)
#14 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Omeka/View.php(117): include(’/home/lan_t3rn/…’)
#15 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run(’/home/lan_t3rn/…’)
#16 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render()
#17 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript(‘index/transcrib…’, NULL)
#18 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#19 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#20 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#21 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘transcribeActio…’)
#22 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#24 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/lan_t3rn/nsmlv.org/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#26 /home/lan_t3rn/nsmlv.org/omeka/index.php(23): Omeka_Application->run()

Version information
System
Omeka 2.4.1
PHP 7.0.21 (cgi-fcgi)
OS Linux 3.2.61-grsec-modsign x86_64
MySQL Server 5.6.34
MySQL Client mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
PHP Extensions
Regular bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, iconv, imagick, imap, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib
Zend Zend OPcache
Plugins
Dropbox 0.7.2
DublinCoreExtended 2.0.1
Export 2.0
ItemOrder 2.0.2
Scripto 2.2
SimplePages 3.0.7
Themes
Scribe 2.0 (current)
berlin 2.3.1
default 2.3.2
seasons 2.3.1

I suspect that MediaWiki is timing out and sending an empty response to Scripto. Does your MediaWiki installation run slowly? You could increase PHP’s max_execution_time setting and see if that works. You could also upgrade MediaWiki to a newer version, which may be better optimized.

At any rate, I recommend that you upgrade to Scripto 2.3. I don’t think it will solve the problem but it will make Scripto compatible with newer versions of MediaWiki.

Hello -

Thank you very much for your suggestions! I will work on implementing them, although I did try to upgrade mediawiki and had to rollback to the old version because it broke some of the Scripto customizations.

Thank you again!