• bjf2000

    (@bjf2000)


    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`

Viewing 3 replies - 16 through 18 (of 18 total)
  • Hi @bjf2000,

    Sorry for not to be clear. Yes, since this plugin rely on Elementor, you will need to keep Elementor active too.

    Please let us know how you go.

    Kind regards,
    Herman ??

    Thread Starter bjf2000

    (@bjf2000)

    Oh, I see that you’re asking to see what happens when all plugins but the Elementors are disabled. I probably can’t get away with doing that on the live site.

    If we’re thinking that this was a problem with Elementor and Astra, as opposed to some other problem affecting both, wouldn’t there be something in the Astra release notes in recent months to indicate that (given that the Astra errors no longer show up)? I do see a few mentions of PHP, but nothing like this.

    Hi @bjf2000,

    Yes, it’s better to do it on a staging site environment instead of on your live site.

    Anyway, Astra should have no more compatibility issue relates to PHP 8.1. There’s no known similar issue with Elementor as you have, either. At least we have no users reporting the same.

    However, since you also mentioned our EHF plugin, probably it’s related to it. That’s why I asked you to try to deactivate all plugin and leave only EHF and Elementor. If you still get the same thing in the error log, then EHF could be the culprit. Still need to investigate before say more about this.

    Kind regards,
    Herman ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘PHP Warning: Attempt to read property’ is closed to new replies.