• I can’t say how long this has been an issue, but I recently discovered the Memberships checkout flow was delivering 500 server errors on every purchase. I tested SSL settings and older and non-pro Membership 2 versions. Same issue with all versions. I pinned it down to a conflict with Yoast SEO. Thought you might like to know.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @pemitchell

    Hope you are doing well!

    We are familiar with the conflict with Yoast plugin. This issue was reported to the Yoast developers as well. Our developers working currently on a workaround. Once the fix will be available we will update this thread.

    Have a nice day and take care!

    Kind regards,
    Nastia

    Thread Starter pemitchell

    (@pemitchell)

    Thank you!

    This may or may not be the same problem but I get an infinite loop with version 5.8 of yoast when you click the “Complete Membership” button. This isn’t really a fix more of a hack but I changed one line in yoast and it seems to avoid the problem.

    --- admin/links/class-link-watcher.php.bak
    +++ admin/links/class-link-watcher.php
    @@ -91,7 +91,7 @@
                    $post_type        = get_post_type( $post_id );
                    $post_type_object = get_post_type_object( $post_type );
    
    -               return ( $post_type_object !== null && $post_type_object->public === true );
    +               return ( $post_type_object !== null && $post_type_object->public === true && substr($post_type, 0, 3) !== 'ms_' );
            }
    
            /**
    Thread Starter pemitchell

    (@pemitchell)

    I gave that a try, however I couldn’t make it work. ??

    • This reply was modified 7 years, 3 months ago by pemitchell.

    It’s a standard unified diff patch file, but in this case it’s just a one line change so to do it manually, it’s saying change line 94 in wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php from the one that starts with a “-” to the one that starts with a “+”, not including the “+” sign, i.e. change line 94 to

    return ( $post_type_object !== null && $post_type_object->public === true && substr($post_type, 0, 3) !== 'ms_' );

    The line number assumes you’re on the same yoast version.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    This is forwarded to Yoast’s end and we’re still waiting for some update in their end.

    Cheers,
    Dimitris

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Membership 2 Pro conflict with Yoast’ is closed to new replies.