Whenever I am trying to run elgg 1.12.11 on PHP 7, it is showing the following error:
Fatal error:
Uncaught Error: Call to undefined function Elgg\mysql_real_escape_string() in /home/ckarma/public_html/engine/classes/Elgg/Database.php:651
Stack trace:
#0 /home/ckarma/public_html/engine/lib/database.php(141): Elgg\Database->sanitizeString('cookies')
#1 /home/ckarma/public_html/engine/classes/Elgg/Database/ConfigTable.php(165): sanitize_string('cookies')
#2 /home/ckarma/public_html/engine/classes/Elgg/Config.php(111): Elgg\Database\ConfigTable->get('cookies', 0)
#3 /home/ckarma/public_html/engine/classes/Elgg/Di/ServiceProvider.php(207): Elgg\Config->get('cookies')
#4 [internal function]: Elgg\Di\ServiceProvider->Elgg\Di\{closure}(Object(Elgg\Di\ServiceProvider))
#5 /home/ckarma/public_html/engine/classes/Elgg/Di/DiContainer.php(76): call_user_func(Object(Closure), Object(Elgg\Di\ServiceProvider))
#6 /home/ckarma/public_html/engine/classes/Elgg/Di/DiContainer.php(56): Elgg\Di\DiContainer->build(Object(Closure), 'session')
#7 /home/ckarma/public_html/engine/lib/sessions.php(61): Elgg\Di\DiContainer->__get('se in /home/ckarma/public_html/engine/classes/Elgg/Database.php on line 651
Kindly help!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
I am using elgg 1.12 with PHP 5.6. I was just trying to switch to php 7 using the "php selector" option from my cpanel and saw that it's giving an error.
- Previous
- 1
- 2
- Next
You must log in to post replies.