• motor4ik

    (@motor4ik)


    I get Fatal error: Maximum execution time when searching for Bundle products. I have the latest versions of plugins installed, everything is updated including WordPress and WooCommerce.

    [23-Oct-2025 09:22:26 UTC] PHP Fatal error:  Maximum execution time of 120 seconds exceeded in /home/rutashik/public_html/wp-content/plugins/advanced-woo-search/includes/class-aws-search.php on line 866
    [23-Oct-2025 09:34:52 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /home/rutashik/public_html/wp-content/plugins/advanced-woo-search/includes/class-aws-search.php on line 862
    [23-Oct-2025 09:46:55 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /home/rutashik/public_html/wp-content/plugins/advanced-woo-search/includes/class-aws-search.php on line 862
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter motor4ik

    (@motor4ik)

    The problem only occurs when you click “Review all results” in the search results, i.e. on the search results page. Standard search does not cause such errors.

    Thread Starter motor4ik

    (@motor4ik)

    Found a solution. The problem was that there was infinite recursion (looped function call) — PHP called the functions many times until it ran out of stack memory.
    Namely:

    The loop looks like this:

    AWS_Search->get_products() calls wc_get_product()

    which creates a WC_Product_Bundle

    which during get_bundled_items() → calls WP_Query → which again runs the search via AWS_Search

    This is a conflict between three plugins:

    • Advanced Woo Search
    • WooCommerce Product Bundles
    • WPML / WooCommerce Multilingual

    How to solve

    Go to file /wp-content/plugins/advanced-woo-search/includes/class-aws-search.php
    Search method
     public function get_products( $posts_ids ) {

    and insert after {

                // --- FIX: prevent infinite recursion with WPML + Product Bundles ---
    static $aws_recursion_guard = false;
    if ( $aws_recursion_guard ) {
    return array(); // stop recursion
    }
    $aws_recursion_guard = true;
    try {

    after return $products_array; insert

                } finally {
    $aws_recursion_guard = false;
    }

    But this solution will disappear after the plugin update. I hope the developers will pay attention to this problem and fix it themselves in the next updates.

    Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    That is an interesting issue and thanks for researching it and providing a solution for fixing.

    Please tell me – are you talking about this bundle plugin – https://woocommerce.com/products/product-bundles/ ?

    Also please tell me its version number as well as the version number for the WPML plugin that you have – I want to test that by myself.

    Thread Starter motor4ik

    (@motor4ik)

    So this is this plugin version 8.5.1. The latest WPML version.
    Also installed:
    WPML Media Translation
    WPML Multilingual & Multicurrency for WooCommerce
    WPML Multilingual CMS
    WPML Multilingual for CF7
    WPML SEO
    WPML String Translation

    All latest version.

    Thread Starter motor4ik

    (@motor4ik)

    And I also have a free version of AWS, maybe there is no such problem with Pro.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal error: Maximum execution time when Bundle products present’ is closed to new replies.