Redis Cache By Xon

Redis Cache By Xon 2.17.2

No permission to download
Just moments after the "Verifying and copying files" step the upgrade stops on a white screen with error:
You look to be using the web-updater for this, which appears to need some hardening.

Some of the files are loaded as XF2.2 while others are loaded as XF2.3, and this is a state I really can't work-around sanely.
 
@TMC can you post the full stack trace to this thread?

It looks like it cuts off so we can't see the entry point
 
You look to be using the web-updater for this, which appears to need some hardening.

Some of the files are loaded as XF2.2 while others are loaded as XF2.3, and this is a state I really can't work-around sanely.

Yes, forgot to mention that this happens when using the web-updater. Used to work without errors with 2.2.xx updates, but something must've changed for 2.3. (I think)
@TMC can you post the full stack trace to this thread?

It looks like it cuts off so we can't see the entry point

If there is a way to get the full output, I'm more than happy to help. Error doesn't get logged into the XenForo's server log. All that the browser displays is as it was copied.error.webp

server error log wasn't any more helpful either
Code:
2024/03/28 16:34:37 [error] 1900865#0: *25921 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ErrorException: [E_WARNING] include(/var/www/[redacted]/public/src/vendor/composer/../../../src/vendor-patch/Doctrine/Common/Cache/CacheProvider.php): Failed to open stream: No such file or directory in /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php:576
Stack trace:
#0 /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php(576): XF::handlePhpError(2, '...', '...', 576)
#1 /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php(576): include()
#2 /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('...')
#3 /var/www/[redacted]/public/src/addons/SV/RedisCache/DoctrineCache/CacheProvider.php(19): Composer\Autoload\ClassLoader->loadClass('...')
#4 /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php(576): include('...')
#5 /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('...')
#6 /var/www/[redacted]/public/src/addons/SV/RedisCache/Doctri" while reading response header from upstream, client: xxx.xxx, server: beta.[redacted], request: "GET /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host:

edit:
Installed xdebug extension for PHP, maybe this helps:
Code:
( ! ) Fatal error: Uncaught ErrorException: [E_WARNING] include(/var/www/[redacted]/public/src/vendor/composer/../../../src/vendor-patch/Doctrine/Common/Cache/CacheProvider.php): Failed to open stream: No such file or directory in /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php on line 576
( ! ) ErrorException: [E_WARNING] include(/var/www/[redacted]/public/src/vendor/composer/../../../src/vendor-patch/Doctrine/Common/Cache/CacheProvider.php): Failed to open stream: No such file or directory in /var/www/[redacted]/public/src/vendor/composer/ClassLoader.php on line 576
Call Stack
#    Time    Memory    Function    Location
1    0.0280    1088904    XF::handleException()    .../XF.php:0
2    0.0280    1088904    XF\Pub\App->logException()    .../XF.php:202
3    0.0288    1089096    XF\Error->logException()    .../App.php:2498
4    0.0322    1202992    XF\Util\File::installLockExists()    .../Error.php:102
5    0.0322    1202992    XF::fs()    .../File.php:770
6    0.0322    1202992    XF\Pub\App->fs()    .../XF.php:944
7    0.0322    1202992    XF\Container->offsetGet()    .../App.php:2736
8    0.0322    1202992    XF\Pub\App->XF\{closure:/var/www/[redacted]/public/src/XF/App.php:1115-1120}()    .../Container.php:31
9    0.0322    1203088    XF\Pub\App->extendClass()    .../App.php:1117
10    0.0322    1203088    XF\Pub\App->extension()    .../App.php:3011
11    0.0322    1203088    XF\Container->offsetGet()    .../App.php:2980
12    0.0322    1203088    XF\Pub\App->XF\{closure:/var/www/[redacted]/public/src/XF/App.php:1586-1607}()    .../Container.php:31
13    0.0322    1203184    XF\Container->offsetGet()    .../App.php:1597
14    0.0322    1203184    XF\Pub\App->XF\{closure:/var/www/[redacted]/public/src/XF/App.php:1929-1939}()    .../Container.php:31
15    0.0322    1203280    XF\Container->offsetGet()    .../App.php:1931
16    0.0322    1203280    XF\Pub\App->XF\{closure:/var/www/[redacted]/public/src/XF/App.php:734-737}()    .../Container.php:31
17    0.0322    1203504    XF\Pub\App->cache()    .../App.php:736
18    0.0322    1203504    XF\Container->create()    .../App.php:2661
19    0.0322    1203504    XF\Pub\App->XF\{closure:/var/www/[redacted]/public/src/XF/App.php:673-710}()    .../Container.php:234
20    0.0322    1203600    XF\CacheFactory->create()    .../App.php:709
21    0.0322    1203600    XF\CacheFactory->instantiate()    .../CacheFactory.php:36
22    0.0322    1203864    Composer\Autoload\ClassLoader->loadClass()    .../CacheFactory.php:68
23    0.0322    1203992    Composer\Autoload\{closure:/var/www/[redacted]/public/src/vendor/composer/ClassLoader.php:575-577}()    .../ClassLoader.php:427
25    0.0322    1204424    class_alias()    .../Redis.php:11
26    0.0322    1204552    Composer\Autoload\ClassLoader->loadClass()    .../Redis.php:11
27    0.0323    1204712    Composer\Autoload\{closure:/var/www/[redacted]/public/src/vendor/composer/ClassLoader.php:575-577}()    .../ClassLoader.php:427
29    0.0323    1205112    Composer\Autoload\ClassLoader->loadClass()    .../Redis.php:26
30    0.0323    1205272    Composer\Autoload\{closure:/var/www/[redacted]/public/src/vendor/composer/ClassLoader.php:575-577}()    .../ClassLoader.php:427
32    0.0323    1205680    Composer\Autoload\ClassLoader->loadClass()    .../CacheProvider.php:19
33    0.0323    1205680    Composer\Autoload\{closure:/var/www/[redacted]/public/src/vendor/composer/ClassLoader.php:575-577}()    .../ClassLoader.php:427
34    0.0323    1206160    XF::handlePhpError()    .../ClassLoader.php:576
 
