-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
When a product without an image matches RSS feed filter criteria and PHP's display_errors
option is set to On
, the RSS feed will also output warning:
Warning: Trying to access array offset on value of type bool in /path/to/wordpress/wp-content/plugins/smaily-for-woocommerce/inc/Base/DataHandler.php on line 105
Steps for reproducing
- Enable
display_errors = On
for your WordPress installation. - Go to your WordPress site admin.
- Create a product without an image.
- Go to Smaily for WooCommerce settings and create an RSS feed URL returning created product.
- Navigate to the RSS feed URL.
Expected behavior
Missing product image is handled gracefully.
Actual behavior
A warning is displayed to the end user, breaking the RSS feed.
Versions
WordPress 6.6.1
WooCommerce 9.1.4
Smaily for WooCommerce 1.11.2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working