• Sometime Elementor widget (like an Testimonials Slider where peoples pictures are optionnals) or other things send an empty string ” to image_downsize function of WP Document Revision, causing a Fatal Error :

    [06-May-2026 10:17:30 UTC] PHP Fatal error:  Uncaught TypeError: WP_Document_Revisions::image_downsize(): Argument #2 ($id) must be of type int, string given, called in /home/www/wp-includes/class-wp-hook.php on line 341 and defined in /home/www/wp-content/plugins/wp-document-revisions/includes/trait-wp-document-revisions-file-handler.php:1185

    Maybe the expected int parameter is a bit too strict. I suggest to test if $id is int after for avoiding this error source.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.