Scripto Edit Exception error when saving a transcription

I’m curious if anyone is running into this same error lately or if it’s just us. The version we have hasn’t been updated, the Media Wiki API is valid and we haven’t been having an issue until now. When a logged in user saves a page which has been transcribed, it throws the following error:

Scripto\Mediawiki\Exception\EditException
[60ad2fa22c057ae4a710b754] Caught exception of type Error

Details:

Scripto\Mediawiki\Exception\EditException: [60ad2fa22c057ae4a710b754] Caught exception of type Error in /home/schaffer/digitalcollections.union.edu/modules/Scripto/src/Mediawiki/ApiClient.php:637 Stack trace: #0 /home/schaffer/digitalcollections.union.edu/modules/Scripto/Module.php(469): Scripto\Mediawiki\ApiClient->editPage(‘15:7421:7754’, ‘[blank]’, ‘’) #1 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Scripto\Module->editMediawikiPage(Object(Laminas\EventManager\Event)) #2 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\EventManager\Event)) #3 /home/schaffer/digitalcollections.union.edu/application/src/Api/Adapter/AbstractEntityAdapter.php(638): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\EventManager\Event)) #4 /home/schaffer/digitalcollections.union.edu/application/src/Api/Adapter/AbstractEntityAdapter.php(440): Omeka\Api\Adapter\AbstractEntityAdapter->hydrateEntity(Object(Omeka\Api\Request), Object(Scripto\Entity\ScriptoMedia), Object(Omeka\Stdlib\ErrorStore)) #5 /home/schaffer/digitalcollections.union.edu/application/src/Api/Manager.php(233): Omeka\Api\Adapter\AbstractEntityAdapter->update(Object(Omeka\Api\Request)) #6 /home/schaffer/digitalcollections.union.edu/application/src/Api/Manager.php(136): Omeka\Api\Manager->execute(Object(Omeka\Api\Request)) #7 /home/schaffer/digitalcollections.union.edu/application/src/Mvc/Controller/Plugin/Api.php(152): Omeka\Api\Manager->update(‘scripto_media’, 4945, Array, Array, Array) #8 /home/schaffer/digitalcollections.union.edu/modules/Scripto/src/Controller/PublicApp/MediaController.php(162): Omeka\Mvc\Controller\Plugin\Api->update(‘scripto_media’, 4945, Array) #9 /home/schaffer/digitalcollections.union.edu/modules/Scripto/src/Controller/PublicApp/MediaController.php(53): Scripto\Controller\PublicApp\MediaController->handleEdit(0) #10 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Scripto\Controller\PublicApp\MediaController->editAction() #11 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent)) #12 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #13 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #14 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response)) #15 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent)) #16 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #17 /home/schaffer/digitalcollections.union.edu/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #18 /home/schaffer/digitalcollections.union.edu/index.php(21): Laminas\Mvc\Application->run() #19 {main}

Scripto is attempting to make an edit request against your MediaWiki’s API and it’s returning an unhelpful error message. Try getting a more helpful error message by setting $wgShowExceptionDetails = true; in your MediaWiki’s LocalSettings.php file.

Also, have you installed or enabled any MediaWiki extensions lately? Antispam and captcha extensions could cause this error.

No, we haven’t installed or enabled anything. That’s interesting that $wgShowExceptionDetails isn’t in our LocalSettings.php file. I can add it. I also just read that we can add the following code to the top of this same file:

error_reporting( -1 );
ini_set( ‘display_errors’, 1 );

Would this display the same results?

You could try, but I don’t think it will have the same effect as $wgShowExceptionDetails

You’re right, it didn’t!

So we discovered that it appears as though the error is coming from a reference to getParentRevisionID(), as it’s been depreciated since version 1.38. We hadn’t realized until now that our installation was automatically updated to version 1.39.2, so that is probably the issue.

Of course, now after having reverted back to a version before 1.38, we’re having more problems, as MediaWiki doesn’t recognize our existing accounts as registered. I imagine there’s some sort of disconnect with the database I cannot pinpoint right now.

Thanks again for your input

MediaWiki\Content\ValidationParams::getParentRevisionId ()
depreciated since 1.38.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.