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 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | major | Version: | 6.6 |
Component: | Media | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Change History (15)
#3
@
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
#4
@
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
@
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
@
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
#10
@
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!
#11
@
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
@
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
#14
@
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
Trac ticket: https://core.trac.wordpress.org/ticket/61717
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