WordPress.org

Ready to get started?Download WordPress

Forums

Simple URLs
[resolved] Simple URLS Not Saving Redirect Link in WP 3.5.2 (4 posts)

  1. Victor Font
    Member
    Posted 1 year ago #

    Not sure what's going on or when it started. Simple URLS had been working perfectly until I when to use it today. The last time I used it was on May 29th and everything. Today I tried to create a redirect link and the link field will not save. The url title, permalink and slug are saved, but the redirect url does not.

    I've gone through the exercise of disabling plugins. Nothing I tried worked. I looked directly at the wp_post and wp_postmeta tables. The record is saved in wp_post, but the _surl_redirect and _surl_count metakeys and values are not being created. If I insert the keys and values directly into the table with SQL, I can edit them just fine in WordPress. Something is causing those keys not to be created. It does not appear to be another plugin. This is a multisite installation by the way.

    http://wordpress.org/extend/plugins/simple-urls/

  2. Victor Font
    Member
    Posted 1 year ago #

    As an FYI, this issue does not appear to be multisite related. The issue occurs on all of my sites, including the primary. I'm using version 0.9.4 of the plugin.

  3. Victor Font
    Member
    Posted 1 month ago #

    I found the problem! The meta_box_save function was failing at the following line of code:

    //	is the user allowed to edit the URL?
    		 if ( ! current_user_can( 'manage_links' ) || $post->post_type != 'surl' )
    			return;

    I am logged in as an administrator in a multisite environment. For some reason, the admin user does not have the manage_links capability.

  4. Victor Font
    Member
    Posted 1 month ago #

    The final solution is to make sure the Link Manager is turned on. I added the following to my theme's functions.php file:

    add_filter( 'pre_option_link_manager_enabled', '__return_true' );

    Turning this functionality back on solved the issue with Simple URLs.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic