Bootstrap fatal error
-
Hi, after update on live site I get
PHP Fatal error: Uncaught Error: Class ‘AgeGate\Legacy\Deprecated’ not found in /hidden-path/plugins/age-gate/src/Bootstrap.php:6
but on development was all fine…
-
So I roll back to 2.20.04 or something like that, and 3.0.1 causing problems.
Hi @josmatic,
That’s odd. It’s in trunk but not in the tag. What else can go wrong!?
Sure, 2.21.1 was the last 2.x version. Will get that sorted though.
It’s here: https://ww.wp.xz.cn/plugins/age-gate/advanced/#download-previous-link
Thanks
Phil@philsbury Thanks I take older version from my backup 🙂
I’ve actually just downloaded the version from the plugins site and it was there, so could have been an update issue.
I’d say for now stick to that previous version as some other fixes are incoming anyway 🙂
Thanks
PhilHi @josmatic,
A new version has been released and I’ve double checked that all the files are there!
Thanks
PhilHi,
We are experiencing the same fatal error on 3.0.4.
We install the plugin with composer, so the error breaks our deployments.– Nicolai
Hi @convey,
Assume in composer it’s coming from
wpackagist-plugin/age-gate?Will have a look and see if I can replicate
Thanks
PhilHi Phil, I just update to 3.0.4 but seems that layout structure is changed, but plugin works fine and without erros, but…
At desktop screen I get max width of 500px. Yes, developers before me made redisign, do not use vanila layout.
Can I contact you privatly to send you website link?
Regards,
JosipH @philsbury ,
Yes
wpackagist-plugin/age-gate.
https://wpackagist.org/search?q=age-gateThanks,
NicolaiHi both,
@josmatic – the structure shouldn’t have changed between v3.x versions, it did change between 2.x and 3.x. We have a contact form on the v3 page of our site if you need to get in touch
@convey, did a couple of composer installs yesterday with no issues.
Do you get an error in composer or in the site itself (or both)?
Is it worth clearing the composer cache in your CI/CD tool?Thanks
PhilHi @philsbury,
It installs fine with composer, but the debug-log when WP_DEBUG is true, throws the error.
If I run a WP CLI command on the site the errors is also thrown.I’ve cleared my composer cache.
Thanks,
NicolaiThanks @convey,
And the error is it can’t find the same as above?
PHP Fatal error: Uncaught Error: Class 'AgeGate\Legacy\Deprecated' not found in /hidden-path/plugins/age-gate/src/Bootstrap.php:6If so, could you have a look and see if the file exists (it should!)?
thanks
PhilHi @philsbury,
The error is:
Fatal error: Uncaught Error: Class 'AgeGate\Legacy\Deprecated' not found in /site/web/app/plugins/age-gate/src/Bootstrap.php:6 Stack trace: #0 /site/web/app/plugins/age-gate/age-gate.php(24): require_once()Yes the file exists which is the strange part.
I think the file reference is missing in vendor/composer/autoload_files.php.
Maybe you can run a composer dump-autoload?Thanks
NicolaiHmmm… all the autoload is regenerate by our github action so shouldn’t be an issue, but I’ll check.
I’ve renamed the class in this one to see if that’s it, can you just try a direct upload of this version?
Thanks
Phil
The topic ‘Bootstrap fatal error’ is closed to new replies.