-
CRON job error
I just noticed our CRON jobs have been erroring. The message in the error_log file is below.
[07-Dec-2016 09:30:01 America/Los_Angeles] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent in /home/usused0/public_html/includes/control.inc.php on line 23
[07-Dec-2016 09:30:01 America/Los_Angeles] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/usused0/public_html/includes/control.inc.php:23) in /home/usused0/public_html/includes/control.inc.php on line 23
[07-Dec-2016 09:30:01 America/Los_Angeles] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/usused0/public_html/includes/classes/rlDb.class.php on line 53
-
Hello Paul,
Open file: ftp://includes>>control.inc.php
find lines:
PHP Code:
Only registered members can view the code.
and add condition:
PHP Code:
Only registered members can view the code.
save and check again.
-
The code in control.inc.php only has one line regarding sessions:
Code:
Only registered members can view the code.
I added the condition around it and will retry. Final code:
Code:
Only registered members can view the code.
-
Received same error message.
Code:
Only registered members can view the code.
-
The CRON error email had an additional error message if it helps.
Code:
Only registered members can view the code.
-
-
Hello Paul,
I suggest you create a ticket with your problem. Our tech department will try to solve it.