I found out, that round about 200.000 calls to this websites crashes the server again and again. Deactivating WooCommerce stops it and the website is running fine.
The log files shows thousands of calls to Woocommerce CSS files like this
2001:8d8:500:: – – [23/Jan/2024:12:22:36 +0100] “GET /wp-content/plugins/woocommerce/assets/css/select2.css HTTP/1.1” 200 14552 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:36 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/customer-account.css HTTP/1.1” 200 1045 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:36 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/product-details.css HTTP/1.1” 200 899 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:36 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/active-filters.css HTTP/1.1” 200 10319 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/catalog-sorting.css HTTP/1.1” 200 489 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/customer-account.css HTTP/1.1” 200 1045 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/product-image-gallery.css HTTP/1.1” 200 617 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/product-rating.css HTTP/1.1” 200 426 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/css/prettyPhoto.css HTTP/1.1” 200 9234 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/order-confirmation-additional-information.css HTTP/1.1” 200 875 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/featured-category.css HTTP/1.1” 200 5135 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/single-product.css HTTP/1.1” 200 742 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/add-to-cart-form.css HTTP/1.1” 200 1041 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:37 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/packages-style.css HTTP/1.1” 200 52012 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:38 +0100] “GET /wp-content/uploads/fusion-scripts/08712f034f614d391b771cd69b918c89.min.js HTTP/1.1” 200 114371 konditorei-huebler.de “-” “WordPress/6.4.2; https://konditorei-huebler.de” “-“
82.165.83.0 – – [23/Jan/2024:12:22:38 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/featured-category.css HTTP/1.1” 200 5135 konditorei-huebler.de “-” “-” “-“
82.165.83.0 – – [23/Jan/2024:12:22:38 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/featured-product.css HTTP/1.1” 200 5551 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:38 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/product-template.css HTTP/1.1” 200 2031 konditorei-huebler.de “-” “-” “-“
2001:8d8:500:: – – [23/Jan/2024:12:22:38 +0100] “GET /wp-content/plugins/woocommerce/assets/client/blocks/product-rating-stars.css HTTP/1.1” 200 3036 konditorei-huebler.de “-” “-“
Does anybody have an idea, what the problem is?
Thank you very much
]]>//after activating the plugin
<html><body></body></html>{JSON}
//after deactivating the plugin
{JSON}
This behaviour pretty much kills every REST API Call because you always get the error “Unexpected Token ‘<‘” since REST expects JSON.
Any idea how to avoid this?
]]>]]>add_action(‘woocommerce_after_shop_loop_item_title’, ‘display_artist_link_grid’, 9 );
function display_artist_link_grid() {
$artist_link = get_field(‘artist_link’);
if ($artist_link) {
$title = $artist_link[‘title’];
$url = $artist_link[‘url’];
echo ‘‘ . esc_html($title) . ‘‘;
}
}
how can I GET the image name, of a current image used in the active Scene ? also getting the scene id og the current scene ?.
and… last one what are the string, so that I can call a specific scene ?.
Explanation:
my thought was that in each scene, I want to look at which image name is displayed and whose image exists in the folder with old images. Then I want to take the current Scene id, and make a button that calls the same scene id in the other Item/tour IF the current imagename that are used, also are in the old image map . that way I can “easily” switch between new and old pictures, since I use the same names for the pictures.
This is just a very quick explanation of the thinking
original shortcode: [ipano id=”1″ sceneid=”abc123″]
get imagename.
If image (pic1.jpg) exists in old/images/ [
get scene id ]
ButtomToSceneId= “Sceneid”
and then i will call scene id i just got.
the old images: [ipano id=”2″ sceneid=”ButtomToSceneId”]
if plugin has this option( Show only on certain posts / pages and Hide everywhere else )
can be so good.
tnx
]]>