WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] Debug Error (9 posts)

  1. John168
    Member
    Posted 1 year ago #

    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?
    Thanks
    John

    P.S. Great plugin and worth every penny.

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    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. :)

  3. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    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
  4. John168
    Member
    Posted 1 year ago #

    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!

  5. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. John168
    Member
    Posted 1 year ago #

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

  7. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

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

  9. John168
    Member
    Posted 1 year ago #

    You are the best! Thanks for all the effort.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.