WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Links (21 posts)

  1. Workshopshed
    Member
    Posted 1 year ago #

    The links options have disappeared from the admin menus and trying to visit the page directly /wp-admin/link-manager.php

    Reports the error:

    You do not have sufficient permissions to access this page.

    My user has the adminstrator role and could access links before upgrading from the to 3.5-RC1 (night of 21st Nov)

    Looking in the DB there is an option prefixwp_user_roles with a big long list of capabilities including "manage_links".

    My user also has usermeta data

    prefixwp_capabilities a:1:{s:13:"administrator";s:1:"1";}
    prefiwp_user_level 10

    All the other menus seem to be there.

    Points to note: my database prefix has been configured, my admin user has been renamed.

    I downloaded the "Capability Manager Enhanced" plugin to have a look at my roles. The administrator role has all the boxes ticked.

    I also tried creating a new admin user with a different name but the problem occurs for that user too

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    No problems with Links and RC1 here. Are you using Twenty Twelve with no active plugins?

  3. Workshopshed
    Member
    Posted 1 year ago #

    I wasn't but I am now.
    Problem persists.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Try re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress 3.5 RC1. Make sure that you delete the old copies of files & folder before uploading the new ones.

  5. ClaytonJames
    Member
    Posted 1 year ago #

    I've just managed to duplicate the symptom. I (automatically) upgraded from a test install of 3.4.2 to 3.5 RC1 using the WordPress Beta Tester plugin, and duplicated @Workshopshed's symptoms exactly.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    I simply can't replicate the problem. However, I did notice that my RC1 update today (using the WordPress Beta Tester plugin) took forever to download (I had to increase the max_execution_time in the server's php.ini file to get it to download successfully). That's why I'm wondering if the downloads are being corrupted or cut short and whether a manual re-upload might help.

  7. Workshopshed
    Member
    Posted 1 year ago #

    Apparently it's been intentionally removed.

    http://wordpress.org/support/topic/link-manager-in-35?replies=11
    http://core.trac.wordpress.org/ticket/21307

    There is a check in capabilities.php for " get_option( 'link_manager_enabled' ) " which is supposed to be correctly set for people who use links.

    I've installed the plugin which turns the functionality back on.

    http://wordpress.org/extend/plugins/link-manager/

    and it's now working again.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Uh? It's still there for me! Both on the menu and via /wp-admin/link-manager.php!

  9. Workshopshed
    Member
    Posted 1 year ago #

    You probably have the "link_manager_enabled" option set for your admin user, it's possible that it did not get set on my system for some strange reason.

  10. Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled.

    https://core.trac.wordpress.org/changeset/21501

  11. ClaytonJames
    Member
    Posted 1 year ago #


    "In WordPress 3.5, the Link Manager (which some use to build blogrolls) will be disabled by default. If you have links when you update, it'll still be there."

    The "blogroll" on my test site contained the 7 active default links, and the upgrade still turned it off. Is that going to be expected behavior?

    With all the time I spend burying my amateur nose in everything WordPress, I don't know how I missed this.

    mysite.com/wp-admin/options.php > link_manager_enabled = a big fat "0"

    I changed it back to "1", and it returned to it's previous state.

    Maybe at some point posts and pages can be pulled out of core so users can selectively activate those features with a plugin as well.

  12. Workshopshed
    Member
    Posted 1 year ago #

    Looking at that code example from Dominic I suspect the issue is because I was upgrading via the beta version hence the upgrade skips checking our links because the version is too high.

  13. ClaytonJames
    Member
    Posted 1 year ago #

    I duplicated the issue while upgrading directly from the stable version of 3.4.2 to 3.5 RC1.

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    Flagging this up for core dev attention.

  15. Sergey Biryukov
    WordPress Dev
    Posted 1 year ago #

    "In WordPress 3.5, the Link Manager (which some use to build blogrolls) will be disabled by default. If you have links when you update, it'll still be there."

    The "blogroll" on my test site contained the 7 active default links, and the upgrade still turned it off. Is that going to be expected behavior?

    Yes. As mentioned in the Trac ticket linked above, default links are removed if those are the only ones you have.

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    My install only has the default links, yet I retained an active Link Manager

  17. Workshopshed
    Member
    Posted 1 year ago #

    Checking my backups from the previous day my version number was 21707, so that's why my setting was incorrectly set.

  18. Andrew Nacin
    Lead Developer
    Posted 1 year ago #

    As mentioned in the Trac ticket linked above, default links are removed if those are the only ones you have.

    That wasn't actually done in 3.5.

    Here's how it works:
    * New installs don't have links enabled.
    * On upgrade (this one or any future one), if you have no links at all, then links become disabled again.

    If you wish to re-enable them, you can use the Link Manager plugin. Or, yes, change the link_manager_enabled option from 0 to 1.

    So, my question for @Workshopshed is, did you have any links there before you updated to 3.5 RC1? If so, then we have a problem. If not, then that explains everything.

  19. ClaytonJames
    Member
    Posted 1 year ago #

    @Andrew Nacin

    I'm not sure if any of this information is useful or not, but I've done three things to experiment with this, this evening.

    1) I performed a fresh, clean install of 3.5 RC1, and the link manager was not available by default, as would be expected behavior.

    2) I performed a fresh, clean install of 3.4.2, and placed a blogroll widget in the sidebar of Twenty Eleven. The widget contained only the 7 default links one would expect to see there. I then upgraded to 3.5 RC1 using the WordPress Beta Tester plugin, and after the upgrade, the link manager was disabled.

    3) I performed another fresh, clean install of 3.4.2 and again placed a blogroll widget in the sidebar of Twenty Eleven. However this time, I added an additional link of my own. Again, I upgraded to 3.5 RC1 using the WordPress Beta Tester plugin, and after the upgrade, the link manager was once again disabled.

  20. Sergey Biryukov
    WordPress Dev
    Posted 1 year ago #

    3) I performed another fresh, clean install of 3.4.2 and again placed a blogroll widget in the sidebar of Twenty Eleven. However this time, I added an additional link of my own. Again, I upgraded to 3.5 RC1 using the WordPress Beta Tester plugin, and after the upgrade, the link manager was once again disabled.

    Confirmed, thanks for the report.

    Created a ticket: http://core.trac.wordpress.org/ticket/22626.

  21. Andrew Nacin
    Lead Developer
    Posted 1 year ago #

    Thanks, this is now fixed.

Topic Closed

This topic has been closed to new replies.

About this Topic