0
Welcome Guest! Login
0 items Join Now

SOLVED PHP 7.3 crashes site

    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 15
    • Another Old Hack!

    SOLVED PHP 7.3 crashes site

    Posted 6 years 1 week ago
    • I tested on one of my simple personal websites after encountering issues on client websites when I upgraded to PHP 7.3.

      All sites use Gantry 5 and either the Helium, Hydrogen or the Solo template.

      The site I am testing is https://gw2potm.org/ .

      The versions are:
      • Joomla 3.9.6
      • Gantry 5 Component 5.4.28
      • Hydrogen Theme 5.4.28
      • RokSprocket Module 2.1.26
      • RokCommon Plugin 3.2.7

      I work daily and update websites at least within 3 days of an update so all are basically up-to-date on all Joomla, Gantry Component, Gantry Theme, RocketTheme add-on's and other add-on's. Currently I am using MyJoomla.com to update for add-on's and haven't encountered any issues. I still update Joomla via the admin panel so a backup is performed before the update which I can't do through MyJoomla.com.

      When I set the Error Reporting to Maximum, change the PHP version from 7.2 to 7.3, I get these warnings:
      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/ACCTNAME/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ResourceLocator/src/UniformResourceLocator.php on line 273
      
      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/ACCTNAME/public_html/libraries/src/Session/Session.php on line 386
      
      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/ACCTNAME/public_html/libraries/joomla/database/driver.php on line 1886
      
      Warning: Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0

      When I disable the RokSprocket module and reload the page, I get these warnings:
      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/ACCTNAME/public_html/libraries/gantry5/vendor/leafo/scssphp/src/Parser.php on line 875
      
      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/ACCTNAME/public_html/libraries/src/Session/Session.php on line 386
      
      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/ACCTNAME/public_html/libraries/joomla/database/driver.php on line 1886
      
      Warning: Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0

      FYI, I have tested this on other client website with Helium and Solo themes (both updated) with similar warnings.

      Anyone know of how I can fix this and get the sites upgraded to PHP 7.3?
    • Last Edit: 6 years 1 week ago by Luke Douglas. Reason: removed excess word
    • Just another old hacker!
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED PHP 7.3 crashes site

    Posted 6 years 1 week ago
    • All that means is that the php 7.3 memory_limit is too low at 32M - it needs to be at least 128M

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 15
    • Another Old Hack!

    Re: SOLVED PHP 7.3 crashes site

    Posted 6 years 1 week ago
    • MrT,

      Duh! I am going blind. You are entirely correct. Once I changed the "memory_limit" to 128M for PHP 7.3 on the server, changed the PHP version for one of the test sites, set maximum error reporting and loaded the page, it loaded just fine.

      Thanks for the extra pair of eyes! :)

      Luke
    • Just another old hacker!

Time to create page: 0.047 seconds