Saturday, December 6, 2014

PHP 5.6 experiments

Removing this errors and warnings messages by patching following files in Flatpress 1.0.3.


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in …/fp-includes/smarty/Smarty_Compiler.class.php on line 270

Using solution from here:


Error message Strict standards: Non-static method should not be called statically in php


Strict Standards: Only variables should be passed by reference in …/fp-includes/core/core.fpdb.class.php on line 303


Strict Standards: Only variables should be passed by reference in …/fp-includes/smarty/plugins/function.list_categories.php on line 35


Warning: Illegal string offset ‘logout’ in …/fp-content/cache/e93fccb09cf8b04111b9595da102f3f4^%%52^522^5225B40D%%login_success.tpl.php on line 3

Now Flatpress 1.0.3 will running on PHP 5.6 and you can use it like you want.

But beware

If you use user contributed Flatpress plugins, it is possible that these plugins won’t work with PHP 5.6!

Helpful Internet link

» http://www.modified- … ex.php?topic=27558.0

Thursday, November 20, 2014

PHP 5.6 quick and dirty patch

The first attempt to get Flatpress 1.0.3 running under PHP 5.6 is solved with this quick and dirty patch:

Adding the PHP command “error_reporting” in these listed files:

defaults.php - error_reporting(0);
login.php - error_reporting(0);
admin/main.php - error_reporting(0);

Now you can running Flatpress 1.0.3 without errors and warnings. This is a quick solution for everyone without PHP programming expertise.