[SOLVED] Delete error log cron job

Hello,

I have error log in many folders. And i am eraseing them all the time. Is there anyway can we make some cronjob like this and erase them auto? 

Like this

mycommand \>/dev/null 2\>&1

Is anyone using something like this?

Can you try adding the below code at the top of the file you run using cronjob?

error\_reporting(0);

For your information, it should be placed within <?php and ?> tags. Alternatively, you can just try to solve the errors reported.

28 minutes ago, servetas said:

Can you try adding the below code at the top of the file you run using cronjob?

error_reporting(0);

For your information, it should be placed within <?php and ?> tags. Alternatively, you can just try to solve the errors reported.

Sorry George,

I am trying to find the way to erase this error log. It has errors like this in it. I don’t understand where do i have to put this code.

[08-May-2017 02:12:02 UTC] PHP Warning: call\_user\_func\_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'js' in /home/assertiveomer/public\_html/aalvirtual.com/crew/core/classes/MainController.class.php on line 218 [08-May-2017 02:12:04 UTC] PHP Warning: call\_user\_func\_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'js' in /home/assertiveomer/public\_html/aalvirtual.com/crew/core/classes/MainController.class.php on line 218 [08-May-2017 06:36:52 UTC] PHP Warning: call\_user\_func\_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'js' in /home/assertiveomer/public\_html/aalvirtual.com/crew/core/classes/MainController.class.php on line 218

Ok i been looking for answer and i have godaddy linux cpanel…

Go select php version then Switch to PHP options

From the list error log on to off… This way not gonna be any error logs…