Skip to content

Conversation

@jasonbahl
Copy link
Collaborator

When installing the plugin from Composer, the autoload.php will exist in the project installing the plugin, not in the plugin itself.

This wraps the the autoload require in a file_exists() check before requiring the local plugin autoload.

Additionally, this adds a check for the Document class in the can_load_plugin function to ensure the autoloaded classes exist before using them.

Closes #176

…mposer will put the autoload file elsewhere.

- Add a check for the Document class in `can_load_plugin` to ensure the autoloaded classes exist before using them
@jasonbahl jasonbahl merged commit e86416d into main Nov 11, 2022
@jasonbahl jasonbahl mentioned this pull request Nov 11, 2022
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

Successfully merging this pull request may close these issues.

Fatal error when i try to activate the plugin

2 participants