close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

installed.jpg causing huge error logs!

Thread began 3/03/2016 4:57 am by Mags | Last modified 3/03/2016 10:06 am by Ray Borduin | 843 views | 3 replies |

Mags

installed.jpg causing huge error logs!

I have a dedicated server with a number of client websites installed on it. I've been having an issue with very large error log files being generated which are filling up the space on the server, Today one client's website went down completely because they had used all their allocated space on the server thanks to the error log file, and this is the error reported by the hosting company:

"The largest use of space I can see for the site is the 8.4Gb error log, this is filling up very rapidly as this error Is being generated every minute.

[Thu Mar 03 09:57:02 2016] [error] [client 80.68.56.66] PHP Warning: date(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In
case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone
identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in
/var/www/vhosts/[websiteaddress.com]/httpdocs/images/installed.jpg on line 2, referer: http://www.websiteaddress.com/

I have already put default timezone settings on any page using the strtotime function, but it would appear that it's the installed.jpg image file that's causing the problem. We have PowerCMS on several sites so this error is likely happening on all of them. We don't even use it in the CMS, so can it be removed from the WA_Globals.php file? How would I do that?

Sign in to reply to this post

Ray BorduinWebAssist

The best solution would be to add the time zone setting to the php.ini file so you don't need it on the page. That would prevent any errors moving forward.

You could also add the date_default_timezone_set() function call to the top of the globals.php file to prevent issues with this particular file. It is definitely better to do it in the php.ini file so you don't have to worry about it every time the date() function is used in php.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mags

I probably shouldn't add it to the php.ini file as I host sites for clients in different countries/timezones. I'll try adding it to the WA_Globals.php file and see if that sorts it.

Sign in to reply to this post

Ray BorduinWebAssist

By not specifying one it will always use 'UTC' anyway, so you might as well set it to prevent your clients from having similar error logs. They can still always overwrite it with date_default_timezone_set().

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...