Skip to content

FATAL ERROR: redeclare constant #177

Open

Description

@matiasqueroceballos

Hi,

I’ve run into a PHP fatal error when activating/running the plugin. It looks like there’s a conflict because wordpress/mcp-adapter is being loaded twice, and both instances declare the same function:

PHP Fatal error: Cannot redeclare WP\MCP\constants()
previously declared in .../wp-content/plugins/mcp-adapter/mcp-adapter.php:34
in .../wp-content/plugins/[PLUGIN]/vendor/wordpress/mcp-adapter/mcp-adapter.php on line 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions