Uncaught Error: Call to a member function _callExternalMethod() on null in .../smarty_internal_data.php:283
-
Hey guys,
I try to upgrade the environment for my IdoIT Open 1.11 from PHP 5.6 to 7.1. (Apache 2.4.6, php-fpm 7.1.20)
I noticed this error:[02-Aug-2018 13:07:42 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function _callExternalMethod() on null in /var/www/html/idoit/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php:283 Stack trace: #0 /var/www/html/idoit/src/classes/libraries/isys_library_smarty.class.php(50): Smarty_Internal_Data->__call('registerCacheRe...', Array) #1 /var/www/html/idoit/src/classes/components/isys_component_template.class.php(602): isys_library_smarty->__construct(Array) #2 /var/www/html/idoit/src/classes/components/isys_component_template.class.php(53): isys_component_template->__construct(Array) #3 /var/www/html/idoit/temp/di_container_cache_mandator_none.php(272): isys_component_template::instance() #4 /var/www/html/idoit/vendor/symfony/dependency-injection/Container.php(329): idoit\Component\ContainerFacadeCompiled->getTemplateService() #5 /var/www/html/idoit/vendor/symfony/dependency-injection/ContainerBuilder.php(559): Symfony\Component\DependencyInjection\Container->get('template', 2) #6 /var/www/html/idoit/src/idoit/Component/ContainerFac in /var/www/html/idoit/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php on line 283 [02-Aug-2018 13:08:38 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function _callExternalMethod() on null in /var/www/html/idoit/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php:284
Can you give me a hint what might caused this? Do I need to change idoit configuration for PHP 7.1?
Thanks in advance,
tf -
In /var/www/html/idoit/src/classes/libraries/isys_library_smarty.class.php in
public function __construct($p_options = [])
move the lineparent::__construct($p_options);
to the beginning of the constructor. -
@franknagel Thanks, this fixed the issue.