[Warning] 150-webalizer.inc.php - exec() expects at most 3 parameters, 4 given

Discussion in 'Developers' Forum' started by fritzwalter, Jul 30, 2020.

  1. fritzwalter

    fritzwalter New Member

    Hello,
    When I run the following command, I get warnings. How can I fix it?
    Code:
    [email protected]:/usr/local/ispconfig/server# php cron_debug.php --cronjob=150-webalizer.inc.php
    PHP Warning:  exec() expects at most 3 parameters, 4 given in /usr/local/ispconfig/server/lib/classes/cron.d/150-webalizer.inc.php on line 131
    PHP Warning:  exec() expects at most 3 parameters, 4 given in /usr/local/ispconfig/server/lib/classes/cron.d/150-webalizer.inc.php on line 131
    PHP Warning:  exec() expects at most 3 parameters, 4 given in /usr/local/ispconfig/server/lib/classes/cron.d/150-webalizer.inc.php on line 131
    PHP Warning:  exec() expects at most 3 parameters, 4 given in /usr/local/ispconfig/server/lib/classes/cron.d/150-webalizer.inc.php on line 131
    finished.
    This is the 131. line:
    PHP:
    exec('chown -R ?:? ?'$username$groupname$statsdir);
     
  2. Jesse Norell

    Jesse Norell Well-Known Member

    Change 'exec' to '$app->system->exec_safe' (same as the line just above that one).
     

Share This Page