0
Welcome Guest! Login
0 items Join Now

serialize error on PHP 7.0.6 with Gantry 4.1.31

  • serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 11 months ago
    • My Joomla website is using free Gantry 4 default template and Gantry Framework v4.1.31 now.

      I want to use PHP 7.0, so I made a test on localhost multi-php environment (php 5.4 / 5.5 / 5.6 / 7.0 ). With error reporting of Joomla Global Configuration set to "Development".

      If working under PHP 5.6 and lower, it is fine. But if I switch to PHP 7.0.6 , I got following error message on the top of the frontend page:


      Notice: serialize(): "layoutSchemas" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115

      Notice: serialize(): "mainbodySchemas" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115

      Notice: serialize(): "mainbodySchemasCombos" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115

      Notice: serialize(): "pushPullSchemas" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115

      Notice: serialize(): "presets" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115

      I have no idea why these error message rised.

      I checked the Gantry.org website, but I already had installed the latest version of Gantry 4 which was supposed to support PHP7.

      How to fix this?

      Thank you.
    • Joe Halleck's Avatar
    • Joe Halleck
    • Preeminent Rocketeer
    • Posts: 5480
    • Thanks: 66
    • Never give up!

    Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 11 months ago
    • Since these are notices they should not stop your site from working.
      You can turn off notices posting by adjust your php setting "error_reporting" to not report notices.
    • Magento - phpBB3 - Kunena - RokBridge Specialist
      No Secure Tab posts unless requested.
      Use the Thank You and Life Preserver Buttons!
      Your signature is also great place for setup details...help us help you!
  • Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 11 months ago
    • Ok. If they are "harmless" to my Joomla, I can ignore them by turning off error reporting.

      Thank you.
    • Joe Halleck's Avatar
    • Joe Halleck
    • Preeminent Rocketeer
    • Posts: 5480
    • Thanks: 66
    • Never give up!

    Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 11 months ago
    • Please let us know that fixes your issue.
    • Magento - phpBB3 - Kunena - RokBridge Specialist
      No Secure Tab posts unless requested.
      Use the Thank You and Life Preserver Buttons!
      Your signature is also great place for setup details...help us help you!
  • Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 6 months ago
    • I have these same errors on PHP 7. It would be great to solve them even if they are just "Notices".

      Will Gantry 4.x be updated to resolve these issues?
    • Get the new second edition of the bestselling Joomla book, Using Joomla!
      www.usingjoomlabook.com
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 6 days ago
  • Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 6 days ago
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 6 days ago
    • My bad, please try again. :)
    • Kat05 / QA Lead & Support / Germany
  • Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 6 days ago
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: serialize error on PHP 7.0.6 with Gantry 4.1.31

    Posted 7 years 6 days ago
    • Not my day, lol.

      I had moved the other post from the members-only Joomla Paradigm forum board to the public Gantry 4 forum board, so usually the link would redirect you there, howver it first checks if you're a member before doing the redirect. I've now corrected the link, so if you click on the 'here' again it should now work. Sorry for the inconvenience. :)
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.062 seconds