Title: Plugin header error
Last modified: February 6, 2025

---

# Plugin header error

 *  Resolved [crypt0z](https://wordpress.org/support/users/crypt0z/)
 * (@crypt0z)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/plugin-header-error/)
 * 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
 *     ```wp-block-code
       <?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 directorydefine('API_GOLD_PLUGIN_INCLUDES', plugin_dir_path(__FILE__) . 'includes/');// Include necessary filesrequire_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](https://wordpress.org/support/users/bcworkz/).
      Reason: formatting fixed
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-header-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [crypt0z](https://wordpress.org/support/users/crypt0z/)
 * (@crypt0z)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/plugin-header-error/#post-18290065)
 * Old version mix up.
 *  [Sohilbhai Ghanchivahora](https://wordpress.org/support/users/sohilvahora96/)
 * (@sohilvahora96)
 * [12 months ago](https://wordpress.org/support/topic/plugin-header-error/#post-18515365)
 * Hi [@crypt0z](https://wordpress.org/support/users/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.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [Sohilbhai Ghanchivahora](https://wordpress.org/support/users/sohilvahora96/)
 * Last activity: [12 months ago](https://wordpress.org/support/topic/plugin-header-error/#post-18515365)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
