Giter Site home page Giter Site logo

Can't activate plug-in about acf-post2post HOT 5 CLOSED

hube2 avatar hube2 commented on August 20, 2024
Can't activate plug-in

from acf-post2post.

Comments (5)

Hube2 avatar Hube2 commented on August 20, 2024

What version of ACF are you using. This plugin will only work with ACF5 and can't be activated if you're using ACF4.

from acf-post2post.

kLOsk avatar kLOsk commented on August 20, 2024

Hi, I'm actually seeing the same issue. Running latest ACF Pro 5.6.10 - Any idea how to debug?

from acf-post2post.

kLOsk avatar kLOsk commented on August 20, 2024

oh, actually I just realized that I have embedded ACF into the theme instead of installed as a plugin. Will see if i can fix it.

from acf-post2post.

kLOsk avatar kLOsk commented on August 20, 2024

Sorry for spamming, so the reason why it fails is because the plugin checks for ACF on the hook 'plugins_loaded'. Replacing this with 'after_setup_theme' solves the problem.
Since embedding ACF into themes is officially supported, I would recommend to adjust this. Since it's just one line of code I hope you don't mind me not creating a pull request for this.

Line 27 acf-post2post.php:
add_action('after_setup_theme', array($this, 'plugins_loaded'));

from acf-post2post.

Hube2 avatar Hube2 commented on August 20, 2024

I altered to run on after_setup_theme. I'd like to remove this completely. Hopefully ACF5 will be released to WP soon and I can do so eventually.

from acf-post2post.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.