Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support alexisbienayme

    (@alexisbienayme)

    Hi @hugod,

    Thanks for your mail.

    Could you please tell us how we replicate the issue ? Would you mind sharing a recording of the bug so I can escalate it to our technical team.

    Looking forward to hearing from you.

    Best Regards,

    Alexis

    Thread Starter hugod

    (@hugod)

    Hi @alexisbienayme,

    Any plugin filtering rewrite rules and processing them as strings (since that what it should be) will have an error raised.

    Plugin Support alexisbienayme

    (@alexisbienayme)

    Hi @hugod,

    Would it be possible to provide more details on this issue ? Could you please share the steps so we might be able to replicate the issue and identify this one ? Don’t hesitate to provide some examples if you need.

    Best Regards,

    Alexis

    After 5 months this serious problem is still present.
    The culprit function is sendinblue_woocommerce_rewrites() on line 144 of the woocommerce-sendinblue.php file (plugin version 3.0.6).

    As already mentioned, the plugin is adding an array to the rewrite rules values, which is expected to be an array of strings. So any plugin filtering rewrite rules and processing them as strings (since that what it should be) will have a fatal error raised.

    if you’re just adding rules and not manipulating existing rules or reordering, it would be better to use the core function add_rewrite_rule() instead of the “rewrite_rules_array” filter.

    However the function should be fixed like this to avoid any fatal error:

    function sendinblue_woocommerce_rewrites($wp_rules)
    {
        // wrong
        /* $wp_rules[] = array(
            "sendinblue-callback\$" => 'index.php?pagename=sendinblue-callback'
         );*/
         
        // right
        $wp_rules["sendinblue-callback\$"] = 'index.php?pagename=sendinblue-callback';
    
        return $wp_rules;
    }

    I hope that an update with the fix will be released as soon as possible!!!

    Plugin Support enzonewman

    (@enzosendinblue)

    @fburatti thank you for pointing out the issue and the detailed description. We’re going to have a look at this topic.
    As for now, we cannot tell you when a fix is going to be released.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug introduced in rewrite rules’ is closed to new replies.