#!/usr/bin/env php
( ! ) Warning: Undefined property: stdClass::$COMPANY_SHOW_ADDRESS_SELECTLIST in R:\Ampps\www\Cabello-Enterprises\htdocs\societe\class\societe.class.php on line 741
Call Stack
#TimeMemoryFunctionLocation
10.0012458960{main}( )...\cron_run_jobs.php:0
20.0019508264require_once( 'R:\Ampps\www\Cabello-Enterprises\htdocs\master.inc.php )...\cron_run_jobs.php:45
30.07176027408Societe->__construct( $db = class DoliDBMysqli { public $db = class mysqli { public $affected_rows = 406; public $client_info = 'mysqlnd 8.2.30'; public $client_version = 80230; public $connect_errno = 0; public $connect_error = NULL; public $errno = 0; public $error = ''; public $error_list = [...]; public $field_count = 3; public $host_info = 'localhost via TCP/IP'; public $info = NULL; public $insert_id = 0; public $server_info = '8.0.45'; public $server_version = 80045; public $sqlstate = '00000'; public $protocol_version = 10; public $thread_id = 87824; public $warning_count = 0 }; public $type = 'mysqli'; public $forcecharset = 'latin1'; public $forcecollate = 'latin1_swedish_ci'; private ${DoliDB}_results = NULL; public $connected = TRUE; public $database_selected = TRUE; public $database_name = 'cabello-enterprises'; public $database_user = 'cesar'; public $database_host = 'localhost'; public $database_port = '3306'; public $transaction_opened = 0; public $lastquery = 'SELECT name as name, value as value, entity FROM llx_const WHERE entity IN (0,1) ORDER BY entity'; public $lastqueryerror = NULL; public $lasterror = NULL; public $lasterrno = NULL; public $ok = TRUE; public $error = NULL; private $_results = class mysqli_result { } } )...\master.inc.php:244
Usage: cron_run_jobs.php securitykey userlogin|'firstadmin' [cronjobid] The script return 0 when everything worked successfully. On Linux system, you can have cron jobs ran automatically by adding an entry into cron. For example, to run pending tasks each day at 3:30, you can add this line: 30 3 * * * R:\Ampps\www\Cabello-Enterprises\scripts\cron/cron_run_jobs.php securitykey userlogin > R:/Ampps/www/Cabello-Enterprises/documents/cron_run_jobs.php.log For example, to run pending tasks every 5mn, you can add this line: */5 * * * * R:\Ampps\www\Cabello-Enterprises\scripts\cron/cron_run_jobs.php securitykey userlogin > R:/Ampps/www/Cabello-Enterprises/documents/cron_run_jobs.php.log