Title: Invalid Plugin Header
Last modified: February 11, 2019

---

# Invalid Plugin Header

 *  Resolved [oliverhtml](https://wordpress.org/support/users/oliverhtml/)
 * (@oliverhtml)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/)
 * Hi,
    I get an invalid plugin header error when trying to activate the plugin.
   I added the Plugin Uri and that made it work however it then triggers a couple
   of fatal errors:
 * Fatal error: Can’t use method return value in write context in
    /wp-content/plugins/
   secure-trading-gateway-for-woocommerce/classes/class-wc-st-gateway.php on line
   1510
 * Fatal error: Class declarations may not be nested in
    /wp-content/plugins/woocommerce/
   includes/log-handlers/class-wc-log-handler-file.php on line 19

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

 *  Plugin Author [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11191775)
 * Hi Oliver,
 * We’ve just checked this on a fresh install and we weren’t able to replicate that
   error.
 * This sounds like it could be a conflict with another plugin possibly. Can also
   you please confirm for us what version of WP you’re running?
 * Thanks
 *  Thread Starter [oliverhtml](https://wordpress.org/support/users/oliverhtml/)
 * (@oliverhtml)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11191779)
 * Sure that’s 5.0.3
    and woocommerce 3.5.3
 * Thank you
 *  Plugin Author [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11191873)
 * Hi,
 * May I suggest you update to the latest version of WooCommerce (3.5.4), deactivate
   the plugin and try reactivating?
 * If it’s still not working for you, please try deactivating other plugins to see
   whether it’s a plugin conflict.
 * Thanks
 *  Thread Starter [oliverhtml](https://wordpress.org/support/users/oliverhtml/)
 * (@oliverhtml)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11205112)
 * Hi,
    sooo I updated php and managed to get it installed and not breaking however,
   none of the settings are saving.
 * I’ve tried the disabling plugins approach, updated woocommece and enabled debugging.
   The plugin isn’t causing any errors but it’s not saving.
 * Any help would be much appreciated.
 *  Plugin Author [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11205143)
 * Hi,
 * Hmm, very strange. We’ve not come across that error before but will certainly
   take a look where possible.
 * Are you working on a dev environment or is this a live site? If on dev, I’d suggest
   sharing your login details with me privately so I can take a look on your install
   as we’ve not been able to replicate this.
 * Thanks,
 *  Thread Starter [oliverhtml](https://wordpress.org/support/users/oliverhtml/)
 * (@oliverhtml)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11217912)
 * Hi Josh
    I sent some login details via your website Kind Regards, Oliver
 *  Plugin Author [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11217971)
 * Hi Oliver,
 * Sorry it looks like they haven’t come through. When did you send them?
 * Could you try again please, to [support@illustrate.digital](https://wordpress.org/support/topic/invalid-plugin-header-5/support@illustrate.digital?output_format=md)
 * Thanks,
 *  Plugin Author [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11235050)
 * _Note – error with saving was due to missing user fields at client end._ Solved
   through direct email contact.

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

The topic ‘Invalid Plugin Header’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/secure-trading-gateway-for-woocommerce_d4adba.
   svg)
 * [Trust Payments Gateway for WooCommerce](https://wordpress.org/plugins/secure-trading-gateway-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-plugin-header-5/#post-11235050)
 * Status: resolved