1
Installation, Update & Configuration / Install of 1.8 failed - undefined function safe_htmlspecialchars()
« on: January 05, 2017, 03:46:56 AM »
I'm trying to install a fresh copy of 1.8 on Ubuntu 16.10.
Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g
PHP Version 7.0.8-3ubuntu3
MySQL Version 5.7.16
Install Error:
PHP Fatal error: Uncaught Error: Call to undefined function safe_htmlspecialchars() in /var/www/html/4images/includes/db_myssqli.php:73
Stack trace:
#0 /var/www/html/4images/install.php(253): Db->query('CREATE TABLE ca...')
#1 {main} thrown in /var/html/4images/includes/db_mysqli.php on line 73
Stating the obvious, the safe_htmlspecialchars() function that is defined in functions.php and included by global.php is not working in the mysqli class Db. I have no idea why it doesn't think it's defined. PHP 7 thing with a class?
Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g
PHP Version 7.0.8-3ubuntu3
MySQL Version 5.7.16
Install Error:
PHP Fatal error: Uncaught Error: Call to undefined function safe_htmlspecialchars() in /var/www/html/4images/includes/db_myssqli.php:73
Stack trace:
#0 /var/www/html/4images/install.php(253): Db->query('CREATE TABLE ca...')
#1 {main} thrown in /var/html/4images/includes/db_mysqli.php on line 73
Stating the obvious, the safe_htmlspecialchars() function that is defined in functions.php and included by global.php is not working in the mysqli class Db. I have no idea why it doesn't think it's defined. PHP 7 thing with a class?