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:

[60ad2fa22c057ae4a710b754] Caught exception of type Error


Scripto\Mediawiki\Exception\EditException: [60ad2fa22c057ae4a710b754] Caught exception of type Error in /home/schaffer/ Stack trace: #0 /home/schaffer/ Scripto\Mediawiki\ApiClient->editPage(‘15:7421:7754’, ‘[blank]’, ‘’) #1 /home/schaffer/ Scripto\Module->editMediawikiPage(Object(Laminas\EventManager\Event)) #2 /home/schaffer/ Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\EventManager\Event)) #3 /home/schaffer/ Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\EventManager\Event)) #4 /home/schaffer/ Omeka\Api\Adapter\AbstractEntityAdapter->hydrateEntity(Object(Omeka\Api\Request), Object(Scripto\Entity\ScriptoMedia), Object(Omeka\Stdlib\ErrorStore)) #5 /home/schaffer/ Omeka\Api\Adapter\AbstractEntityAdapter->update(Object(Omeka\Api\Request)) #6 /home/schaffer/ Omeka\Api\Manager->execute(Object(Omeka\Api\Request)) #7 /home/schaffer/ Omeka\Api\Manager->update(‘scripto_media’, 4945, Array, Array, Array) #8 /home/schaffer/ Omeka\Mvc\Controller\Plugin\Api->update(‘scripto_media’, 4945, Array) #9 /home/schaffer/ Scripto\Controller\PublicApp\MediaController->handleEdit(0) #10 /home/schaffer/ Scripto\Controller\PublicApp\MediaController->editAction() #11 /home/schaffer/ Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent)) #12 /home/schaffer/ Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #13 /home/schaffer/ Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #14 /home/schaffer/ Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response)) #15 /home/schaffer/ Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent)) #16 /home/schaffer/ Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #17 /home/schaffer/ Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #18 /home/schaffer/ 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.