Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.0
-
None
Description
eZModule::globalPathList() returns null if you try to use it in pre checks, example of such a pre check is eZUserLoginHandler::checkUser().
So if you try to run code like this "eZOperationHandler::execute( 'content', 'publish',..." in a pre check, you'll get a warning like this:
Warning: PHP Jan 18 2008 16:42:53 Invalid argument supplied for foreach() in /opt/ezpublish/www/lib/ezutils/classes/ezmoduleoperationinfo.php on line 75 Warning: PHP Jan 18 2008 16:42:53 Undefined variable: definitionFile in /opt/ezpublish/www/lib/ezutils/classes/ezmoduleoperationinfo.php on line 82 Error: eZModuleOperationInfo::loadDefinition Jan 18 2008 16:42:53 Missing operation definition file for module: content Error: eZOperationHandler::execute Jan 18 2008 16:42:53 Cannot execute operation 'publish' in module 'content', no valid data
It might be enough to move:
$moduleRepositories = eZModule::activeModuleRepositories(); eZModule::setGlobalPathList( $moduleRepositories );
before:
$check = eZHandlePreChecks( $siteBasics, $uri );
in index.php