Last edited:
web upgrade XenForo 2.2.15 -> XenForo 2.3 beta 3 w/ redis addon installed.
Previous error got fixed according to devs
but now the upgrade stops with different error at the same step as before (verifying and copying files stage):
Code:
PHP Fatal error:  Declaration of SV\RedisCache\DoctrineCache\CacheProvider::delete($id) must be compatible with Doctrine\Common\Cache\CacheProvider::delete(string $id): bool in /var/www/[redacted]/public/src/addons/SV/RedisCache/DoctrineCache/CacheProvider.php on line 105
PHP Fatal error:  Uncaught Error: Class "SV\RedisCache\Redis" not found in /var/www/[redacted]/public/src/XF/CacheFactory.php:68
Stack trace:
#0 /var/www/[redacted]/public/src/XF/CacheFactory.php(36): XF\CacheFactory->instantiate('...', Array)
#1 /var/www/[redacted]/public/src/XF/App.php(709): XF\CacheFactory->create('...', Array)
#2 /var/www/[redacted]/public/src/XF/Container.php(234): XF\App->XF\{closure}('', Array, Object(XF\Container))
#3 /var/www/[redacted]/public/src/XF/App.php(2661): XF\Container->create('...', '')
#4 /var/www/[redacted]/public/src/XF/App.php(736): XF\App->cache('...')
#5 /var/www/[redacted]/public/src/XF/Container.php(31): XF\App->XF\{closure}(Object(XF\Container))
#6 /var/www/[redacted]/public/src/XF/Install/App.php(73): XF\Container->offsetGet('...')
#7 /var/www/[redacted]/public/src/XF/Container.php(31): XF\Install\App->XF\Install\{closure}(Object(XF\Container))
#8 /var/www/[redacted]/public/src/XF/App.php(2704): XF\Container->offsetGet('...')
#9 /var/www/[redacted]/public/src/XF.php(838): XF\App->options()
#10 /var/www/[redacted]/public/src/XF/Entity/User.php(2431): XF::options()
#11 /var/www/[redacted]/public/src/XF/Mvc/Entity/Manager.php(72): XF\Entity\User::getStructure(Object(XF\Mvc\Entity\Structure))
#12 /var/www/[redacted]/public/src/XF/Repository/User.php(86): XF\Mvc\Entity\Manager->getEntityStructure('...')
#13 /var/www/[redacted]/public/src/XF/Repository/User.php(32): XF\Repository\User->getGuestUser()
#14 /var/www/[redacted]/public/src/XF.php(586): XF\Repository\User->getVisitor(0)
#15 /var/www/[redacted]/public/src/XF/Error.php(137): XF::visitor()
#16 /var/www/[redacted]/public/src/XF/App.php(2498): XF\Error->logException(Object(Error), true, '')
#17 /var/www/[redacted]/public/src/XF.php(202): XF\App->logException(Object(Error), true)
#18 [internal function]: XF::handleException(Object(Error))
#19 {main}
  thrown in /var/www/[redacted]/public/src/XF/CacheFactory.php on line 68

I'm guessing this is still an XenForo issue even tho it also mentions Redis Cache?
 

Attachments

Yeah, SV/RedisCache is trying to extend the XF2.3 CacheProvider shim class which isn't compatible with the XF2.2 version.
 
Top Bottom