derhansen / sf_banners

Banner-Management is a banner management extension for TYPO3. It is based of Extbase and Fluid. Banners are loaded asynchronously using JavaScript so the page load time is affected as less as possible.
GNU General Public License v2.0
10 stars 20 forks source link

Strange sf_banners backend cache setting forcing some errors in the backend #251

Closed bastians closed 1 year ago

bastians commented 1 year ago

I know that v.4.0.3 is out of support but I have an issue since a few days after updating some another extension (rn_base). I am getting the following error in the backend:

Oops, an error occurred!
Class '\Sys25\RnBase\Utility\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend' not found

The logs are showing the following:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: 
Class '\Sys25\RnBase\Utility\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend' not found | Error thrown in file /www/htdocs/XXX/www/cms/typo3/testing/typo3/sysext/core/Classes/Cache/CacheManager.php in line 305

Also, when I want to delete the cache from the backend I am getting this error:

Bildschirmfoto 2023-09-22 um 21 59 38

After a look in "$GLOBALS['TYPO3_CONF_VARS']" and the configured caches at ['SYS']['caching']['cacheConfigurations']. which extension is using the class \Sys25\RnBase\Utility\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackendI found out that sf_banners it is:

Bildschirmfoto 2023-09-25 um 19 55 44

I have no clue why and therefore I hope finding some help here how to solve it :)

derhansen commented 1 year ago

See here: https://github.com/derhansen/sf_banners/blob/4.x/ext_localconf.php#L27

It seems the missing slash (...['backend'] = TYPO3... should most likely be ...['backend'] = \TYPO3...) before the cache definition seems to make problems. Please adjust/fix this yourself in the code of the extension, since I will not provide any updates for this version any more.

bastians commented 1 year ago

Awesome, thanks for the hint and fast support :)