[IP.Board 3.1.3 / PHP 7.2] «Use of undefined constant self - assumed 'self' in admin/sources/base/core.php on line 5173»

php72
ip-board
php

(Dmitry Fedyuk) #1


(Dmitry Fedyuk) #2

How to fix

Locate the line in the admin/sources/base/core.php file:

return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( self, '_convertHexToUtf8' ), utf8_encode($t) );

Replace it with:

return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array('self', '_convertHexToUtf8' ), utf8_encode($t) );