Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Uncaught Error: Call to a member function _callExternalMethod() on null in .../smarty_internal_data.php:283

    Scheduled Pinned Locked Moved Operating
    3 Posts 2 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tf
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • F Offline
        franknagel
        last edited by

        In /var/www/html/idoit/src/classes/libraries/isys_library_smarty.class.php in public function __construct($p_options = []) move the line parent::__construct($p_options); to the beginning of the constructor.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tf @franknagel
          last edited by

          @franknagel Thanks, this fixed the issue.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post