Skip to content

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

@mikelittle

Description

@mikelittle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugExisting functionality isn't behaving as expected

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions