I received the same error when initially installing the plugin.
I was able to get it working by going to the main plugins page and activating it from there.
Cheers,
Geary
I have faced the same problem too, The happens because some developers put their plugin code in a sub folder in the main folder. Just unzip the main plugin folder and you will see a sub folder that contains the plugin files. Zip that sub folder again and upload , it will work .
Acrovin
I also received the same error message, but was able to get it working by going to the main plugins page and activating it.
Go to…
Plugins -> Installed Plugins -> Invite Anyone -> Edit
change the first 3 lines from:
<?php
/*
to:
<?php
/*
ie. remove the blank line from between <?php and the /*
You should then be able to activate the plugin.
Having said that, I’ve activated it and still can’t see the Send Invite link 🙁
davelopware – Thanks for finding this issue. I’ve taken out the line and tagged version 1.0.2.
I have the same issue. The lines are correct as shown. I only just downloaded this, so its version 1.0.4.
“The plugin does not have a valid header.”
I just downloaded it and went to install it, and got the same error when I tried to activate it.
I still can’t reproduce. Can you say more about your setup? Network mode or not?
I had the same problem as everyone else. When I installed this plugin the code already looked like
<?php
/*
What I did is I also removed the blank line right after the header comments and right before
define( ‘BP_INVITE_ANYONE_VER’, ‘1.0.6’ );
define( ‘BP_INVITE_ANYONE_DB_VER’, ‘1.0.6’ );
So it looks like this
<?php
/*
Plugin Name: Invite Anyone
Plugin URI: http://teleogistic.net/code/buddypress/invite-anyone/
Description: Allows group admins to invite any member of their BuddyPress community to a group or to the site
Version: 1.0.6
Author: Boone Gorges
Author URI: http://boonebgorges.com
*/
define( ‘BP_INVITE_ANYONE_VER’, ‘1.0.6’ );
define( ‘BP_INVITE_ANYONE_DB_VER’, ‘1.0.6’ );
Then when I saved it and clicked activate, It finally worked.