switching from php 5.4 to 7.2 getting error


New member
Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home1/leuluai/public_html/Aiga/src/XF/Db/Mysqli/Adapter.php:152 Stack trace: #0 /home1/leuluai/public_html/Aiga/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /home1/leuluai/public_html/Aiga/src/XF/Error.php(85): XF\Db\Mysqli\Adapter->getConnection() #2 /home1/leuluai/public_html/Aiga/src/XF/App.php(2201): XF\Error->logException(Object(Error), true, '') #3 /home1/leuluai/public_html/Aiga/src/XF.php(167): XF\App->logException(Object(Error), true) #4 [internal function]: XF::handleException(Object(Error)) #5 {main} thrown in /home1/leuluai/public_html/Aiga/src/XF/Db/Mysqli/Adapter.php on line 152

getting above error when I try switching to PHP 7 (same error with any PHP 7 ver - 7.1, .2, .3, .4)
runninng v2.1.10 Patch 2


XenForo moderator
Staff member
Is that viewing on the server or the instance that XF sees?

Try restarting Apache if any changes have been made.


New member
that viewing is from the instance that XF sees, but I made no changes, thats the default whether its on PHP 5.4 or 7.x