Guides & Tutorials7.2 Update TroubleshootingCron failing with error undefined index: SCRIPT_NAME

Cron failing with error undefined index: SCRIPT_NAME

After updating to version 7.2.0 or 7.2.1, cron scripts are failing to run and outputting an error:

undefined index: SCRIPT_NAME

The following files may be referenced:

  • cron.php
  • pop.php
  • domainsync.php

This issue arises when the sensitivity of the system error reporting is set to a high level. If your PHP system error reporting is disabled, this issue will be safely ignored.

A hotfix has been created which will prevent the warning condition that is triggering this issue. It can be downloaded from:

https://forum.whmcs.com/showthread.php?129078