humanmade / humanmade/tachyon-plugin

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

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
86
Forks
16
PR merge metrics
No merged PRs in 30d

Description

`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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.