A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Admin can't change options wp 2.8.1 - no sufficient permissions
Jun 21, 2009
5:24 am
sonolento
Guest

With wp 2.8.1. + SimplePress 4.0.3. one can't access any of the forum admin pages.

One gets a "You do not have sufficient permissions to access this page." message.

Jun 21, 2009
7:24 am

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

have you turned on the block admin option in the forum – options – global tab?  if so, turn it off and your users will be able to get to the back end (our MOST requested feature).

Jun 21, 2009
7:43 am
sonolento
Guest

This option has been turned off (using wp 2.8). In wp 2.8.1. one can't even open that menu to change it.

The problem must have to do with the new permission checks in 2.8.1.

"Extra security has been put in place to better protect you from plugins that do not do explicit permission checks." in Wordpress dev blog

Jun 21, 2009
7:46 am

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

Why do you think that is applicable to SPF?? I ask because when that trac ticket was committed, I wondered what it was all about…

We do explicit permission checks… And we have been running 2.8.1 here with no issues…

I can try to do some more research too…

Jun 21, 2009
7:55 am

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

Well, of course…  leave it to the wp devs to change something and break plugins on a bug fix point release (one that shouldnt have been needed if they had properly tested in the first place!)…

Yes, this is going to cause problems with wp 2.8.1…   Its not released yet, so will see if we can get a ANOTHER wp compatibility release up before they release…

thanks for bringing this to our attention!

Jun 21, 2009
7:59 am
sonolento
Guest

Exactly.

Thanks. And keep this great plugin going!

Jun 21, 2009
8:22 am

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

looks like its not really a permissions issue but they want menu and submenu pages added in a different order…

Are you up to trying a quick change for me to see if it solves it for you?

Jun 21, 2009
8:45 am
sonolento
Guest

Ok. What do I need to change?

Jun 21, 2009
8:49 am

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

find file sf-admin-header.php…  in routine sfa_admin_menu(), we need to reorder the add menu and add subpage stuff…  do the add menu first and then the sub-menus…   its a fairly simple re-ordering, but will paste the whole routine

function sfa_admin_menu()
{
    global $current_user;

    $status = sf_get_system_status();
    if ($status == 'ok')
    {
        $parent = 'simple-forum/admin/sf-adminforums.php';

        if (sf_current_user_can('SPF Manage Options') ||
            sf_current_user_can('SPF Manage Forums') ||
            sf_current_user_can('SPF Manage Components') ||
            sf_current_user_can('SPF Manage User Groups') ||
            sf_current_user_can('SPF Manage Permissions') ||
            sf_current_user_can('SPF Manage Database') ||
            sf_current_user_can('SPF Manage Users') ||
            sf_current_user_can('SPF Manage Admins') ||
            sf_get_member_item($current_user->ID, 'moderator'))
        {
            if(function_exists('add_object_page'))
            {
                add_object_page('Simple:Press Forum', __('Forum', 'sforum'), 8, $parent, '', 'div');
            } else {
                add_menu_page('Simple:Press Forum', __('Forum', 'sforum'), 8, $parent, '');
            }

            add_submenu_page($parent, __('Online Help', 'sforum'), __('Online Help', 'sforum'), 0, 'simple-forum/admin/sf-adminpopuphelp.php');
        }

        if (sf_current_user_can('SPF Manage Forums'))
        {
            add_submenu_page($parent, __('Forums', 'sforum'), __('Forums', 'sforum'), 0, 'simple-forum/admin/sf-adminforums.php');
        }
        if (sf_current_user_can('SPF Manage Options'))
        {
            add_submenu_page($parent, __('Options', 'sforum'), __('Options', 'sforum'), 0, 'simple-forum/admin/sf-adminoptions.php');
        }
        if (sf_current_user_can('SPF Manage Components'))
        {
            add_submenu_page($parent, __('Components', 'sforum'), __('Components', 'sforum'), 0, 'simple-forum/admin/sf-admincomponents.php');
        }
        if (sf_current_user_can('SPF Manage User Groups'))
        {
            add_submenu_page($parent, __('Usergroups', 'sforum'), __('User Groups', 'sforum'), 0, 'simple-forum/admin/sf-adminusergroups.php');
        }
        if (sf_current_user_can('SPF Manage Permissions'))
        {
            add_submenu_page($parent, __('Permissions', 'sforum'), __('Permission Sets', 'sforum'), 0, 'simple-forum/admin/sf-adminpermissions.php');
        }
        if (sf_current_user_can('SPF Manage Users'))
        {
            add_submenu_page($parent, __('Users', 'sforum'), __('Users', 'sforum'), 0, 'simple-forum/admin/sf-adminusers.php');
        }
        if (sf_current_user_can('SPF Manage Admins') || sf_get_member_item($current_user->ID, 'moderator'))
        {
            add_submenu_page($parent, __('Admins', 'sforum'), __('Admins', 'sforum'), 0, 'simple-forum/admin/sf-adminadmins.php');
        }
        if (sf_current_user_can('SPF Manage Database'))
        {
            add_submenu_page($parent, __('Database', 'sforum'), __('Database', 'sforum'), 0, 'simple-forum/admin/sf-admindatabase.php');
        }
    } else {

        if(function_exists('add_object_page'))
        {
            $parent = 'simple-forum-install';
        } else {
            $parent = 'simple-forum/sf-loader.php';
        }

        if(function_exists('add_object_page'))
        {
            add_object_page('Simple:Press Forum', __("Forum", "sforum"), 'activate_plugins', $parent, '', 'div');
        } else {
            add_menu_page('Simple:Press Forum', __("Forum", "sforum"), 'activate_plugins', $parent, '');
        }

        if($status == 'Install')
        {
            add_submenu_page($parent, __("Install Simple:Press Forum", "sforum"), __("Install Simple:Press Forum", "sforum"), 'activate_plugins', 'simple-forum/sf-loader.php');
        } else {
            add_submenu_page($parent, __("Upgrade Simple:Press Forum", "sforum"), __("Upgrade Simple:Press Forum", "sforum"), 'activate_plugins', 'simple-forum/sf-loader.php');
        }
    }
}

Be careful when cutting and pasting as you will get munged quotes…  If you can make your way around code, I think it will be pretty obvious what the actual changes are (moved add menu page stuff before add submenu page)…

this fixes any issues for me, but would be nice to get confirmation…

Jun 21, 2009
9:06 am
sonolento
Guest

Bingo! This solves it.

Thanks.

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: chucktho, SPQC
56 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 485

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2616

Members: 7328

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10839

Posts: 79118

Moderators: Brandon C (158)

Administrators: Yellow Swordfish (22131), Mr Papa (23580)