MrCultivator
Forum Replies Created
-
Great work! That appears to be working perfectly. Well done!
I’ve noticed that SOME images are being served through CloudFlare mind… so it might be partially my php code’s fault…
This works:<img src="<?php echo the_field( 'square_logo', $term ); ?>" alt="<?php echo $term->name; ?>" width="60" height="60">
This doesn’t:
$catimage = get_field( 'square_logo', $term ); <img src="<?php echo($catimage)?>" alt="Buy <?php echo $page_title;?>" width="60px" height="60px">
The critical error has gone, but now it’s serving Array instead of the image URL.
I deactivated the SVG Support plugin and still got the critical error:
[04-May-2023 23:34:24 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Regenerate_Images::maybe_resize_image(), 3 passed in /home/customer/www/420.deals/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 4 expected in /home/customer/www/420.deals/public_html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php:201 Stack trace: #0 /home/customer/www/420.deals/public_html/wp-includes/class-wp-hook.php(308): WC_Regenerate_Images::maybe_resize_image(Array, 22972, '') #1 /home/customer/www/420.deals/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/420.deals/public_html/wp-content/plugins/cf-images/app/integrations/class-acf.php(51): apply_filters('wp_get_attachme...', Array, 22972, '') #3 /home/customer/www/420.deals/public_html/wp-includes/class-wp-hook.php(308): CF_Images\App\Integrations\ACF->image_field_type_url('https://www.420...', 22972) #4 /home/customer/www/420.deals/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(' in /home/customer/www/420.deals/public_html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 201
- This reply was modified 1 year, 10 months ago by MrCultivator.
[04-May-2023 23:25:02 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function bodhi_svgs_dimension_fallback(), 3 passed in /home/customer/www/420.deals/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 4 expected in /home/customer/www/420.deals/public_html/wp-content/plugins/svg-support/functions/attachment.php:311
Seems to be conflict with SVG Support plugin…I’ll look at my logs now. One moment.
Unfortunately it caused a critical error on the site. I’ve had to deactivate it.
Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathApologies – You can have FTP access if needs be!
Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathThe problem is, as I mentioned, it’s an old version, and it has been quite heavily customized by myself… So I can’t really provide the theme files for you..
But if you could log into my site and take a look that’d be great… Let me know and I’ll shoot you a message!
Really appreciated!Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathIs there any kind of WordPress function I can use to get around this? Any plugin customization?
Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathIt’s an old version of: https://www.premiumpress.com/wordpress-coupon-theme/
Pretty sure the theme did it. So basically ever since I’ve used the theme, all images have been stored in that single directory.Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathIt appears the theme I am using has added options to the Settings/Media section in admin:
Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathThe images are present on CloudFlare and they’re not corrupted as far as I can see, but I’m unsure why the images dimensions are displayed the way they are…
No matter whether I select “Keep Media Library Structure” or not, CloudFlare isn’t receiving the correct image paths, as explained before.
I’m kind of lost with it, hit a brick wall.Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Image URL PathAny tips for fixing this?
https://www.420.deals/cali-crusher/
All brand logo images on this page are using ACF taxonomy images as variables:$catimage = get_field( ‘square_logo’, $term );
$logoimage = get_field(‘logo_image’, $term);
Like the following:
<img src=”<?php echo($catimage)?>” alt=”Buy <?php echo $page_title;?>” width=”60px” height=”60px”>
And despite these images being uploaded to CloudFlare, they’re not being served at all on any of the pages using this template…- This reply was modified 1 year, 10 months ago by MrCultivator.