Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when Gravity Forms is not installed (ACF 5) #11

Open
raik opened this issue Aug 13, 2014 · 3 comments
Open

Fatal error when Gravity Forms is not installed (ACF 5) #11

raik opened this issue Aug 13, 2014 · 3 comments

Comments

@raik
Copy link

raik commented Aug 13, 2014

Fatal error: Class 'RGFormsModel' not found in […]/wordpress/wp-content/plugins/Gravity-Forms-ACF-Field-master/gravity_forms-v5.php on line 111

Error pretty much breaks the WP admin.

@raik raik changed the title Fatal error on when Gravity Forms is not installed (ACF 5) Fatal error when Gravity Forms is not installed (ACF 5) Aug 13, 2014
@lgladdy
Copy link
Contributor

lgladdy commented Aug 13, 2014

This probably needs a little thought rather than just class_exists() incase we're loaded before Gravity Forms (Will that ever happen? Maybe..)

Leave it with me and we'll get this fixed shortly :)

@jonathan-dejong
Copy link
Contributor

So does it work with ACF 5 PRO?

@rklrkl
Copy link

rklrkl commented Mar 2, 2019

I get a similar error if gravityforms is deactivated (which happens when it is upgraded of course) - this is reported after "wp deactivate gravityforms":

PHP Fatal error: Class 'GFAPI' not found in ..wp-content/plugins/Gravity-Forms-ACF-Field-master/gravity_forms-v5.php on line 191

Looks like use of GFAPI:: isn't protected by any class_exists() check :-( It completely breaks the ability to upgrade the gravityforms plugin unless Gravity-Forms-ACF-Field is deactivated first and then re-activated afterwards - not good!

BTW, is Gravity-Forms-ACF-Field an abandoned plugin? There's been no commits for 4 years now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants