Memberships conflict with Yoast SEO

When Yoast SEO is enabled with default settings users can’t pay for membership, can’t create new accounts.

  • Paul Kevin
    • Neo

    Hello Jonathan ,

    Hope you are well today. From the logs I could see there is an issue with sending the email. Kindly replace the attached file in the directory wp-content/plugins/membership/app/model . The other error PHP Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method MS_Rule_Shortcode_Model::debug_protect_content_shortcode() I could not replicate, kindly advice the PHP version you are using and the application server (Apache or Nginx)

    Warm Regards

    Paul Kevin

  • Turnpiece
    • Design Lord, Child of Thor

    Hello. I’ve got a similar problem but replacing the model file as suggested by Paul has no effect.

    The cause in Yoast seems to be in the Link_Watcher class, where it hooks into the save_post action that gets triggered when Membership tries to save the invoice – and I don’t need invoices as all memberships will be free so I wonder if there’s a way of disabling that functionality.

  • Paul Kevin
    • Neo

    Hello Turnpiece,

    Hope you are well today and thank you for the feedback. I checked the Yoast issues list and found this also affects other plugins for example https://github.com/Yoast/wordpress-seo/issues/8177 and https://github.com/Yoast/wordpress-seo/issues/8101 .

    As for disabling membership invoices, at the moment this is not possible in Membership as the invoices are key in checking if a membership has been paid. Though it makes sense for free memberships to not have invoices. I will however look at integrating this as a setting to “turn off invoices for free memberships” under each membership, in future releases.

    Warm Regards

    Paul Kevin