Solved

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

Posted on 2014-01-23
5
373 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
  • 3
5 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 300 total points
Comment Utility
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 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 200 total points
Comment Utility
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 108

Expert Comment

by:Ray Paseur
Comment Utility
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
Comment Utility
Thanks experts. You're points are valuable.

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

Expert Comment

by:Ray Paseur
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now