PHP 5.6 experiments

Filed under PHP 5.6

Saturday
6.
December 2014

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

fp-includes/smarty/Smart_Compiler.class.php

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:
http://www.modified-shop.org/forum/index.php?topic=27558.0

fp-includes/smarty/SmartyValidate.class.php

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

fp-includes/core/core.fpdb.class.php

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

fp-includes/smarty/plugins/function.list_categories.php

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

login.php

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 links

» http://www.modified- … ex.php?topic=27558.0
» http://www.nightswat … y:entry131111-232827
» http://heinrich-beck … y:entry140925-231731
» http://flatpress.org … 1-0-and-php-5-4-7/p1
» http://flatpress.org … 3/comments-errors/p1

PHP 5.6 quick and dirty patch

Filed under PHP 5.6

Thursday
20.
November 2014

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.

Enjoy

Calendar

  • October 2014
    SunMonTueWedThuFriSat
     1234
    567891011
    12131415161718
    19202122232425
    262728293031 

Admin area

 

Top of Page