Title: Undefined array key &#8220;HTTP_REFERER&#8221; or &#8220;HTTP_ORIGIN&#8221; with PHP &gt;= 8.0
Last modified: August 7, 2023

---

# Undefined array key “HTTP_REFERER” or “HTTP_ORIGIN” with PHP >= 8.0

 *  [Chantal Salamin, Webmaster at Saint-Augustin SA](https://wordpress.org/support/users/webstaugustin/)
 * (@webstaugustin)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-http_referer-or-http_origin-with-php-8-0/)
 * Hello,
   From PHP version 8.0 and upper, I receive warnings displays in spite of
   having setting WP_DEBUG and WP_DEBUG_DISPLAY to false, it’s annoying.
 * Undefined array key “HTTP_REFERER” in **/wp-content/plugins/wp-cors/wp-cors.php**
   on line **28**
   Undefined array key “HTTP_ORIGIN” in **/wp-content/wp-cors/wp-
   cors.php** on line **29**
 * How can I solve this problem?
   Thank’s.

The topic ‘Undefined array key “HTTP_REFERER” or “HTTP_ORIGIN” with PHP >= 8.0’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cors.svg)
 * [WP-CORS](https://wordpress.org/plugins/wp-cors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cors/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cors/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Chantal Salamin, Webmaster at Saint-Augustin SA](https://wordpress.org/support/users/webstaugustin/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-http_referer-or-http_origin-with-php-8-0/)
 * Status: not resolved