OmerAslan Posted May 7, 2017 Report Posted May 7, 2017 (edited) 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? Edited May 17, 2017 by OmerAslan Quote
Moderators servetas Posted May 8, 2017 Moderators Report Posted May 8, 2017 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. Quote
OmerAslan Posted May 8, 2017 Author Report Posted May 8, 2017 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 Quote
OmerAslan Posted May 17, 2017 Author Report Posted May 17, 2017 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... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.