• Resolved bjf2000

    (@bjf2000)


    Is there any way to get the plugin to stop triggering these? It’s been happening most if not all this year. We are on the current version of Elementor and H&FB. Current WordPress version. PHP version: 8.1.20.

    [07-Jul-2023 09:05:22 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
    [07-Jul-2023 09:05:22 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
    

    Yes, we do have Astra, which for whatever reason is in the name of one your H&FB files, but that should be neither here nor there, and Astra said it’s not their problem.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    What if you switch the PHP to v8.0.x? Did you still get the PHP warning?

    I look forward to hearing from you.

    Kind regards,
    Herman 😊

    Thread Starter bjf2000

    (@bjf2000)

    I’m not sure I can get away with doing that at this point. v8.1.x is not even the latest generation, so it should be fine, right (released late 2021)? I could maybe understand if on v8.2.x, which has only been out since late 2022. We like to lag one major version for exactly this reason: to give plugins ample time. Of course, we do stay current on the minor version updates for security purposes.

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    Please share with us the steps to replicate this. We will try to reproduce it on our end.

    I look forward to hearing from you.

    Kind regards,
    Herman 😊

    Thread Starter bjf2000

    (@bjf2000)

    @bsfherman, That’s unknown. Are you saying that you’ve looked at that log on an actively-used system with those two plugins installed and don’t see it? If so, what version of PHP?

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    I don’t have any error log like you have above. Although, the PHP I have is v8.1.12 instead of v8.1.20.

    I look forward to hearing from you.

    Kind regards,
    Herman 😊

    Thread Starter bjf2000

    (@bjf2000)

    That dates back to last October, which almost certainly predates this problem (unless time is flying faster than I thought), so it’s a definite possibility that it only cropped up with more recent versions. That’s the best lead right now, since I haven’t the slightest idea otherwise how to go about replicating the problem.

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    I should try it again then.

    In the meantime, could you please check if you still have the same thing with the recent update, we released about 6 days ago?

    Kind regards,
    Herman 😊

    Thread Starter bjf2000

    (@bjf2000)

    Yes, we installed 1.6.15 when it came out, so last Thursday, and since then we’ve seen recurrence on Saturday and Sunday. which is interesting because of that being a weekend. Whatever is doing this, that must mean it’s a result of something automated, at least sometimes, since no one works on the site on weekends. Not that it’s only happened on the weekend before now, it happens at all sorts of times, but maybe that it did this time reveals something. It at least reduces the chance that any kind of user action causes it (that can’t be the only way to cause it, at least).

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    I think it’s easier for us if we can take a look close at your site. Please consider reaching out us using this contact form and mention this thread, so you don’t have to re-explain.

    Kind regards,
    Herman 😊

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi,

    I noticed that one of our support agents has responded to your ticket. Please continue the conversation related to this using the ticket. I am marking the topic as Resolved.

    Kind regards,
    Herman 😊

    Thread Starter bjf2000

    (@bjf2000)

    Yes, they did respond, but the curious thing is that they said the plugin isn’t compatible with PHP 8.1. That’s weird for a couple reasons. First being that if Elementor is, why isn’t this related plugin?

    But more to the point, you were trying an old version of 8.1 and didn’t reproduce the problem. Old, but still 8.1, so it doesn’t add up. Unfortunately, I don’t think you tried a current version of 8.1. If you still can’t reproduce then, that would strongly suggest that support was wrong and this is something else. But I don’t think you tried it so we’ll never know.

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    Yes, so far, I tried only with the version I mentioned previously. Hopefully, our dev team would be able to work on this soon. We appreciate your patience and co-operation.

    Kind regards,
    Herman 😊

    Thread Starter bjf2000

    (@bjf2000)

    This continues with 1.6.16, so the adding of PHP 8.1 compatibility is perhaps incomplete or it has little or nothing to do with PHP 8.1 in the first place.

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @bjf2000,

    Thanks for the update. Could you please reply back to our email so the discussion regarding this matter can be continued using the ticket?

    Kind regards,
    Herman 😊

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