[wp-trac] [WordPress Trac] #51667: php notices in logs
WordPress Trac
noreply at wordpress.org
Mon Nov 2 23:12:54 UTC 2020
#51667: php notices in logs
--------------------------+------------------------------
Reporter: lsamins | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.5.1
Severity: minor | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by lsamins):
I did a search for image_get_intermediate_size on my plugin folder and
found class-wc-regnerate-images.php and class.photon.php reference that
keyword. The first one is a woo commerce include file. the second one is a
file related to the jetpack plugin.
I disabled the jet pack plugin and continue to see the same errors in my
log file. I cant disable woocommerce without taking my store down.
When I set up some logging for the imagedata variable, the array had some
empty items at the end. I believe this is causing $data to be empty and
not an array, thus the notice. It doesn't seem to have any negative impact
on the site itself that I can see. Adding a check to see if $data is an
array causes the errors to stop. But I'm unable to pinpoint if the
erroneous data is due to a plugin or maybe even a meta data issue of some
sort in the database.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51667#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list