?
Solved

How to fix PHP errors related to timezone in my hosting site?

Posted on 2014-01-23
5
Medium Priority
?
382 Views
Last Modified: 2014-01-24
I have joomla 1.5 website which is hosted in shared hosting. Now, I see the error log being enabled with this line,

[23-Jan-2014 16:43:44 Asia/Kolkata] PHP Strict Standards:  Non-static method JLoader::import() should not be called statically in /home/xtest/test/libraries/joomla/import.php on line 29

Open in new window


 Due to this error log, my site is locked after overwriting these warnings in the log file. So am unable to access the site.

Also hosting people says, you have to disable in your coding by upgrading the site.  Also they're not changing in php.ini for error log disable. They say, it will affect other sites.

Can anyone suggestion how to fix this further ?
0
Comment
Question by:Loganathan Natarajan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1200 total points
ID: 39802915
For a quick fix, try adding this statement to every page of the site (you can use a common file of some sort).

error_reporting(E_ALL ^E_NOTICE ^E_STRICT);

For a better fix, get a new hosting company.  What they are telling you indicates to me that they do not understand how to run shared hosting!

HTH, ~Ray
0
 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 800 total points
ID: 39804161
I agree with Ray, get a new hosting company was my first thought.  Also... I believe Joomla 1.5 is an older version.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39805269
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 39805602
Thanks experts. You're points are valuable.

I think I have to change the hosting.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39806483
I agree with that assessment.  When you decide to move, have a look at this page.  Any of these companies could provide good hosting or recommend a good host:
http://www.php.net/thanks.php
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
In this article, we’ll look at how to deploy ProxySQL.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question