Advertisement
pusatdata

Mengatasi Error File Input.php pada Install Joomla 3

Oct 6th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1.  
  2.  
  3. Joomla 3.1.5 have bug with PHP 5.5 but you do not need to worry to make it work you just need to modify an file input.php file located in libraries/joomla/filter/input.php here you go: open input.php with your favorite text editor find and replace
  4.  
  5. $source = preg_replace('/&#(\d+);/me', "utf8_encode(chr(\\1))", $source); // decimal notation
  6.  
  7. with
  8.  
  9. $source = preg_replace_callback('/&#(\d+);/m', function($m){return utf8_encode(chr($m[1]));}, $source); // decimal notation
  10.  
  11. And
  12.  
  13. $source = preg_replace('/&#x([a-f0-9]+);/mei', "utf8_encode(chr(0x\\1))", $source); // hex notation
  14.  
  15. with
  16.  
  17. $source = preg_replace_callback('/&#x([a-f0-9]+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // hex notation
  18.  
  19. or for your continence I have uploaded an fixed input.php file you can download it here (http://bit.ly/1dVatpq) just replace input.php with original one and you are done..!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement