0
Welcome Guest! Login
0 items Join Now

Gantry 4: Call to a member function (get) error...

    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 332

    Re: Gantry 4: Call to a member function (get) error...

    Posted 8 months 1 day ago
    • Hi again,

      I googled a bit and any results I found where people came across that same error, it was suggested that it's a misconfiguration of PHP on the server. You should compare between the working PHP 7.0 and the broken PHP 7.2, or just check back with your host about the differences.

      Please see an example discussed here: github.com/joomla/joomla-cms/issues/22046
    • Kat05 / QA Lead & Support / Germany
    • Jim Dee's Avatar
    • Jim Dee
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 5
    • PHP, CSS, Gantry :-)

    Re: Gantry 4: Call to a member function (get) error...

    Posted 8 months 1 day ago
    • Thanks, Kat... I'll spin up a new copy with this error, using PHP 5.6, if you'd like to take a look to see if it's any kind of Gantry issue. I'll reply again later after I do that. I got the error on all PHPs... although the error reporting when I had it on 5.6 was more thorough thatn it was on 7.x.
    • ______________________
      Jim Dee
      Principal, Array Web Development * 503-902-HTML
      * SERVICES: Joomla!, RocketTheme/Gantry, PHP, MySQL, CSS/HTML
      * PORTFOLIO: http://www.arraywebdevelopment.com
      * WRITING: https://medium.com/web-design-web-developer-magazine
    • Jim Dee's Avatar
    • Jim Dee
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 5
    • PHP, CSS, Gantry :-)

    Re: Gantry 4: Call to a member function (get) error...

    Posted 8 months 1 day ago
    • Ok, I've setup a barebones copy, in case you'd like to take a look. (Details in the secure tab).

      The issue is:

      If you assign a page on a hidden menu to a non-Gantry template (e.g., Protostar), you get a Gantry error.

      For example:

      Thus URL, from the hiddenmenu called Links ...

      ecres161.servconfig.com/~znorthrim/jdtest

      is now assigned to Protostar... throws the error. If I assign it to Graffito or Myriad or Ricochet, the page works.

      But, on Protostar, it'll throw the error:

      Notice: Undefined index: in /home/znorthrim/public_html/libraries/gantry/gantry.php on line 126

      Notice: Trying to get property of non-object in /home/znorthrim/public_html/libraries/gantry/gantry.php on line 207

      Fatal error: Call to a member function get() on null in /home/znorthrim/public_html/libraries/gantry/gantry.php on line 267

      In php7+, it's basically that last line that shows, although it doesn't identify the line number of the gantry error, so I think php5.6 in this case is better for troubleshooting.

      Anyway, that's all I know. It's a test server, so feel free to mess around all you like. I'm going to uninstall Gantry4 from the live site, anyway, so it's no longer an urgent issue. But, in case you're interested in seeing if this is a bug in Gantry4, perhaps, that you may wnt to address, I'll leave the site here up for a while -- and, or it could be good to help others getting this issue, of course! (I'd also be curious as to what's going on...)

      Best,
      -Jim
    • ______________________
      Jim Dee
      Principal, Array Web Development * 503-902-HTML
      * SERVICES: Joomla!, RocketTheme/Gantry, PHP, MySQL, CSS/HTML
      * PORTFOLIO: http://www.arraywebdevelopment.com
      * WRITING: https://medium.com/web-design-web-developer-magazine
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 332

    Re: Gantry 4: Call to a member function (get) error...

    Posted 7 months 3 weeks ago
    • Hi again,

      apologies for the late reply. We just released Gantry 4.1.40 to address an issue with the Gantry library showing up twice which was introduced in Joomla 3.9.x. Please run the update and then post back if you're still having issues.
    • Last Edit: 7 months 3 weeks ago by Kat05.
    • Kat05 / QA Lead & Support / Germany
    • Jim Dee's Avatar
    • Jim Dee
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 5
    • PHP, CSS, Gantry :-)

    Re: Gantry 4: Call to a member function (get) error...

    Posted 7 months 3 weeks ago
    • Ahh, yes, I noticed that double Gantry thing -- wondered what that was from! Anyway, on this test site, I did apply the Gantry 4.1.40, but it still shows the same errors on any hidden menu items.

      Notice: Undefined index: in ...public_html/libraries/gantry/gantry.php on line 126
      Notice: Trying to get property of non-object in ...public_html/libraries/gantry/gantry.php on line 207
      Fatal error: Call to a member function get() on null in ...public_html/libraries/gantry/gantry.php on line 267

      Again, it's not a live site & isn't an emergency. I'm just leaving it up in case your team is interested in seeing if there's anything helpful in there (and/or to help others looking for the same errors).
    • ______________________
      Jim Dee
      Principal, Array Web Development * 503-902-HTML
      * SERVICES: Joomla!, RocketTheme/Gantry, PHP, MySQL, CSS/HTML
      * PORTFOLIO: http://www.arraywebdevelopment.com
      * WRITING: https://medium.com/web-design-web-developer-magazine
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 332

    Re: Gantry 4: Call to a member function (get) error...

    Posted 7 months 3 weeks ago
    • That's great, I will do some local testing tomorrow and compare with your setup to see if I can replicate the issue.
      Thank you!
    • Kat05 / QA Lead & Support / Germany
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 332

    Re: Gantry 4: Call to a member function (get) error...

    Posted 7 months 3 weeks ago
    • Hi again,

      I am still testing locally and I am unable to replicate the error.
      Meanwhile I have unassigned all Gantry templates on your site and made Protostar the default and still the same issue is present.
      We'll keep digging.
    • Last Edit: 7 months 3 weeks ago by Kat05.
    • Kat05 / QA Lead & Support / Germany
    • Jim Dee's Avatar
    • Jim Dee
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 5
    • PHP, CSS, Gantry :-)

    Re: Gantry 4: Call to a member function (get) error...

    Posted 7 months 1 week ago
    • I'm cool w/ chalking it up to some weird fluke. We can close this, if you like & I'll delete that test site. (I'll go ahead and delete it if I don't hear back by, say, 3-15-19, ok?). Thanks for looking into it, though!
    • ______________________
      Jim Dee
      Principal, Array Web Development * 503-902-HTML
      * SERVICES: Joomla!, RocketTheme/Gantry, PHP, MySQL, CSS/HTML
      * PORTFOLIO: http://www.arraywebdevelopment.com
      * WRITING: https://medium.com/web-design-web-developer-magazine
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 332

    Re: Gantry 4: Call to a member function (get) error...

    Posted 7 months 5 days ago
    • Hi again,

      yeah, I wasn't able to figure out why this is happens and also unable to replicate locally.
      If you're happy to delete the site, please do so.

      Thanks again for your patience. :)
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.078 seconds