דלג לתוכן דלג לסרגל צד

Open

Topic Tags: Compatibility

Overview of the issue

When using The Events Calendar with Event Tickets, you might experience a 404 error during the checkout payment, with the message "No route was found matching the URL and request method".

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Add the following code to your theme’s functions.php file :

    add_filter( 'rest_url', 'fix_rest_url_double_slash', 5, 4 );
    function fix_rest_url_double_slash( $url, $path, $blog_id, $scheme ) {
    // Replace multiple slashes with one, but keep https://
    return preg_replace( '#(?

השאר תגובה

אנא הישאר בנושא והיה מכבד כלפי אחרים. אם אתה זקוק לעזרה בנושאים שאינם קשורים לפוסט זה, השתמש בפורום התמיכה שלנו כדי להתחיל צ'אט או לשלוח כרטיס.

אתה יכול להשתמש בתגים אלה:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>