• Resolved webtechnz

    (@webtechnz)


    When annasta filters plugin is enabled product updates are causing a 405 server error to occur. Has anyone else experienced this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author annastaa

    (@annastaa)

    Hello Webtechnz,

    This is indeed the first time that we receive the 405 error report! Do you refer to the simple product update performed by clicking on the blue “Update” button of the product edit screen, or do you perhaps use some 3d party software to update the products? What theme do you use? I have test-driven the product update routine on the Oxygen theme, but it doesn’t seem to cause any issues.

    Our plugin is programmed to clear its cache on product updates, but this is being done via the native WooCommerce hooks, so it is rather strange that a 405 error would be thrown. Can you please check your error log, what is the exact error that gets recorded during the product update?

    Thread Starter webtechnz

    (@webtechnz)

    Hello! Thanks for replying. The weird thing is that nothing is showing in the logs at all when wp_debug is enabled. I did the usual disabling of all plugins, including oxygen and have found that saving / updating product works only if the annasta plugin is disabled. Looking at the server log files and found these, I wonder if this tells anything at all?

    [Thu Jul 11 02:36:27.301838 2024] [proxy_fcgi:error] [pid 24:tid 140203453662784] (70007)The timeout specified has expired: [client] AH01075: Error dispatching request to : (polling), referer: https://**/wp-admin/post.php?post=36510&action=edit

    [Thu Jul 11 02:42:19.893544 2024] [proxy_fcgi:error] [pid 24:tid 140203100468800] (70007)The timeout specified has expired: [client] AH01075: Error dispatching request to : (polling), referer: https://**/wp-admin/post.php?post=36510&action=edit

    [Thu Jul 11 02:47:44.497628 2024] [proxy_fcgi:error] [pid 913:tid 140203335333440] (70007)The timeout specified has expired: [client] AH01075: Error dispatching request to : (polling), referer: https://kruzinkustoms.com/wp-admin/post.php?post=36510&action=edit

    [Thu Jul 11 02:52:47.293601 2024] [proxy_fcgi:error] [pid 913:tid 140203445261888] (70007)The timeout specified has expired: [client] AH01075: Error dispatching request to : (polling), referer: https://**/wp-admin/post.php?post=36510&action=edit

    Plugin Author annastaa

    (@annastaa)

    Thank you for the logs Webtechnz,

    Unfortunately, as you mention yourself, they don’t clear up the picture at all! This could be an additional security feature of your server, perhaps the database access isn’t granted on certain kinds of calls. If you wish to try a quick fix, to confirm that these are indeed the clear cache calls, you can add the following code in the functions.php of your (child) theme, to see if this stops the 405 errors:

    if( class_exists( 'A_W_F' ) && ! empty( A_W_F::$admin ) ) {
    remove_action( 'woocommerce_update_product', array( A_W_F::$admin, 'on_product_update' ) );
    remove_action( 'before_delete_post', array( A_W_F::$admin, 'on_product_deletion') );
    remove_action( 'wp_trash_post', array( A_W_F::$admin, 'on_product_trashing') );
    remove_action( 'untrashed_post', array( A_W_F::$admin, 'on_product_untrashing') );
    }
    Plugin Author annastaa

    (@annastaa)

    Hello Webtechnz,

    It’s been some time since we last heard from you, so I will go ahead and mark this inactive topic as resolved. Please create a new thread if you have any further questions!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.