Hi,
I’ve been ‘playing’ with this plugin for the whole day and think I found some extra info + a workaround to issue mentioned above.
It’s been happening the same to me when I’m logged in and the Subscribe2 page shows me a link to my profile. If I click on this link I get into admin/users/subscripcions and the ‘Cannot redeclare class…’ comes up.
Reading in forums it seems to be it has something to do with Windows server. I’m not that sure of it but I can’t totally disagree for I’m running my testing server (Apache) under Windows.
It has nothing to do with the Subscribe2 version as suggested in the same forums, for I have the latest version at the moment of writing: 2.2.4
After some time reading the plugin code up and down, and double ckecking the links in the pages I found a weird (?, maybe not that strange) way of linking to the ‘User subscription settings’. Then I did 2 changes: one to the way the admin submenu ‘Subscriptions’ linked that page and a second one to the link that appears in the ‘subscription (public) page’ if the visitor is logged in (as a WordPress user), and the problem dissapeared. Colateral killings? I haven’t found one so far.
The changes:
1.- at around line 71
$this->use_profile = __('You may manage your subscription options from ', 'subscribe2') . "your profile.";
2.- at around line 118
add_submenu_page('profile.php', __('Subscriptions', 'subscribe2'), __('Subscriptions', 'subscribe2'), "read",basename(__FILE__), array(&$this, 'user_menu'));
Good luck and have a good day,
hip – https://www.4tres.com