• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

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

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
Loganathan Natarajan
Asked:
Loganathan Natarajan
  • 3
2 Solutions
 
Ray PaseurCommented:
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
 
Dave BaldwinFixer of ProblemsCommented:
I agree with Ray, get a new hosting company was my first thought.  Also... I believe Joomla 1.5 is an older version.
0
 
Ray PaseurCommented:
0
 
Loganathan NatarajanLAMP DeveloperAuthor Commented:
Thanks experts. You're points are valuable.

I think I have to change the hosting.
0
 
Ray PaseurCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now