Which Joomla version is below 2 and around 1.5. does it support PHP 5.4?

My web hosting provider said they are changing to php 5.4 from 5.2.17 and I am trying to run my site locally with php 5.4, I have full issuses

like this

Strict standards: the non-static JError :: isError () method should not be called statically, assuming $ this from an incompatible context in D: \ xampp \ htdocs \ indoor \ libraries \ joomla \ application \ application.php on line 721

So I need to update my Joomla version which is close to 1.5, currently I am using 1.5.24

+3


source to share


4 answers


Strict standards mode is a PHP setting that tells it to issue warning messages when your code does certain things that are not technically correct.

However PHP can handle these issues - as per the post in the question PHP can make a guess about the code in this case and continue.

These high security warnings have always been there; the reason you get them in 5.4 and not 5.2 is because they are enabled by default in 5.4, whereas in 5.2 they are disabled by default.

Basically, with each new version, PHP is gradually getting tougher in regards to outdated or bad programming. This is generally good, but older versions have problems when upgrading.

But strict regime is optional; it can be disabled. So if all you get are strict mode warnings, the quickest way to deal with this problem is to disable it.



You can do this in files PHP.ini

or .htaccess

or in PHP using ini_set()

.

  • PHP.ini: error_reporting=30719

  • .htaccess: php_value error_reporting 30719

  • in your PHP code: error_reporting(E_ALL & ~E_STRICT);

(30719 is equivalent to E_ALL

(32767) minus E_STRICT

(2048), but the names E_ALL and E_STRICT are not valid in ini files, so you need to use numeric values)

In general, it would be better to upgrade your system to software that does not raise Strict Mode warnings; maybe a newer version of Joomla will help with this. But in the short term, it will prevent strict mode warnings from appearing and hopefully help you upgrade to the new PHP version.

Hope it helps.

+2


source


This is your internal joomla error as you are calling the global function statically. Use the debugger and run your page in debug mode.



0


source


Yes, it's better to upgrade your joomla version now because there are no security updates for joomla 1.5. Also remember that all developed new extensions are compatible with joomla 2.5 and you cannot use it for 1.5.

0


source


Strict PHP standards:

"Non-static method JTable::getInstance() should not be called statically, assuming $this from incompatible context"

Source: http://mytecharticle.com/?p=1484

0


source







All Articles