Menu

#59 Cron fix for PHP 7.0

v1.0 (example)
closed-works-for-me
cron (1)
5
2019-04-04
2019-03-31
No

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

Discussion

  • Thomas Krieger

    Thomas Krieger - 2019-04-01

    INSTALL_BASE is a constant. Sorry won't apply the patch.

     

    Last edit: Thomas Krieger 2019-04-01
  • Thomas Krieger

    Thomas Krieger - 2019-04-01
    • status: open --> closed-works-for-me
     
  • Chirag Anand

    Chirag Anand - 2019-04-04

    INSTALL_BASE is a constant.

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.