Jahnavi K. Abhyuday
Jahnavi K. Abhyuday

Reputation: 163

Joomla website throwing errors

Sometime back, I had created a Joomla website on a third-party server. Now when I try to access the website, I'm seeing errors such as the following:

Strict Standards: Non-static method JLoader::import() should not be called statically in /home/chinfote/public_html/libraries/joomla/import.php on line 29

Strict Standards: Non-static method JLoader::register() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in /home/chinfote/public_html/libraries/joomla/import.php on line 32

Strict Standards: Non-static method JLoader::register() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 71

Strict Standards: Non-static method JLoader::load() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 161

Strict Standards: Non-static method JLoader::register() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 138

Strict Standards: Non-static method JRequest::clean() should not be called statically in /home/chinfote/public_html/libraries/joomla/import.php on line 33

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in /home/chinfote/public_html/libraries/joomla/environment/request.php on line 463

After searching on the net, I found that I should be making some changes in the php.ini file. But on the File Manager of the cpanel, I could not find this file. Could anyone please help me in finding this file and solving these errors. Or is there any other way to solve the above problem??

Many thanks in advance.

~Jahnavi

Upvotes: 3

Views: 34737

Answers (14)

Lucas Catani
Lucas Catani

Reputation: 47

You can paste this code index.php for administrator and frontend.

// Set flag that this is a parent file

    define( '_JEXEC', 1 );

error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );

Upvotes: 0

Anoop P S
Anoop P S

Reputation: 782

Two things to address and surpass the errors 1. set error reporting to none in configuration 2. Your joomla version may be old ,

Upvotes: 0

joe
joe

Reputation: 11

unbelievable. you people are obviously not coders if all you are trying to do is to HIDE the message. Messages are there for a reason. find the function in your component and put the word static in front of it. function import( change to static function import(

Problem solved. not hidden

Upvotes: 1

Siddharth
Siddharth

Reputation: 1

Just do as follows in php.ini file:

;error_reporting = E_ALL | E_STRICT

Upvotes: -1

PUSTAKAKORAN.COM
PUSTAKAKORAN.COM

Reputation: 477

Joomla 1.5 work in PHP 5.4.

You can paste this code index.php for frontend and backend. It works for me!

// Set flag that this is a parent file

define( '_JEXEC', 1 );

error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );

Upvotes: 10

Bogdan
Bogdan

Reputation: 1

You can solve the problem only if you return to php 5.2 or you will change the new version to work with J 1.5

Upvotes: 0

Ahm3d Said
Ahm3d Said

Reputation: 812

Switch your php version to php 5.3

also change the error_reporting in your joomla configuration file (configuration.php)

var $error_reporting = '6143';

Upvotes: 0

utkarshk
utkarshk

Reputation: 147

I have encountered same issue, my configuration was Joomla 1.5 on shared hosting server.

However the hosting provider upgraded PHP Version to 5.4 from 5.2 . It seems that Joomla 1.5 is not compatible with PHP Version 5.4, so instead of supressing your errors (which of course is not a nice idea) try adjusting the PHP Version on your shared hosting/ or dedicated hosting...

Cheers. If there is a warning do not hide it - resolve it...!!! :)

Upvotes: 3

user3363685
user3363685

Reputation: 1

Strict Standards: Non-static method JLoader::import() should not be called
statically in /home/chinfote/public_html/libraries/joomla/import.php on line 29

You will find it in server.. /etc/php.ini

Try this: Replace display_errors = On To display_errors = Off

Upvotes: -1

Adem Ozturk
Adem Ozturk

Reputation: 1

You can add these lines to your .htacces file ; if your only problem is shown errors.

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0

Upvotes: -2

symcbean
symcbean

Reputation: 48387

Suppressing the warnings is not the same thing as fixing them.

Joomla might might have a lot of functionality built-in but it's security history is far from exemplory. Have you got the latest version of Joomla installed? If not, then do so now. If you are still getting warnings then report it as a bug.

Upvotes: 7

BodgeIT
BodgeIT

Reputation: 399

Some hosters don't allow the PHP.ini to be read from the root of the folder. But if they do, you may need to add another one for your /administrator folder. This may at least let you get into the backend. If not, you may be able to set these PHP parameters through your htaccess file. Might need a little more google searching but there should be plenty of info on it...

Upvotes: -1

Imane Fateh
Imane Fateh

Reputation: 2406

You will find it in (for linux) /etc/php.ini

Try this: Replace display_errors = On --> display_errors = Off

error_reporting = E_ALL | E_STRICT --> error_reporting = E_ALL & ~E_NOTICE

Upvotes: 0

underscore
underscore

Reputation: 6887

If there are no php.ini file in your joomla root directory make a new phi.ini file in using Cpanel ( create a new file ) and do you stuff with it

Upvotes: 0

Related Questions