Title: Bootstrap fatal error
Last modified: September 13, 2022

---

# Bootstrap fatal error

 *  [josmatic](https://wordpress.org/support/users/josmatic/)
 * (@josmatic)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/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…

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [josmatic](https://wordpress.org/support/users/josmatic/)
 * (@josmatic)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16004407)
 * So I roll back to 2.20.04 or something like that, and 3.0.1 causing problems.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16004420)
 * Hi [@josmatic](https://wordpress.org/support/users/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://wordpress.org/plugins/age-gate/advanced/#download-previous-link](https://wordpress.org/plugins/age-gate/advanced/#download-previous-link)
 * Thanks
    Phil
 *  Thread Starter [josmatic](https://wordpress.org/support/users/josmatic/)
 * (@josmatic)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16004424)
 * [@philsbury](https://wordpress.org/support/users/philsbury/) Thanks I take older
   version from my backup 🙂
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16004429)
 * 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
    Phil
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16007067)
 * Hi [@josmatic](https://wordpress.org/support/users/josmatic/),
 * A new version has been released and I’ve double checked that all the files are
   there!
 * Thanks
    Phil
 *  [convey](https://wordpress.org/support/users/convey/)
 * (@convey)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16022283)
 * Hi,
 * We are experiencing the same fatal error on 3.0.4.
    We install the plugin with
   composer, so the error breaks our deployments.
 * – Nicolai
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16023026)
 * Hi [@convey](https://wordpress.org/support/users/convey/),
 * Assume in composer it’s coming from `wpackagist-plugin/age-gate`?
 * Will have a look and see if I can replicate
 * Thanks
    Phil
 *  Thread Starter [josmatic](https://wordpress.org/support/users/josmatic/)
 * (@josmatic)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16023657)
 * Hi 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,
    Josip
 *  [convey](https://wordpress.org/support/users/convey/)
 * (@convey)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16025722)
 * H [@philsbury](https://wordpress.org/support/users/philsbury/) ,
 * Yes `wpackagist-plugin/age-gate`.
    [https://wpackagist.org/search?q=age-gate](https://wpackagist.org/search?q=age-gate)
 * Thanks,
    Nicolai
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16026109)
 * Hi both,
 * [@josmatic](https://wordpress.org/support/users/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](https://wordpress.org/support/users/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
    Phil
 *  [convey](https://wordpress.org/support/users/convey/)
 * (@convey)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16026639)
 * Hi [@philsbury](https://wordpress.org/support/users/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,
    Nicolai
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16026649)
 * Thanks [@convey](https://wordpress.org/support/users/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:6`
 * If so, could you have a look and see if the file exists (it should!)?
 * thanks
    Phil
 *  [convey](https://wordpress.org/support/users/convey/)
 * (@convey)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16026678)
 * Hi [@philsbury](https://wordpress.org/support/users/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
    Nicolai
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16026734)
 * Hmmm… 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](https://www.dropbox.com/s/dpip5xsybpq9qe7/age-gate-3.0.5%2Bdev.63.zip?dl=1)?
 * Thanks
    Phil
 *  [convey](https://wordpress.org/support/users/convey/)
 * (@convey)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16027078)
 * Hi [@philsbury](https://wordpress.org/support/users/philsbury/),
 * I’m getting the same error.
 * – Nicolai

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Bootstrap fatal error’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [convey](https://wordpress.org/support/users/convey/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-fatal-error/#post-16027078)
 * Status: not resolved