PHP Notice: unserialize(): Error in bulletproof-security.php

Home Forums BulletProof Security Pro PHP Notice: unserialize(): Error in bulletproof-security.php

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #35184
    Qtwix
    Participant

    Hi,

    I have several installations on various hosts protected with BPS Pro and Wordfence. In all the installations, every time if a Wordfence scan is performed, Wordfence reports the same unserialize error and I get the error also logged in the BPS Pro PHP error log like this:

    [31-Dec-2017 06:01:13 UTC] PHP Notice: unserialize(): Error at offset 0 of 15 bytes in /path/to/site/htdocs/wp-content/plugins/bulletproof-security/bulletproof-security.php on line 198

    Do you have an idea why I get these errors?

    Thanks

    #35187
    AITpro Admin
    Keymaster

    hmm that is very strange, but a PHP Notice error is insignificant so you can ignore the error for now.  We can suppress this PHP error in the next BPS Pro version so that the Wordfence scan does not cause this error.

    #35190
    Qtwix
    Participant

    Yes, I noticed that it’s just a notice and also there is no real issue about it. But as it appears with the scheduled scan once a day, it would be great if it could get suppressed, as it’s rather irrelevant.

    Thanks

    #35192
    AITpro Admin
    Keymaster

    Yep, will take care of this in the next BPS Pro version.

    #43917
    Matej
    Participant

    Hello,

    I seem to have same problem, and I have following notice:

    Notice: unserialize(): Error at offset 0 of 15 bytes in /var/www/430e982b-31a1-4dcf-9b4b-090bb3ded8d3/public_html/wp-content/plugins/bulletproof-security/bulletproof-security.php on line 237″

    #43918
    AITpro Admin
    Keymaster

    @ Matej – Do you have the most current version of BPS Pro installed > 17.4.  If not then install the latest version of BPS Pro.

    #43919
    Matej
    Participant

    Hey. Yes, I have. I have 17.4 installed.

    #43920
    AITpro Admin
    Keymaster

    @ Matej – What is the URL/link to the website?

    #43921
    Matej
    Participant
    #43922
    AITpro Admin
    Keymaster

    Looks like you have an nginix server with a LiteSpeed API. Looks like there may be an issue between the LiteSpeed cache plugin and JetPack Site Accelerator. It appears to be a very minor issue so nothing to worry about.  Other than that everything looks good so you can disregard the unserialize php error.  I assume what is occurring is that your combination of caching plugins/methods intermittently interferes with BPS Pro plugin upgrade checks to the api.ait-pro.com API server.  Nothing to worry about.

    #44210
    Iris
    Participant

    Hello,

    I have the same error, below, occurring each time the daily Wordfence scan runs, requiring re-setting the time in DB etc.

    PHP Notice:  unserialize(): Error at offset 0 of 15 bytes in /home/domain name/public_html/wp-content/plugins/bulletproof-security/bulletproof-security.php on line 237

    While I know you say it can be ignored is there any fix I can do?

    I Have BPS Pro 17.4, Wordfence Premium 7.11.7, php 8.2.23.

    Thank you for your time.

    #44211
    AITpro Admin
    Keymaster

    When that error occurs it means either server-side caching > Redis, etc. or something else is blocking communication to my API server. That code handles checking for BPS Pro plugin updates.  Since Wordfence or something else is causing the problem then there isn’t anything I can change in BPS to fix a problem that is caused by another plugin or something on the server.

    #44214
    Iris
    Participant

    Hi,

    Thank you for your prompt response.  Your comment about server-side caching helped.

    While neither the memcache nor redis extensions were activated in cPanel I noticed for some unknown reason that the Object Cache setting in the LiteSpeed Cache plugin was ON (the extensions status said disabled).

    I turned the Object Cache to OFF and have not had the above PHP error notice since; hopefully that’s it.

    Thank you for your time.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.