Home › Forums › BulletProof Security Pro › PHP Notice: unserialize(): Error in bulletproof-security.php
- This topic has 12 replies, 4 voices, and was last updated 5 months, 1 week ago by
Iris.
-
AuthorPosts
-
Qtwix
ParticipantHi,
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
AITpro Admin
Keymasterhmm 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.
Qtwix
ParticipantYes, 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
AITpro Admin
KeymasterYep, will take care of this in the next BPS Pro version.
Matej
ParticipantHello,
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″
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.
Matej
ParticipantHey. Yes, I have. I have 17.4 installed.
AITpro Admin
Keymaster@ Matej – What is the URL/link to the website?
Matej
ParticipantIt’s https://smaragdna.com.
AITpro Admin
KeymasterLooks 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.
Iris
ParticipantHello,
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.
AITpro Admin
KeymasterWhen 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.
Iris
ParticipantHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.