• Resolved Dima Stefantsov

    (@dima-stefantsov)


    When disabling cerber, I get this:

    
    Notice:  Undefined index: data in www\wp-content\plugins\wp-cerber\wp-cerber.php on line 1227
    Stack trace:
      1. {main}() www\wp-admin\plugins.php:0
      2. deactivate_plugins() www\wp-admin\plugins.php:180
      3. do_action() www\wp-admin\includes\plugin.php:704
      4. WP_Hook->do_action() www\wp-includes\plugin.php:453
      5. WP_Hook->apply_filters() www\wp-includes\class-wp-hook.php:323
      6. cerber_clean() www\wp-includes\class-wp-hook.php:298
      7. cerber_send_notify() www\wp-content\plugins\wp-cerber\wp-cerber.php:1547
    

    Please fix.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Dima Stefantsov

    (@dima-stefantsov)

    
    Notice:  Undefined index: loginpath in www\wp-content\plugins\wp-cerber\settings.php on line 517
    Stack trace:
      1. {main}() www\wp-admin\plugins.php:0
      2. activate_plugin() www\wp-admin\plugins.php:42
      3. do_action() www\wp-admin\includes\plugin.php:591
      4. WP_Hook->do_action() www\wp-includes\plugin.php:453
      5. WP_Hook->apply_filters() www\wp-includes\class-wp-hook.php:323
      6. cerber_activate() www\wp-includes\class-wp-hook.php:298
      7. cerber_load_defaults() www\wp-content\plugins\wp-cerber\wp-cerber.php:1423
    

    one more.

    Thread Starter Dima Stefantsov

    (@dima-stefantsov)

    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND activity IN (10,11)’ at line 1 for query SELECT * FROM cerber_log WHERE stamp = AND activity IN (10,11) made by require_once(‘www\wp-admin\admin.php’), do_action(‘admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, cerber_admin_request, cerber_send_notify

    And more. Your plugin looks excellent, but it looks like you are not using WP_DEBUG and not reading php error log. Could you please enable it and clean up errors/notices?

    I’m using PHP 7.0.8

    Thread Starter Dima Stefantsov

    (@dima-stefantsov)

    You are also not having table prefix for your tables, maybe there is a reason for that, but that’s not flexible.

    Plugin Author gioni

    (@gioni)

    First of all, please create posts with right titles. There is no PHP errors in the code.

    Secondly, I’m aware of all the notices you mentioned. They do not affect the plugin functionality and will be fixed in some of the next releases soon.

    Finally, all DB warnings that you see appear due to empty DB tables at the moment when you deactivated the plugin. And again, they do not affect plugin functionality and will be fixed in some of the next releases soon.

    Thread Starter Dima Stefantsov

    (@dima-stefantsov)

    What about tables prefixes? You are not using them. Is there a good reasoning behind that?

    Feel free to rename this topic title the way that is pleasant to your eye.

    Plugin Author gioni

    (@gioni)

    Check out the latest development release: https://wpcerber.com/downloads/wp-cerber.zip
    Please explain your reasons to use prefixes in this plugin.

    Thread Starter Dima Stefantsov

    (@dima-stefantsov)

    Prefixes are usually used to support many wordpress sites in same database. Also prefixes are used to make it harder to do an sql injection if non-default prefix is used.
    That would be the reason. That’s wordpress way.

    Thread Starter Dima Stefantsov

    (@dima-stefantsov)

    PHP Notice:  Undefined index: HTTP_X_FORWARDED_FOR in \www\wp-content\plugins\wp-cerber\wp-cerber.php on line 1049
    PHP Stack trace:
    PHP   1. {main}() \www\index.php:0
    PHP   2. require() \www\index.php:17
    PHP   3. require_once() \www\wp-blog-header.php:13
    PHP   4. require_once() \www\wp-load.php:37
    PHP   5. require_once() \www\wp-config.php:103
    PHP   6. do_action() \www\wp-settings.php:326
    PHP   7. WP_Hook->do_action() \www\wp-includes\plugin.php:453
    PHP   8. WP_Hook->apply_filters() \www\wp-includes\class-wp-hook.php:323
    PHP   9. cerber_stop_cookies() \www\wp-includes\class-wp-hook.php:298
    PHP  10. cerber_get_ip() \www\wp-content\plugins\wp-cerber\wp-cerber.php:688
    
    Plugin Author gioni

    (@gioni)

    Thanks for pointing out! I’ve fixed it in Cerber 4.0. I’ll upload it soon.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PHP error’ is closed to new replies.