XF 2.1 [Solved] HTTP 500 with PHP 7.4

Recep Baltaş

Well-known member
Code:
Fatal error: Uncaught TypeError: Argument 1 passed to XF\Extension::__construct() must be of the type array, bool given, called in /home/technopa/public_html/sosyal/src/XF/App.php on line 1459 and defined in /home/technopa/public_html/sosyal/src/XF/Extension.php:12 Stack trace: #0 /home/technopa/public_html/sosyal/src/XF/App.php(1459): XF\Extension->__construct(false, false) #1 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #2 /home/technopa/public_html/sosyal/src/XF/App.php(2640): XF\Container->offsetGet('extension') #3 /home/technopa/public_html/sosyal/src/XF/App.php(2668): XF\App->extension() #4 /home/technopa/public_html/sosyal/src/XF/App.php(1034): XF\App->extendClass('XF\\FsMounts') #5 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #6 /home/technopa/public_html/sosyal/src/XF/App.php(2416): XF\Container->offsetGet('fs') #7 /home/technopa/public_html/sosyal/src/XF.php(699): XF\App->fs() #8 /home/technopa/pub in /home/technopa/public_html/sosyal/src/XF/Extension.php on line 12

Fatal error: Uncaught TypeError: Argument 1 passed to XF\Extension::__construct() must be of the type array, bool given, called in /home/technopa/public_html/sosyal/src/XF/App.php on line 1459 and defined in /home/technopa/public_html/sosyal/src/XF/Extension.php:12 Stack trace: #0 /home/technopa/public_html/sosyal/src/XF/App.php(1459): XF\Extension->__construct(false, false) #1 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #2 /home/technopa/public_html/sosyal/src/XF/App.php(2640): XF\Container->offsetGet('extension') #3 /home/technopa/public_html/sosyal/src/XF/App.php(2668): XF\App->extension() #4 /home/technopa/public_html/sosyal/src/XF/App.php(1034): XF\App->extendClass('XF\\FsMounts') #5 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #6 /home/technopa/public_html/sosyal/src/XF/App.php(2416): XF\Container->offsetGet('fs') #7 /home/technopa/public_html/sosyal/src/XF.php(699): XF\App->fs() #8 /home/technopa/pub in /home/technopa/public_html/sosyal/src/XF/Extension.php on line 12
Any idea?

//Turns out to be a cache problem. Disable Redis before switching to 7.4.
 
Last edited:

thumped

Well-known member
Code:
Fatal error: Uncaught TypeError: Argument 1 passed to XF\Extension::__construct() must be of the type array, bool given, called in /home/technopa/public_html/sosyal/src/XF/App.php on line 1459 and defined in /home/technopa/public_html/sosyal/src/XF/Extension.php:12 Stack trace: #0 /home/technopa/public_html/sosyal/src/XF/App.php(1459): XF\Extension->__construct(false, false) #1 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #2 /home/technopa/public_html/sosyal/src/XF/App.php(2640): XF\Container->offsetGet('extension') #3 /home/technopa/public_html/sosyal/src/XF/App.php(2668): XF\App->extension() #4 /home/technopa/public_html/sosyal/src/XF/App.php(1034): XF\App->extendClass('XF\\FsMounts') #5 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #6 /home/technopa/public_html/sosyal/src/XF/App.php(2416): XF\Container->offsetGet('fs') #7 /home/technopa/public_html/sosyal/src/XF.php(699): XF\App->fs() #8 /home/technopa/pub in /home/technopa/public_html/sosyal/src/XF/Extension.php on line 12

Fatal error: Uncaught TypeError: Argument 1 passed to XF\Extension::__construct() must be of the type array, bool given, called in /home/technopa/public_html/sosyal/src/XF/App.php on line 1459 and defined in /home/technopa/public_html/sosyal/src/XF/Extension.php:12 Stack trace: #0 /home/technopa/public_html/sosyal/src/XF/App.php(1459): XF\Extension->__construct(false, false) #1 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #2 /home/technopa/public_html/sosyal/src/XF/App.php(2640): XF\Container->offsetGet('extension') #3 /home/technopa/public_html/sosyal/src/XF/App.php(2668): XF\App->extension() #4 /home/technopa/public_html/sosyal/src/XF/App.php(1034): XF\App->extendClass('XF\\FsMounts') #5 /home/technopa/public_html/sosyal/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #6 /home/technopa/public_html/sosyal/src/XF/App.php(2416): XF\Container->offsetGet('fs') #7 /home/technopa/public_html/sosyal/src/XF.php(699): XF\App->fs() #8 /home/technopa/pub in /home/technopa/public_html/sosyal/src/XF/Extension.php on line 12
Any idea?

//Turns out to be a cache problem. Disable Redis before switching to 7.4.
try FLUSHALL in redis-cli

worked for me anyway
 
Top