0
Welcome Guest! Login
0 items Join Now

SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    • Ben D.'s Avatar
    • Ben D.
    • Rocketeer
    • Posts: 75
    • Thanks: 1

    SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    Posted 6 years 4 months ago
    • Hello everyone,

      I am working on 3 developmental sites in WampServer 3.1.6 using the latest versions of Xenon, Galateria, and Koleti templates with RocketLauncher content and various customizations. I have several versions of PHP installed to test compatibility. In PHP 7.3.0, however, I get the following error for all 3 templates (unable to view sites):

      Twig_Error_Runtime
      An exception has been thrown during the rendering of a template ("Identifier "" is not defined.").

      I am using Firefox Developer Edition 65.0b6 as my browser. The file being flagged is:
      \media\gantry5\engines\nucleus\templates\page.html.twig

      PHP versions: 5.6.39, 7.0.33, 7.1.25, and 7.2.13 render all sites normally.

      My active local server environment consists of Apache 2.4.37, PHP 7.2.13, MariaDB 10.3.11 (default), MySQL 8.0.13, and OpenSSL 1.1.1a. I am unable to find anything in error logs pertaining to the rendering error. Any help is appreciated.

      Mahalo,
      Ben
    • Last Edit: 6 years 4 months ago by Ben D..
    • My Projects
      Joomla! 3.10.8 • PHP 8.0.18
      Lumiere 1.10 • Chapelco 1.11 • Anacron 1.9
      Gantry 4.1.43

      Joomla Development Projects • Wampserver 3.2.8
      Koleti 1.5.0 • MantiCore 1.5.0
      Gantry 5.5.12
      Firefox Dev Ed. 100.0b5 64-bit
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    Posted 6 years 4 months ago
    • Ben D.'s Avatar
    • Ben D.
    • Rocketeer
    • Posts: 75
    • Thanks: 1

    Re: SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    Posted 6 years 4 months ago
    • PHP 7.3 is still not tested with Gantry 5 so we still need to check it out.

      Ok, thank you Damir. Yes, PHP 7.3 is pretty new, so please consider this a bug report for further consideration.

      Mahalo nui (Hawaiian for thank you very much) and Aloha!
      Ben
    • My Projects
      Joomla! 3.10.8 • PHP 8.0.18
      Lumiere 1.10 • Chapelco 1.11 • Anacron 1.9
      Gantry 4.1.43

      Joomla Development Projects • Wampserver 3.2.8
      Koleti 1.5.0 • MantiCore 1.5.0
      Gantry 5.5.12
      Firefox Dev Ed. 100.0b5 64-bit
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    Posted 6 years 4 months ago
    • Ben D.'s Avatar
    • Ben D.
    • Rocketeer
    • Posts: 75
    • Thanks: 1

    Re: SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    Posted 6 years 4 months ago
    • mahagr on github wrote:
      It's a bug in PHP 7.3.0 itself, see getgrav/grav#2292

      if you're running PHP 7.3.0 and you have opcode cache enabled, you need to add the following line to your php.ini:

      opcache.optimization_level=0x7FFFBBFF

      There is an opcache bug in PHP 7.3.0 which will be fixed on the next PHP version:
      bugs.php.net/bug.php?id=77275

      I can confirm the workaround works! I switched to PHP 7.3.0, opened php.ini and around line 1813, un-commented the suggested directive. Tested all 3 of my developmental sites and they all work normally.

      Thank you Damir for pointing me in the right direction. Aloha!
    • Last Edit: 6 years 4 months ago by Ben D..
    • My Projects
      Joomla! 3.10.8 • PHP 8.0.18
      Lumiere 1.10 • Chapelco 1.11 • Anacron 1.9
      Gantry 4.1.43

      Joomla Development Projects • Wampserver 3.2.8
      Koleti 1.5.0 • MantiCore 1.5.0
      Gantry 5.5.12
      Firefox Dev Ed. 100.0b5 64-bit
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED PHP 7.3.0 Error with Gantry 5.4.27

    Posted 6 years 4 months ago

Time to create page: 0.083 seconds