[wp-hackers] plugin activation help

Rich Pedley elfin at elfden.co.uk
Wed Sep 1 09:08:36 UTC 2010


On 01/09/2010 09:54, Rich Pedley wrote:
> On 01/09/2010 09:24, Andrew Nacin wrote:
>> On Wed, Sep 1, 2010 at 3:32 AM, Rich Pedley<elfin at elfden.co.uk>   wrote:
>> Fatal error: Cannot redeclare add_user() (previously declared
>> in C:\inetpub\vhosts\mydomain.com
>> \httpdocs\store\wp-admin\includes\user.php:23) in C:\inetpub\vhosts\
>> mydomain.com\httpdocs\store\wp-admin\includes\user.php on line 44
>>
>> This is a core file, and add_user() is the first function in
>> wp-admin/includes/user.php... I am wondering if this file is somehow getting
>> double-included. I really haven't a clue how. Perhaps suggest they download
>> a new copy of WP and re-upload that one file?
>
> ugh, could this be caused by my using this:
> require( ABSPATH . WPINC . '/pluggable.php' );
>
> shamed to say that was left over from my early coding, and I've now
> removed it...

apologies ignore me, have to use it so changed it to require_once

The following if statement won't work without it, unless I'm 
referencing the wrong file?

if(is_user_logged_in() && current_user_can('eShop_admin')){


Rich


More information about the wp-hackers mailing list