Invalid Argument Exception in Scripto

Hello, I’m wondering if anyone has a functioning instance of Scripto using MediaWiki 1.39.11 or later? Reclaim Hosting helped us resolve some MW issues recently, but their infrastructure team has reached the limits of what they can do. When we click “Transcribe this item,” we are still getting the following error:

[aFMJ9yjCQNSKDqsLjoD7wQAAAJc] Exception caught: A database query error has occurred. This may indicate a bug in the software

2025-06-18T19:10:57+00:00 ERR (3): InvalidArgumentException: Invalid record passed to recordMetadata. in /public_html/application/views/helpers/Metadata.php:58
Stack trace:
#0 /public_html/application/libraries/Zend/View/Abstract.php(350): Omeka_View_Helper_Metadata->metadata(NULL, Array, Array)
#1 /public_html/application/libraries/globals.php(2062): Zend_View_Abstract->__call('metadata', Array)
#2 /public_html/plugins/CsvExport/helpers/CsvExportFunctions.php(74): metadata(NULL, Array, Array)
#3 /public_html/plugins/CsvExport/helpers/CsvExportFunctions.php(110): getCsvRow(Object(Item), Array)
#4 /public_html/plugins/CsvExport/views/shared/items/browse.csv.php(8): printCsvExport(Array)
#5 /public_html/application/libraries/Omeka/View.php(114): include('/home/teorapro/...')
#6 /public_html/application/libraries/Zend/View/Abstract.php(889): Omeka_View->_run('/home/teorapro/...')
#7/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#8/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('items/browse.cs...', NULL)
#9 /public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#10 /public_html/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#11 /public_html/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#12 /public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('browseAction')
#13 /public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#14 /public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
#15 /public_html/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#16 /public_html/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#17 /public_html/index.php(23): Omeka_Application->run()
#18 {main}

We are running the following:
MediaWiki: 1.39.11
Omeka: 3.1.2
Scripto: 2.5
PHP: 8.1

The error you have there from the Omeka error log is related to the “CsvExport” plugin and probably has nothing to do with whatever issues you’re having with Scripto.

My suspicion would be that a database error from Mediawiki, as your first message suggests, probably indicates an issue within your Mediawiki installation and not necessarily with Scripto. (As one possibility, there’s an update script you need to run when updating Mediawiki’s version, and not running it could cause this kind of error.)

What you need is more detailed information about that Mediawiki error. There are a few ways to get this kind of info from a Mediawiki install; probably the most straightforward in your situation would be to turn on logging, trigger the error, then check the log.