Support » Plugin: Simple URLs » Simple URLS Not Saving Redirect Link in WP 3.5.2

  • Resolved Victor Font


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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' )

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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Simple URLS Not Saving Redirect Link in WP 3.5.2’ is closed to new replies.