CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12172] CronJobTrait undefined constants

avatar
Created By: Chris Taylor (chrisbt)
Date Submitted: Fri Oct 18 08:45:36 -0400 2019

Assigned To:
Version: 2.2.12
CMSMS Version: 2.2.12
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
CronJobTrait undefined constants
Detailed Description:
3 of the frequency constants used in class.CronJobTrait.php are not defined in
class.CronJobInterface.php
RECUR_2H
RECUR_3H
RECUR_12H

PHP Fatal error:  Uncaught Error: Undefined class constant 'RECUR_2H' in
/home/blah/public_html/lib/classes/Async/class.CronJobTrait.php:93

To create this error I called $this->frequency = self::RECUR_WEEKLY;

To fix it, in class.CronJobInterface.php - although haven't tested those
frequencies ... but will now...
    const RECUR_2H = '_120m';
    const RECUR_3H = '_180m';
    const RECUR_12H = '_720m';


History

Comments
avatar
Date: 2020-03-19 05:55
Posted By: Rolf (rolf1)

Fixed in SVN for 2.2.14
      
Updates

Updated: 2024-05-06 11:07
assigned_to_id: 106 => 100
state: Open => Closed

Updated: 2020-03-19 05:55
resolution_id: => 7