WPIntell

Source evidence

PHP8.1 Fatal Error with @unlink

YITH WooCommerce Featured Video · support · 2022-12-05T20:52:00+00:00

complaintsentiment
highseverity
1.0relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 26 rows with source links

15.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ldaughenbaugh unresolved
line 117 of functions.yith-wc-featured-audio-video.php contains an error control operator for “@unlink”, however with PHP 8+ now, certain error types are no longer suppressed, thus the application is completely stopped. // If error storing temporarily, unlink. if ( is_wp_error( $tmp ) ) { @unlink( $file_array['tmp_name'] ); $file_array['tmp_name'] = ''; } The error I’m getting within my application after updating from PHP7.4 to PHP8.1 is: <b>Fatal error</b>: Uncaught TypeError: unlink(): Argument #1 ($filename) must be of type string, WP_Error given in /path/to/…/plugins/yith-woocommerce-featured-video/includes/functions.yith-wc-featured-audio-video.php:117 Is this on your radar to address now that PHP7.4 is deprecated and sites should be looking to run on PHP8+? Please let me know if you need any further info on this item. Thank you. This topic was modified 3 years, 5 months ago by ldaughenbaugh . Hi @ldaughenbaugh Thanks for your feedback, we ill check about this issue. However our plugins not support php 8.1 for now. @salvostrano Still broken – even locally on PHP 8.0. Great stuff!

Comments

2 shown
Salvatore Strano 2022-12-13T08:36:00+00:00

Hi @ldaughenbaugh Thanks for your feedback, we ill check about this issue. However our plugins not support php 8.1 for now.

Red Deer Web Design 2023-01-20T22:17:00+00:00

@salvostrano Still broken – even locally on PHP 8.0. Great stuff!