[wp-trac] [WordPress Trac] #46550: Uncaught TypeError: setcookie() expects parameter 5 to be string, bool given in...

WordPress Trac noreply at wordpress.org
Wed Aug 2 14:23:55 UTC 2023


#46550: Uncaught TypeError: setcookie() expects parameter 5 to be string, bool
given in...
-------------------------------------+-------------------------------------
 Reporter:  kmvan                    |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Networks and Sites       |     Version:  5.2
 Severity:  major                    |  Resolution:
 Keywords:  reporter-feedback has-   |     Focuses:  coding-standards, php-
  patch                              |  compatibility
-------------------------------------+-------------------------------------
Changes (by rajinsharwar):

 * focuses:   => coding-standards, php-compatibility
 * component:  Bootstrap/Load => Networks and Sites
 * severity:  normal => major


Comment:

 Yes, it was causing a Fatal error when the default value of the
 COOKIE_DOAMIN was used in any external PHP script. So, set the default
 value of the constant to null instead of false.

 cc @cybr @johnbillion

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46550#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list