Re: Gantry 4: Call to a member function (get) error...
Posted 5 years 9 months 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.
Re: Gantry 4: Call to a member function (get) error...
Posted 5 years 9 months 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.
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...)
Re: Gantry 4: Call to a member function (get) error...
Posted 5 years 9 months 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.
Re: Gantry 4: Call to a member function (get) error...
Posted 5 years 9 months 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).
Re: Gantry 4: Call to a member function (get) error...
Posted 5 years 9 months 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.
Re: Gantry 4: Call to a member function (get) error...
Posted 5 years 8 months 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!