gingir wrote:
For anyone trying to install joomla3 or joomla2 on a hosting where PHP 5.5 is running
If your installation hangs at step 1 do the following
open libraries/joomla/filter/input.php
find the following
Quote:
$source = preg_replace('/&#(\d+);/me', "utf8_encode(chr(\\1))", $source); // decimal notation
$source = preg_replace('/&#x([a-f0-9]+);/mei', "utf8_encode(chr(0x\\1))", $source); // hex notation
$source = preg_replace('/&#x([a-f0-9]+);/mei', "utf8_encode(chr(0x\\1))", $source); // hex notation
replace with the following
Code:
$source = preg_replace_callback('/&#x(\d+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // decimal notation
$source = preg_replace_callback('/&#x([a-f0-9]+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // hex notation
$source = preg_replace_callback('/&#x([a-f0-9]+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // hex notation
source github.com/joomla/joomla-cms/pull/1309
used it on both joomla 2 and joomla 3 installers and can successfully get to step 2.
PHP will warn you about this problem with the following error either on screen or in the error_log
Code:
preg_replace(): The /e modifier is deprecated, use preg_replace_call back instead
To the joomla development team, your work is great however PHP 5.5 has been around for quite some time now, time to get rid of this deprecated modifier
Why you have Aprentice level? Thank you. It's Worked for me. Best suggestion
Statistics: Posted by PonchiksLabais — Tue Oct 01, 2013 5:52 am
via Joomla! http://forum.joomla.org/viewtopic.php?t=639623&p=3089929#p3089929
No comments:
Post a Comment