janus-ssp / janus

Fully featured metadata registration administration module built on top of simpleSAMLphp.
Other
13 stars 8 forks source link

/hooks/hook_cron.php: Failed opening required '../www/_includes.php' #628

Open Jockel007 opened 6 years ago

Jockel007 commented 6 years ago

Hello!

I am using the SimpleSAMLphp-Cron module with the tag "hourly":

https://example.com/simplesaml/module.php/cron/cron.php?key=1234&tag=hourly

and got the following error:

Warning: require(../www/_includes.php): failed to open stream: No such file or directory in /var/simplesamlphp/modules/janus/hooks/hook_cron.php on line 21

Fatal error: require(): Failed opening required '../www/_includes.php'

It could be this commit: https://github.com/janus-ssp/janus/commit/9f3691f83b2ef9c8505ad92fa8364414f70f25bd


-require __DIR__ . '/../www/_includes.php';
+require '../www/_includes.php';