• Resolved crypt0z

    (@crypt0z)


    hello, I had this plugin working for some reason it stopped working and when I try to upload and activate it I get
    The plugin does not have a valid header.
    here is the main file

    <?php

    /*

    * Plugin Name: API gold

    * Plugin URI: https://governance.page

    * Description: Handle the basic combinations handling with this plugin.

    * Version: 0.1.0

    * Requires at least: 0.1

    * Requires PHP: 7.2

    * Author: Jayotis Diggory

    * Author URI: https://governance.page

    * License: GPL v2 or later

    * License URI: https://www.gnu.org/licenses/gpl-2.0.html

    * Update URI: https://governance.page

    * Text Domain: my-basics-plugin

    * Domain Path: /languages

    */

    if (!defined('WPINC')) {

    die();

    }

    // Define a
    constant for the plugin's includes directory

    define('API_GOLD_PLUGIN_INCLUDES', plugin_dir_path(__FILE__) . 'includes/');

    // Include necessary files

    require_once API_GOLD_PLUGIN_INCLUDES . 'APIgoldSecurityManager.php';

    require_once API_GOLD_PLUGIN_INCLUDES . 'UserRegistrationManager.php';

    require_once API_GOLD_PLUGIN_INCLUDES . 'VerificationTokens.php';

    require_once API_GOLD_PLUGIN_INCLUDES . 'DrawUploadHandler.php';

    class APIgoldPlugin {

    // Declare the properties explicitly
    • This topic was modified 1 year, 4 months ago by bcworkz. Reason: formatting fixed

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter crypt0z

    (@crypt0z)

    Old version mix up.

    Hi @crypt0z ,

    Please check below steps:
    – Plugin name should be api-gold (/wp-content/plugins/api-gold/)
    – Main file name should be api-gold.php in api-gold plugin’s folder
    – Check permission
    – Update (Text Domain: api-gold)

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

The topic ‘Plugin header error’ is closed to new replies.