PHP Warning when using ?debugcookie=#
-
Apparently, the plugin’s code tries to use a
DateTimeobject as the third parameter tosetcookie().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:317Please turn on
WP_DEBUGconstant and set error reporting toE_ALLwhile developing. That will save a lot of headaches to you and other fellow developers.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Warning when using ?debugcookie=#’ is closed to new replies.