Support » Plugin: Carbon Fields » Fatal Error When Activated On Site Also Using v2.0.3

  • Resolved uamv

    (@uamv)


    Thank you for your attention these past couple days! I’ve encountered one more issue. I’ve released a plugin, Seasonal CSS, that includes the Carbon Fields library as available on Github. However, when I activate the plugin on a site that also contains this plugin (Carbon Fields v1.6.0), I receive the following fatal error…

    Fatal error: Call to undefined method Carbon_Fields\Container\Container::init_containers() in /app/public/wp-content/plugins/carbon-fields/core/Helper/Helper.php on line 67.

    Can you please advise on how to best remedy this? It seems like a conflict between the two versions of Carbon Fields, so I don’t know that there is much I can do to intervene. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter uamv

    (@uamv)

    This also makes me wonder whether a similar error might arise if the plugin is active on a site that wraps a different version of Carbon Fields in some other theme or plugin.

    You should be doing version checking.

    Thread Starter uamv

    (@uamv)

    Thank you! I was able to get a variation of your code running in the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error When Activated On Site Also Using v2.0.3’ is closed to new replies.