Error installing BulkCheck 3.3.9.1 on Omeka S

This is on Omeka S 3.0.1

We get the following error after installing BulkCheck 3.3.9.1


Error: Call to a member function err() on null in /home/apache2/htdocs/modules/BulkCheck/Module.php:108
Stack trace:
#0 /home/apache2/htdocs/modules/BulkCheck/Module.php(26): BulkCheck\Module->checkDestinationDir(’/home/apache2/h…’)
#1 /home/apache2/htdocs/modules/Generic/AbstractModule.php(63): BulkCheck\Module->preInstall()
#2 /home/apache2/htdocs/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Laminas\ServiceManager\ServiceManager))
#3 /home/apache2/htdocs/application/src/Controller/Admin/ModuleController.php(117): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#4 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Admin\ModuleController->installAction()
#5 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#6 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#7 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#8 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#9 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#10 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#11 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#12 /home/apache2/htdocs/index.php(21): Laminas\Mvc\Application->run()
#13 {main}


I realize we are kind of bleeding edge here, but any ideas?

OK. Code seemed to look like it was expecting 775 permissions on target directory. Install finally work when I switched perm to 777.

I can’t speak to BulkCheck specifically, but in general the code that checks permissions doesn’t care between 777, 775, etc., it only checks that PHP is able to read, write, and/or execute as requested.

The difference between what specific mode you need comes down to what user/group PHP runs as on your server and what user/group the file or folder in question belongs to. Things like 777 are only necessary when the PHP user shares neither its user nor group with the file or folder it needs access to. It’s often a better idea to change the owner or group of the file rather than grant wide permissions to all users.

Yes, the module creates a directory inside files/ to store results of some checks, so it checks the rights. The message is fixed in version 3.3.9.3.

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