Make WordPress Core

Opened 7 weeks ago

Last modified 3 weeks ago

#61717 new defect (bug)

Warning: Trying to access array offset on value of type bool in /sites/site.com/wp-includes/media.php on line 795 801

Reported by: vladte4's profile vladte4 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.6
Component: Media Keywords: has-patch
Focuses: coding-standards Cc:

Description

Hello! Maybe someone knows what the problem is? Photo files avif.
https://i.ibb.co/gTFqdW5/photo-2024-07-20-16-12-13.jpg
https://i.ibb.co/KqsDJ7N/2024-07-20-161310.png
https://i.ibb.co/RTLc6q2/f5n91e6t.png

It seems to me that the error began to appear after updating the WordPress. I tried regenerate thumbnails but it didn't work for me. I disabled all plugins and left only WooCommerce, WPBakery, Woodmart Core.

Change History (15)

#1 @jrf
7 weeks ago

  • Focuses performance php-compatibility removed

#2 @vladte4
7 weeks ago

https://i.ibb.co/pwnPLDW/2024-07-21-040023.png

a little more information. I installed ubuntu 22.04 on a new server, but the error remained, so I think it's in WordPress 6.6

#3 @vladte4
7 weeks ago

The photo had a size of 1920x1920 . Everything is fine with 800x800 resolution. Photos with the webp extension also break. Photos in 790x796 wepb resolution are also broken. JPG also broken. For me, only photos with a size of 800x800 started working properly. The problem remained on php 8.3

Last edited 7 weeks ago by vladte4 (previous) (diff)

#4 @vladte4
7 weeks ago

  • Keywords needs-patch added

I can provide access to the server so that you can view the error, I have a test site

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


7 weeks ago

#6 @antpb
7 weeks ago

  • Keywords reporter-feedback added

We've seen recent reports similar to this issue (example: #59573) It might be worth adding a bool check to be safe here and avoid future reports. It would be nice to understand more what value is being passed through here to better understand why we are making the change.

@vladte4 thanks for this report and all the info! One thing we are still lacking to diagnose the issue is the call stack that is resulting in the error. Is there any way that you can share with us the calls that are triggering the warning? Knowing if it is a theme or plugin, a certain function, or any other information about where its coming from would be very helpful. I'd like to better understand how a bool is getting to this point in the code so we can bypass this logic in the case of a bool.

#7 @vladte4
7 weeks ago

The error was in the WPBakery plugin, you need to update to version 7.8 . After the update, the error seems to have disappeared and everything is fine

#8 @vladte4
7 weeks ago

Hello! The error remains, the update did not help :(

#9 @niravsherasiya7707
7 weeks ago

@vladte4 Could you please mention the steps to recreate it?

#10 @vladte4
7 weeks ago

http://31.222.235.199:8002/
test
test123!

Applications/File manager/home/vladte02/sites/melldown.com

melldown.com/wp-admin
test
test123!

https://melldown.com/product/123/ - Error

Version 0, edited 7 weeks ago by vladte4 (next)

#11 @vladte4
7 weeks ago

@niravsherasiya7707 @antpb Here are the data to the server and the website. The error is visible in the product and on the main page. The site has just started to be developed, so you can install plugins for diagnostics and more

#12 @vladte4
6 weeks ago

If anyone has time, can you review it? I disabled all plugins and activated the standard theme, but the error remains. I left only WooCommerce. Also, the error is sometimes displayed in the panel when adding a photo to a product or updating a product. Exactly Avif file

#13 @vladte4
6 weeks ago

  • Keywords reporter-feedback removed

#14 @vladte4
6 weeks ago

I disabled the error. With this code. I don't know when the problem will be solved, this post is no longer viewed, so for now

ini_set('display_errors', 'Off'); 
ini_set('error_reporting', E_ALL);

This ticket was mentioned in PR #7221 on WordPress/wordpress-develop by @narenin.


3 weeks ago
#15

  • Keywords has-patch added; needs-patch removed
Note: See TracTickets for help on using tickets.