Cron fix for PHP 7.0
Administer Subversion repository access rights easily
Brought to you by:
tom_krieger
The following line needs to be modified in scripts/cronjobs/cron_createAccessFiles.php
to get the script to work with PHP7.0.
--- cron_createAccessFiles.php 2019-03-31 08:05:41.021068445 +0200 +++ cron_createAccessFiles.php.new 2019-03-31 08:03:42.669157394 +0200 @@ -48,7 +48,7 @@ die("can't load config.inc.php. Please check your installation!\n"); } -$INCLUDEPATH = isset($CONF[INSTALL_BASE]) ? $CONF[INSTALL_BASE] : ""; +$INCLUDEPATH = isset($CONF['install_base']) ? $CONF['install_base'] : ""; include_once ("$INCLUDEPATH/include/constants.inc.php"); require ("$INCLUDEPATH/include/variables.inc.php");
OS: Debian: 9.8
SVN Access Manager: Build: 2018-06-07 18:44:22 - 1155
PHP Version: 7.0.33-0+deb9u1
INSTALL_BASE is a constant. Sorry won't apply the patch.
Last edit: Thomas Krieger 2019-04-01
It doesn't seem to be defined in config.php. Or is it that admin needs to hard-code these values in?
Last edit: Chirag Anand 2019-04-04