Title: Error in WordPress include files
Last modified: December 26, 2022

---

# Error in WordPress include files

 *  [chandankumar2402](https://wordpress.org/support/users/chandankumar2402/)
 * (@chandankumar2402)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-in-wordpress-include-files/)
 * Hi
 * I am getting the following error more occasionally, pls help me how I can fix
   this:-
 *     ```
       Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Cookie/Jar.php on line 63
   
       Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Cookie/Jar.php on line 73
   
       Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Cookie/Jar.php on line 89
   
       Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Cookie/Jar.php on line 102
   
       Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Cookie/Jar.php on line 111
   
       Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
   
       Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
   
       Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
   
       Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
   
       Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u497903811/domains/savaherbals.com/public_html/beta/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-wordpress-include-files%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-in-wordpress-include-files/#post-16320413)
 * This error occurs even in the latest WordPress version when using PHP 8.1. The
   easiest solution would be to use PHP 8.0.
 * There is a ticket for this and other error messages related to PHP 8.1 with the
   developers: [https://core.trac.wordpress.org/ticket/54504](https://core.trac.wordpress.org/ticket/54504)

Viewing 1 replies (of 1 total)

The topic ‘Error in WordPress include files’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/error-in-wordpress-include-files/#post-16320413)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
