Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter wkor

    (@wkor)

    I actually didn’t have a role called ‘Administrator’ anymore (Grand Admin, rather…). So I changed stuff in the role description and also what my role was. Kind of resetting both with WP 3.0 values, if that makes sense.

    Sorry for the late reply, I wish there were email notifications here.

    Edit: just added this thread as a favorite and pulled it into Google Reader. I’ll keep up to speed now.

    Thread Starter wkor

    (@wkor)

    Well, I fixed my installation. Finally!

    Here’s how I think you can fix yours. As always, it’s recommended to backup your files and database.

    First, I don’t know if it makes a difference, but it may be a good idea to log out of WordPress.

    Also, before you do this, you may want to note down the settings for your custom user roles or whatever that is you’re talking about, as this will obliterate any custom user roles.

    Go into phpMyAdmin. Go into your WordPress database. Go to the search tab and look for ‘roles’ (make sure to select all tables, so you can search them). You’ll find the option_name wp_user_roles (you could have gone there directly, but I find it easier to search). Click the edit button. Replace the option_value with the following:

    a:5:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:62:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:9:"add_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:34:{s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:10:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:5:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:2:{s:4:"read";b:1;s:7:"level_0";b:1;}}}

    Click Go right below that. Now, for good measure, go back to the front of your database, go into wp_usermeta. Find your username id # by referencing it against your nickname. Now find the wp_capabilities entry with that user_id and edit it. Put in

    a:1:{s:13:"administrator";s:1:"1";}

    for the meta_value. Click Go. [This part of the process I found out from here, though note the meta_value value they use is different.]

    Why does this fix it? New capabilities were introduced in WP 3.0, I found out via this wiki entry. Somehow, it appears, custom user roles got screwed over because of this.

    Anyhow, so reset the user roles by following the instructions I wrote above and you should be good to go, have all your admin powers back. Make sure to check up on and other users you have (if you have any) after the whole thing to see if you need to change their role or anything.

    Also, I don’t know if custom user role plugins work properly with 3.0 yet, then. I don’t want to test for a bit, at least! Anybody braver right now, feel free to report.

    Aaaaand one more thing. The problem was somewhat caused by a custom role plugin, but one might think WordPress would gracefully handle adding new capabilities to the correct role or whatever. Anyway, not good. Bug report, then?

    Thread Starter wkor

    (@wkor)

    Ding! I’m using a custom user role, too. I shall investigate and report anything I find. Thanks for the report.

    Thread Starter wkor

    (@wkor)

    I know The Codex says not to bump, but it’s been almost a week. Sorry, bump.

    Thread Starter wkor

    (@wkor)

    Hmmm. Glad that worked for you. Unfortunately, I changed the value for db_version, went through the upgrade pages, and still have no widget settings access.

    Ahhhhh bug bug bug!

    Thread Starter wkor

    (@wkor)

    I just tried all those and reviewed the 3.0 Issues, Problems, Resolutions Thread. Still no change; I continue to lack access to the widget settings, oi!

    I’m guessing this might point to some kind of file permissions problem. FWIW, I’m hosting with NearlyFreeSpeech.NET. Just now, I ran into this guide to get WordPress playing nicely on NFSN and followed it. Now it appears it is playing a bit more nicely (non-manual plugin upgrades, finally!), but I’m still getting the nonsufficient permissions message trying to access the widgets page. And no link in the menu, either.

    Thread Starter wkor

    (@wkor)

    It appears the thread [resolved] Plugin called via shortcode appears at the wrong place on post found a solution to the problem.

    I’m not quite sure how to implement that into my code, though. Any help?

    Thread Starter wkor

    (@wkor)

    Hmm, thanks. I just found the Recently Updated Posts plugin; maybe I can do something with that.

    Thread Starter wkor

    (@wkor)

    Shame on me for not catching it earlier. That means: I found the problem. It was that <?php wp_title('');?> bit. It wasn’t in the control structure, so I fixed that. Current code is:

    <title><?php bloginfo('name'); ?>
    <?php
    if (is_home()) {}
    elseif(is_archive() && function_exists('theme_get_archive_date'))
    {echo ': ', theme_get_archive_date();}
    else {
    echo ":";
    wp_title('');
    } ?>
    </title>

    Thanks much in any case.

    Thread Starter wkor

    (@wkor)

    Sorry, I should have done that. Here ’tis.

    <title><?php bloginfo('name'); ?>
    <?php
    if (is_home()) {}
    elseif(is_archive() && function_exists('theme_get_archive_date'))
    {echo ': ', theme_get_archive_date();}
    else {
    echo ":"; } ?>
    <?php wp_title('');?></title>

    References esmi’s function theme_get_archive_date.

    Thread Starter wkor

    (@wkor)

    Alright, I applied some of your code, but unfortunately I’m ending up with double titles, like this: Blog Name: October 2009 2009 October. Do you know how I can override the default title (2009 October)?

    Thread Starter wkor

    (@wkor)

    Ah, many thanks. I’ll test it out and report back. So get_the_time will work for getting the info of a date based archive page?

    Thread Starter wkor

    (@wkor)

    Well, like I said, I have ‘Blog Name: 2009 October’. I’d rather have ‘Blog Name October 2009’. Best of all would be to know what function or whatnot I’m supposed to be messing with to change the thing.

    Thread Starter wkor

    (@wkor)

    Alright. Are there any less simple and flexible ways? I just want to fix it and I’m willing to get my hands dirty; don’t really want to install A-I-O-SEO just for that.

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