Support » Plugin: BulletProof Security » [Plugin: BulletProof Security] Debug Error

  • Resolved John168


    Trying to debug a woocommerce issue. When I turn on wp debug mode (define(‘WP_DEBUG’, true), I receive the following error using the WP admin panels.

    PHP Notice: unserialize() [function.unserialize]: Error at offset 0 of 75 bytes in /home/kccslum/www/www/wp-content/plugins/bulletproof-security/bulletproof-security.php on line 109

    I am running BPS Pro 5.1.9.

    Any thoughts?

    P.S. Great plugin and worth every penny.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author AITpro


    Notice php errors are basically reporting that there could be a potential bug or coding correction that needs to be made. In this case a minor coding correction needs to be made. Thanks for pointing it out. I will take care of it ASAP.

    If you want to suppress the php error for now just add an @ symbol as shown below.

    Code Line 109 – /bulletproof-security.php

    $response = @unserialize($raw_response['body']);

    Warning & Fatal php errors on the other hand are serious php errors that need to be taken care of ASAP.

    Thanks for the Kudos. 🙂

    Plugin Author AITpro


    Hmm interesting. I checked with Debug on and am not getting the error and the code looks fine to me so this must be related to a connectivity issue. ie the connection to the AITpro API Server dropped out/or hiccuped/or the MySQL DB Query hiccuped during the Cron check for an upgrade to BPS Pro. Basically the reponse came back as empty so there was nothing to unserialize.

    But i did find these 2 nick nack things that need to be corrected. Oops. variables, variables – dot your I’s and cross your T’s LOL. 😉 These are syntax minor issues and will not cause any problems. Just nick nacks that I just fixed. 😉

    [28-Sep-2012 00:31:43 UTC] PHP Notice:  Undefined index: SUHOSIN_PATCH in C:\xampp2\xxxxxxx\xxxxxxxxxx\wp-content\plugins\bulletproof-security\admin\options.php on line 1587
    [28-Sep-2012 00:32:22 UTC] PHP Notice:  Undefined variable: filename in C:\xampp2\xxxxxxx\xxxxxxxxxx\wp-content\plugins\bulletproof-security\admin\quarantine\quarantine.php on line 153

    Yep. I get lots of PHP notices from various plug-ins. This one was more of an annoyance since it threw off the plug-in tab screen. Thanks for the review and keep up the good work!

    Plugin Author AITpro


    Is the error still occurring or was it a one time or intermittent error?

    It is still occurring but intermittent. Happened again this morning but I cannot recreate it at the moment (of course :-).

    Plugin Author AITpro


    Yep definitely a connectivity issue. Ok i will first recheck that the API Server is happy and humming along as usual and then look into the optimum solution to handle this scenario. Thanks again for pointing this issue out.

    Plugin Author AITpro


    This minor intermittent WP Debug Notice php error will not be displayed in the next version release of BPS Pro. Resolving.

    You are the best! Thanks for all the effort.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: BulletProof Security] Debug Error’ is closed to new replies.