• Resolved rmang

    (@rmang)


    With the latest WooCommerce (and even 8.4.0), we are seeing page requests triggering an infinite loop (or a very long running loop) where PHP is calling css files from the website over and over, causing massive requests, and not allowing a php-fpm child to end, which ends up using all the resources:

    216.38.11.131 - - [31/Jan/2024:13:59:28 -0500] "GET /wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:28 -0500] "GET /wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:28 -0500] "GET /wp-content/plugins/woocommerce/assets/css/select2.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:28 -0500] "GET /wp-content/plugins/woocommerce/assets/css/select2.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:28 -0500] "GET /wp-content/plugins/woocommerce/assets/css/prettyPhoto.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:28 -0500] "GET /wp-content/plugins/woocommerce/assets/css/prettyPhoto.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:29 -0500] "GET /wp-content/uploads/fusion-scripts/eff8cda7de759ee20af2738a80118f28.min.js HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:27 -0500] "GET /category/tapasmezze/ HTTP/1.1" 200 16384 "-" "WP Rocket/Preload"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/build/index.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/build/index.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/photoswipe/photoswipe.min.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/photoswipe/photoswipe.min.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/select2.css HTTP/1.0" 403 199 "-" "-"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/select2.css HTTP/1.1" 403 199 "-" "WordPress/6.4.3; https://XXXX"
    216.38.11.131 - - [31/Jan/2024:13:59:30 -0500] "GET /wp-content/plugins/woocommerce/assets/css/prettyPhoto.css HTTP/1.0" 403 199 "-" "-"

    Seems to be a recent issue. We did disable the new product attributes option, but that did not help. Not sure if this is some type of plugin issue that is triggering Woo to call these files over and over. If we disable Woo, the problem stops right away. List of modules:

    49 installed plugins:
    A activecampaign-subscription-forms 8.1.14
    A activecampaign-for-woocommerce 2.5.5
    A add-from-server 3.4.5
    A advanced-coupons-for-woocommerce-free 4.5.9.2
    A advanced-coupons-for-woocommerce 3.5.8.1
    A ahrefs-seo 0.10.2
    A all-in-one-favicon 4.8
    A fusion-builder 3.11.4
    A fusion-core 5.11.4
    A powerpress 11.4.5
    A broken-link-checker 2.2.4
    A classic-widgets 0.3
    A duplicate-menu 0.2.2
    A duplicate-page 4.5.3
    A easyconnect_auth 2.0
    A duracelltomi-google-tag-manager 1.19.1
    A intercom 2.6.5
    A jetpack 13.0
    I nitropack 1.11.0
    I pinterest-for-woocommerce 1.3.20
    A pixelyoursite-pinterest 5.3.2
    A pixelyoursite-pro 9.12.0.1
    A redirection 5.4.2
    A rename-wp-login 2.6.0
    A scripts-n-styles 3.5.8
    A simple-user-avatar 4.3
    A social-warfare 4.4.5.1
    A social-warfare-pro 4.3.0
    A sucuri-scanner 1.8.41
    UA team-showcase 2.2.4
    I updraftplus 1.23.16
    UA woocommerce 8.4.0
    A woo-gutenberg-products-block 11.7.0
    A woothemes-updater 1.7.2
    I woocommerce-legacy-rest-api 1.0.1
    A woocommerce-paypal-payments 2.5.1
    A woocommerce-services 2.4.2
    A woocommerce-gateway-stripe 7.9.1
    A woocommerce-zapier 2.10.0
    A woocommerce-subscriptions 5.9.1
    A wp-add-mime-types 3.1.1
    A wp-recipe-maker 9.1.2
    A wp-recipe-maker-premium 9.1.0
    A wp-rocket 3.15.8.1
    A wp-rocket-compat-wc-cart-fragments
    A wp-rollback 2.0.6
    A wordpress-seo 21.9.1
    A zapier 1.0.4
    D advanced-cache.php Legend: A = Active, I = Inactive, D = Drop-In, U = Update Available

    Standard LAMP server, MySQL 5.7, php 7.4, Apache 2.4.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there @rmang, thank you for sharing a detailed description on the issue you are facing.

    Just to help troubleshoot the issue further, could you try (on a staging site) switching to a default theme like Storefront and only have WooCommerce activated, then try checking if the issue persists? If it doesn’t try activating your plugins one at a time and checking on the issue.

    Let us know how it goes.

    Following this – I am having the same issue. See also https://github.com/woocommerce/woocommerce/issues/44093

    The website calls the same .css files – prettyPhoto.css for example – several times, once every minute:

    01/Feb/2024:15:15:07
    01/Feb/2024:15:14:09
    01/Feb/2024:15:13:57

    For comparison: I set up a subdomain with a clean installation of WordPress and the same theme (Avada). Installed WooCommerce 8.4.0 and imported the products from my website store. I did not install other plugins (like The Events Calendar) on that website. That website seems to be performing well, and is not repeating calls to WooCommerce CSS files in its activity log.

    • This reply was modified 9 months, 3 weeks ago by madbirdesign.

    Hi @madbirdesign2,

    Thank you for contacting WooCommerce support. Since all websites are built differently and run in different environments.
    Therefore, as per our Support Policy, I will suggest you create a new topic so we can assist you separately.

    I appreciate your understanding. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce stuck in loop calling CSS over and over’ is closed to new replies.