Support » Plugin: Debug Objects » PHP Warning when using ?debugcookie=#

  • Resolved AndyDeGroo


    Apparently, the plugin’s code tries to use a DateTime object as the third parameter to setcookie().

    This is the PHP warning and last step in stack trace:

    PHP Warning:  setcookie() expects parameter 3 to be integer, object given in /var/www/[redacted]/wp-content/plugins/debug-objects/debug-objects.php on line 317
    PHP  11. setcookie('debug_objects_cookie', 'Debug_Objects_True', class DateTime { public $date = '2017-09-06 07:25:26.000000'; public $timezone_type = 3; public $timezone = 'UTC' }, '/', FALSE) /var/www/[redacted]/wp-content/plugins/debug-objects/debug-objects.php:317

    Please turn on WP_DEBUG constant and set error reporting to E_ALL while developing. That will save a lot of headaches to you and other fellow developers.

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Bueltge


    My development environment have all debug messages, include xdebug. If I work on this topic and I see errors, warnings and notices I will change, fix them.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning when using ?debugcookie=#’ is closed to new replies.