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

Composer autoload for uninstall #111

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

MariaMozgunova
Copy link
Contributor

Currently, when removing the plugin, I get the error below:

PHP Fatal error:  Uncaught Error: Class 'OpenIDConnectServer\OpenIDConnectServer' not found in /<wp_root_path>/wp-content/plugins/openid-connect-server/uninstall.php:10
Stack trace:
#0 /<wp_root_path>/wp-admin/includes/plugin.php(1245): include_once()
#1 /<wp_root_path>/wp-admin/includes/plugin.php(960): uninstall_plugin('openid-connect-...')
#2 /<wp_root_path>/wp-admin/includes/ajax-actions.php(4748): delete_plugins(Array)
#3 /<wp_root_path>/wp-includes/class-wp-hook.php(324): wp_ajax_delete_plugin('')
#4 /<wp_root_path>/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#5 /<wp_root_path>/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /<wp_root_path>/wp-admin/admin-ajax.php(188): do_action('wp_ajax_delete-...')
#7 {main}
  thrown in /<wp_root_path>/wp-content/plugins/openid-connect-server/uninstall.php on line 10

The error can be resolved by autoloading classes in the uninstall script.

Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@akirk akirk merged commit 2387661 into Automattic:main Jun 26, 2024
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.

2 participants