PHP Warning: Attempt to read property
-
Not long after upgrading to PHP 8.1 (from 7.4) I noticed a pair of recurring lines in public_html/error_log. They’ve only recurred about 10 times so far but I thought I’d mention it here in case it’s helpful.
We’re on the current WordPress, Astra, ELementor, and Elementor Header & Footer Builder. I’m only surmising that it’s an Astra problem since it’s the common denominator, but it could be Elementor.
Right now I don’t actually know under what conditions they trigger or what the repercussions are, if any.
`[24-Nov-2022 12:37:17 UTC] PHP Warning: Attempt to read property “post_type” on null in /home/site/public_html/wp-content/plugins/astra-addon/classes/modules/target-rule/class-astra-target-rules-fields.php on line 1375
[24-Nov-2022 12:37:17 UTC] PHP Warning: Attempt to read property “ID” on null in /home/site/public_html/wp-content/plugins/astra-addon/classes/modules/target-rule/class-astra-target-rules-fields.php on line 1376[24-Nov-2022 12:37:17 UTC] PHP Warning: Attempt to read property “post_type” on null in /home/site/public_html/wp-content/plugins/header-footer-elementor/inc/lib/target-rule/class-astra-target-rules-fields.php on line 1324
[24-Nov-2022 12:37:17 UTC] PHP Warning: Attempt to read property “ID” on null in /home/site/public_html/wp-content/plugins/header-footer-elementor/inc/lib/target-rule/class-astra-target-rules-fields.php on line 1325`
- The topic ‘PHP Warning: Attempt to read property’ is closed to new replies.