Fatal error on activation – Missing Token_Store class
-
While attempting to activate the plugin on a local environment, I encountered a fatal error that prevents activation.
Error Details:PHP Fatal error: Uncaught Error: Class "Royal_MCP\OAuth\Token_Store" not found File: /wp-content/plugins/royal-mcp/royal-mcp.php:99Stack Trace (Relevant Part):
Royal_MCP_Plugin->activate(false) do_action('activate_royal-mcp/royal-mcp.php') activate_plugin()Environment:
- WordPress version: 7.0 (RC release)
- PHP version: (add your version here, e.g., 8.1/8.2)
- Local environment: LocalWP
- Plugin version: latest version
Observations:
- The error indicates that the class
Royal_MCP\OAuth\Token_Storeis not being autoloaded or included before usage. - This occurs during plugin activation (
activate()method). - Likely causes:
- Missing
require/autoload for the class file - Composer autoload not initialized properly
- Incorrect namespace or file path
- Missing
Expected Behavior:
Plugin should activate without fatal errors.Additional Notes:
- This issue was encountered while testing against the WordPress 7.0 Release Candidate, so it may be related to compatibility with upcoming core changes.
- If this class is part of a Composer-based structure, it might require:
vendor/autoload.phpinclusion- Or ensuring the build process includes all required files before distribution
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.