tachyon-plugin icon indicating copy to clipboard operation
tachyon-plugin copied to clipboard

PHP Warning "Trying to access array offset on value of type bool"

Open mikelittle opened this issue 2 years ago • 0 comments

Trying to access array offset on value of type bool in tachyon-plugin/inc/class-tachyon.php line 653

Some more relevant information about this from a customer report:

The first comes from the Tachyon plugin: PHP Warning: Trying to access array offset on value of type bool in /usr/src/app/vendor/humanmade/tachyon-plugin/inc/class-tachyon.php on line 635

There is an seo meta builder which fires off for post_type = ‘attachment’ on wp_insert_post , when an attachment is created at this point, critical attachment metadata is not present, attachment meta data is generated by wp_update_attachment_metadata after wp_insert_post this leads to the warnings in tachyon when yoast tries to get an image url.

I updated the title as this is not PHP8.2 specific.

mikelittle avatar Jul 18 '23 10:07 mikelittle