typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

Exception thrown if $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'] is not initialized

Open markuspoerschke opened this issue 7 years ago • 4 comments

This will fix #504

markuspoerschke avatar Nov 06 '17 18:11 markuspoerschke

May be obsolete with https://github.com/TYPO3/TYPO3.CMS/commit/3ad2756d437dd66ca2e17588e4a467b794cef803

ipf avatar Nov 07 '17 16:11 ipf

@ipf This patch won’t be obsolete by this. This is just fixing the issue with an PHP error. Furthermore this extension is also compatible to older version of TYPO3 (namely 7 LTS).

But you are right. I think once support for TYPO3 v7 LTS is dropped this line could be removed.

markuspoerschke avatar Nov 07 '17 16:11 markuspoerschke

We see this problem as well, especially when running typo3cms cache:flushcomplete on CLI.

cweiske avatar Feb 22 '18 09:02 cweiske

Same problem here with TYPO3 v7.6.28 and current TYPO3 console. This simple patch would solve:

[ TYPO3\CMS\Core\Error\Exception ] #1: Warning: in_array() expects parameter 2 to be array, null given in /var/www/example/web/typo3temp/Cache/Code/cache_core/ext_localconf_ad3b05d0100c9f3da5dbb5aa5f195dc6524537c4.php line 1603 thrown in file /var/www/example/vendor/helhum/typo3-console/Classes/Error/ErrorHandler.php in line 68

Exception trace: #0 Helhum\Typo3Console\Error\ErrorHandler::handleError() #1 in_array() /var/www/example/web/typo3temp/Cache/Code/cache_core/ext_localconf_ad3b05d0100c9f3da5dbb5aa5f195dc6524537c4.php:1603 #2 require_once() typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php:382 #3 TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::requireOnce() typo3/sysext/core/Classes/Cache/Frontend/PhpFrontend.php:77 #4 TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::requireOnce() typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php:1626 #5 TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf() /var/www/example/vendor/helhum/typo3-console/Classes/Core/Booting/Scripts.php:148 #6 Helhum\Typo3Console\Core\Booting\Scripts::initializeExtensionConfiguration() #7 call_user_func() /var/www/example/vendor/helhum/typo3-console/Classes/Core/Booting/Step.php:53 #8 Helhum\Typo3Console\Core\Booting\Step::__invoke() /var/www/example/vendor/helhum/typo3-console/Classes/Core/Booting/Sequence.php:108 #9 Helhum\Typo3Console\Core\Booting\Sequence::invokeStep() /var/www/example/vendor/helhum/typo3-console/Classes/Core/Booting/Sequence.php:92 #10 Helhum\Typo3Console\Core\Booting\Sequence::invoke() /var/www/example/vendor/helhum/typo3-console/Classes/Mvc/Cli/RequestHandler.php:99 #11 Helhum\Typo3Console\Mvc\Cli\RequestHandler::boot() /var/www/example/vendor/helhum/typo3-console/Classes/Mvc/Cli/RequestHandler.php:83 #12 Helhum\Typo3Console\Mvc\Cli\RequestHandler::handleRequest() /var/www/example/vendor/helhum/typo3-console/Classes/Core/ConsoleBootstrap.php:103 #13 Helhum\Typo3Console\Core\ConsoleBootstrap::run() /var/www/example/vendor/helhum/typo3-console/Scripts/typo3cms.php:55 #14 {closure}() /var/www/example/vendor/helhum/typo3-console/Scripts/typo3cms.php:56 #15 require() /var/www/example/vendor/helhum/typo3-console/Scripts/typo3cms:4

vaxul avatar Jun 12 '18 08:06 vaxul