Overview
During the Omeka S update process, the following error occurred.
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Omeka\View\Renderer\ApiJsonRenderer::__construct(), 0 passed
This is a personal note on how to address this error.
Solution
The solution was found at the following link.

Upgrade from 4.0.4 to 4.1 failed
Everything seemed to copy over OK, but 4.1 did not start, with the following error: Fri Apr 19 10:07:32.733563 2024] [php:error] [pid 872075:tid 139980768769792] [client 164.76.108.86:64367] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Omeka\View\Renderer\ApiJsonRenderer::__construct(), 0 passed in /home/apache2/htdocs/vendor/laminas/laminas-servicemanager/src/Factory/InvokableFactory.php on line 27 and exactly 1 expected in /home/apache2/htdocs/application/src/V...
Specifically, uninstalling the Next module resolved the above issue.
Summary
I hope this serves as a useful reference for those encountering the same issue.




Comments
โฆ