• Resolved Deepak Gupta

    (@raftaar1191)


    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:99
    

    Stack 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_Store is 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

    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.php inclusion
      • Or ensuring the build process includes all required files before distribution
    • This topic was modified 3 days, 22 hours ago by Deepak Gupta.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Royal Plugins

    (@royalpluginsteam)

    Thank you for using our plugin, testing it and of course giving us this great report/feedback. We just pushed update fixing this issue- tested up to 7.0 RC.

    Thread Starter Deepak Gupta

    (@raftaar1191)

    It’s working well now. Thanks for the quick fixed

    Plugin Author Royal Plugins

    (@royalpluginsteam)

    Awesome thanks for using our tool! If you could take a second and leave us a review, it really helps us!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.