How to Fix Strict Standards: Non-static method in Joomla?

If you face with Strict Standards: Non-static method ... on line XX error and you are using Joomla 2.5-3.x don't worry about it we will help to fix this problem.

Honestly, we can't called it "error", it is a message for developers, but it is not change the question, your visitors shouldn't see it. We will discuss 3 methods of how to fix fix Strict Standards: Non-static method in Joomla.

Method 1: How to hide the Strict Standards in Joomla. You can hide this message through your Joomla admin area.

Step 1: Log into Joomla

Go to Admin area of your website.

How to add Google font into Joomla. Log in

Step:2 Go to System => Global Configuration

Go to Global Configuration and choose Server tab.

Step 3: Set "None"

Choose "None" on the "Error Reporting" row. Click save and you will never see Strict Standards: Non-static method error.

Method 2: Change php error reporting on server side. You can also disable Strict Standards: Non-static method on your server, by changing php settings.

Step 1: Go to you php.ini file.

Find your php.ini file (root folder) and change the attribute that is called error_reporting:


error_reporting = E_ALL  | E_STRICT


error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED

Method 3: Modify the template file. If two previous method is not available for you, we have the third way to fix Strict Standards: Non-static method.

Step:1 Find default.php

Find the default. php file, it have to be in templates/template_name/layout/default.php

Step 2: Edit default.php



in this file right after the

<?php phrase

or you can also try to add:

ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED);

Find more interesting information in Joomla tutorials section.