Automatic redirect on post slug change from “quick edit” fails with PHP Error

#97158
  • Resolved Gifford Nowland
    Rank Math free

    The Rank Math Redirection Manager automatic creation of redirect when changing post slug from “quick edit” fails with PHP Error. The redirect is not created (despite the notification saying such). The errors are as follows:

    [28-Oct-2020 05:42:24 UTC] PHP Notice Undefined property: RankMath\Redirections\Redirection::$id in /app/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-redirection.php on line 139
    
    [28-Oct-2020 05:42:24 UTC] WordPress database error Column 'redirection_id' cannot be null for query INSERT INTO `wp_rank_math_redirections_cache` (`from_url`, `redirection_id`, `object_id`, `object_type`, `is_redirected`) VALUES ('/contact-us/', NULL, 795, 'post', 1) made by do_action('wp_ajax_inline-save'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ajax_inline_save, edit_post, wp_update_post, wp_insert_post, do_action('post_updated'), WP_Hook->do_action, WP_Hook->apply_filters, RankMath\Redirections\Watcher->handle_post_update, RankMath\Redirections\Watcher->create_redirection, RankMath\Redirections\Cache::add, MyThemeShop\Database\Query_Builder->insert, QM_DB->query
    
    [28-Oct-2020 05:42:24 UTC] PHP Notice Undefined property: RankMath\Redirections\Redirection::$id in /app/wp-content/plugins/seo-by-rank-math/includes/modules/redirections/class-redirection.php on line 139
    • This topic was modified 3 years, 11 months ago by Gifford Nowland.
    • This topic was modified 3 years, 10 months ago by Gifford Nowland.
Viewing 1 replies (of 1 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Sorry for the issue you are facing.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), we would need to determine if it is a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Automatic redirect on post slug change from “quick edit” fails with PHP Error’ is closed to new replies.