• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 XenForo Cache Question

Mike

XenForo developer
Staff member
#4
I would keep a copy of the contents (at least from things like add-ons) just in case, but it should generally be.

(Note that the XF2 download does include a generally empty library directory in it, mostly to avoid it being accidentally removed before upgrading.)
 

BassMan

Well-known member
#5
Ok, thank you, I'll rather leave the whole library folder untouched. I assume there won't be any security issues.
 

Gator

Active member
#6
I tried the Memcached, but I got a blank unresponsive page during page load. I double checked and Memcached was enabled in PHP. Any suggestions?
 
#10
I contacted and asked them to run it and they said the following:

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.
 
#13
They responded back with...

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.