Huge error_log
dogpaw
Joined: 2005-06-10
Posts: 15 |
![]() |
I've searched and found some references to people have strict standards errors displaying on-screen. However, I'm having an issue where the error_log file is growing very fast with errors regarding strict standards. What file can I modify, if appropriate, to stop my error_log from growing with these errors. Thanks
|
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
as from PHP 5.4, E_STRICT has been added to E_ALL. make sure error_reporting is setup correctly for a production server. http://galleryproject.org/node/111734 -s |
|
dogpaw
Joined: 2005-06-10
Posts: 15 |
![]() |
I appreciate your post. This one statement below makes me hesitant to even consider doing what is referenced in that post. What exactly would I be risking? Thanks Quote:
This however, is almost always a very bad idea and will almost certainly cause you significant amounts of grief down the line. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
ok, have fun w/ the HUGE error logs -s |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
The warning was for that particular instance and was related to switching display_errors and log_errors off. In your case, error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT in your php.ini file and rebooting php will solve your issue. -- |
|
dogpaw
Joined: 2005-06-10
Posts: 15 |
![]() |
I appreciate your reply but I'm sorry I'm not finding any useful advice in there. |
|
dogpaw
Joined: 2005-06-10
Posts: 15 |
![]() |
Ah, thank you so much for your useful help. So, is this the main php.ini file for the server? Or just for this domain/cPanel account? Thanks so much. |
|
Ammo
Joined: 2006-03-23
Posts: 51 |
![]() |
Hello, I keep getting "malicious url" errors in modules/core/DownloadItem.inc. The accumulation of errors leads to huge error logs, filling up my disk space quota. I'm not sure how to address the root cause of the problem (apart from deactivating downloads, which I'd rather not do), so I was wondering how to turn off error logging. I found this thread, but I'm really rusty when it comes to Gallery 2, and I can't find php.ini on my installation, maybe because I have a multisite set-up. A detailed explanation for a technically-challenged person would be very appreciated!!! Thank you, Ammo
|
|
MinnaG
Joined: 2014-05-20
Posts: 1 |
![]() |
Put this code between first <?php tag (before all copyrights info etc commented out) and first if (!isset($gallery)... tag. @ini_set('error_reporting', 'E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT'); |
|
Ammo
Joined: 2006-03-23
Posts: 51 |
![]() |
Thank you! |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
I'll suggest that you only add the "error_reporting" line and skip the other two. Having the three together tells PHP not to log or display ANY errors whatsoever. This can cause grief down the road. What you want is for PHP not to log TRIVIAL errors and warnings. The malicious url error is however unlikely to be a PHP error and is most likely a G2 error so it is unlikely that this would resolve your issue. In future, you should create a new separate post with your issue with links to other threads you think may be relevant so as not to mix different issues together. -- |
|
Ammo
Joined: 2006-03-23
Posts: 51 |
![]() |
Thanks Dayo! |
|