So it's safe to delete it from server once you have upgraded to XF2?the entirely library directory is no longer needed by XF2 once upgraded
When we upgrade PHP to 7.1 and turn on PHP errors, it looks like your website isn't compatible with PHP 7.1. Below we have listed the PHP errors that are displaying when upgrading to PHP 7.1.
Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/public_html/src/XF/Db/Mysqli/Adapter.php:207 Stack trace: #0 /home/public_html/src/XF/Db/Mysqli/Adapter.php(47): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /homepublic_html/src/XF/Error.php(157): XF\Db\Mysqli\Adapter->getConnection() #2 /home/public_html/src/XF/App.php(3779): XF\Error->logException(Object(ErrorException), true, '') #3 /home/public_html/src/XF.php(289): XF\App->logException(Object(ErrorException), true) #4 [internal function]: XF::handleException(Object(ErrorException)) #5 {main} thrown in /home/public_html/src/XF/Db/Mysqli/Adapter.php on line 207
Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/public_html/src/XF/Db/Mysqli/Adapter.php:207 Stack trace: #0 /home/public_html/src/XF/Db/Mysqli/Adapter.php(47): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /home/public_html/src/XF/Error.php(157): XF\Db\Mysqli\Adapter->getConnection() #2 /home/public_html/src/XF/App.php(3779): XF\Error->logException(Object(ErrorException), false, '') #3 /home/public_html/src/XF.php(367): XF\App->logException(Object(ErrorException)) #4 [internal function]: XF::handleFatalError() #5 {main} thrown in /home/public_html/src/XF/Db/Mysqli/Adapter.php on line 207
We would recommend consulting with your web developer to further assist with these PHP errors.
Hello,
I enabled mysqlnd in PHP modules in MySQL and the error related to mysqil_init missing is gone. However, I get this new error.
==
Fatal error: Uncaught ErrorException: [E_WARNING] array_key_exists() expects parameter 2 to be array, boolean given in /home/public_html/src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php:98 Stack trace: #0 [internal function]: XF::handlePhpError(2, '[E_WARNING] arr...', '/home/...', 98, Array) #1 /home/public_html/src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php(98): array_key_exists('xf[data_codeEve...', false) #2 /home/public_html/src/XF/DataRegistry.php(113): Doctrine\Common\Cache\CacheProvider->fetchMultiple(Array) #3 /home/public_html/src/XF/DataRegistry.php(81): XF\DataRegistry->readFromCache(Array, Array) #4 /home/public_html/src/XF/DataRegistry.php(215): XF\DataRegistry->get(Array) #5 /home/public_html/src/XF/App.php(2783): XF\DataRegistry->offsetGet('codeEventListen...') #6 /home/public_html/src/XF/Container.php(55): XF\App->XF\{closure}(Object(XF\Container)) #7 /home/public_html/src/XF/App.ph in /home/public_html/src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php on line 98
==
All PHP settings can be checked at https://www.the-armory.net/info.php and you can pass this page after switching to PHP 7.1 to your developer. If they think anything in PHP is wrong, they can let us know the exact module or variable that needs tweaked and we will be more than happy to tweak it for you.
<?php
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'myusername';
$config['db']['password'] = mypassword';
$config['db']['dbname'] = 'mydatabasename';
$config['superAdmins'] = '1,2';
$config['fullUnicode'] = true;
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Memcached';
$config['cache']['config'] = [
'server' => '127.0.0.1'
];
Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/public_html/src/XF/Db/Mysqli/Adapter.php:207 Stack trace: #0 /home/public_html/src/XF/Db/Mysqli/Adapter.php(47): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /home/public_html/src/XF/Error.php(157): XF\Db\Mysqli\Adapter->getConnection() #2 /home/public_html/src/XF/App.php(3779): XF\Error->logException(Object(ErrorException), true, '') #3 /home/public_html/src/XF.php(289): XF\App->logException(Object(ErrorException), true) #4 [internal function]: XF::handleException(Object(ErrorException)) #5 {main} thrown in /home/public_html/src/XF/Db/Mysqli/Adapter.php on line 207
Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/public_html/src/XF/Db/Mysqli/Adapter.php:207 Stack trace: #0 /home/public_html/src/XF/Db/Mysqli/Adapter.php(47): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /home/public_html/src/XF/Error.php(157): XF\Db\Mysqli\Adapter->getConnection() #2 /home/public_html/src/XF/App.php(3779): XF\Error->logException(Object(ErrorException), false, '') #3 /home/public_html/src/XF.php(367): XF\App->logException(Object(ErrorException)) #4 [internal function]: XF::handleFatalError() #5 {main} thrown in /home/public_html/src/XF/Db/Mysqli/Adapter.php on line 207
Fatal error: Uncaught ErrorException: [E_WARNING] array_key_exists() expects parameter 2 to be array, boolean given in /home/thearmor/public_html/src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php:98 Stack trace: #0 [internal function]: XF::handlePhpError(2, '[E_WARNING] arr...', '/home/thearmor/...', 98, Array) #1 /home/thearmor/public_html/src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php(98): array_key_exists('xf[data_codeEve...', false) #2 /home/thearmor/public_html/src/XF/DataRegistry.php(113): Doctrine\Common\Cache\CacheProvider->fetchMultiple(Array) #3 /home/thearmor/public_html/src/XF/DataRegistry.php(81): XF\DataRegistry->readFromCache(Array, Array) #4 /home/thearmor/public_html/src/XF/DataRegistry.php(215): XF\DataRegistry->get(Array) #5 /home/thearmor/public_html/src/XF/App.php(2783): XF\DataRegistry->offsetGet('codeEventListen...') #6 /home/thearmor/public_html/src/XF/Container.php(55): XF\App->XF\{closure}(Object(XF\Container)) #7 /home/thearmor/public_html/src/XF/App.ph in /home/thearmor/public_html/src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php on line 98
We use essential cookies to make this site work, and optional cookies to enhance your experience.