Title: Critical Error and Depreciated Code
Last modified: March 10, 2023

---

# Critical Error and Depreciated Code

 *  Resolved [keyelement](https://wordpress.org/support/users/keyelement/)
 * (@keyelement)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/critical-error-and-depreciated-code/)
 * I seem to have an issue with CleanTalk running on the site. It causes a Critical
   Error on the site. If I turn on the Debug I get the code below. Bottom section
   seems to be related to CleanTalk. Site will load fine with CleanTalk Deactivated.
   I did check with GF and their support, seems no issues there.
 *     ```wp-block-code
       ERROR:Deprecated: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in /home/oakstrail/public_html/wp-content/plugins/gravityforms/includes/addon/class-gf-addon.php on line 6400Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /home/oakstrail/public_html/wp-content/plugins/gravityforms/includes/addon/class-gf-addon.php on line 6404Deprecated: Return type of 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/oakstrail/public_html/wp-includes/Requests/Cookie/Jar.php on line 63Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Cookie/Jar.php on line 73Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Cookie/Jar.php on line 89Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Cookie/Jar.php on line 102Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Cookie/Jar.php on line 111Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82Deprecated: 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/oakstrail/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91Fatal error: Uncaught TypeError: Unsupported operand types: int - ArrayObject in /home/oakstrail/public_html/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-common.php:779 Stack trace: #0 /home/oakstrail/public_html/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-public.php(619): ct_get_checkjs_value() #1 /home/oakstrail/public_html/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-public.php(526): ct_add_hidden_fields() #2 /home/oakstrail/public_html/wp-includes/class-wp-hook.php(308): apbct_hook__wp_head__set_cookie__ct_checkjs() #3 /home/oakstrail/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /home/oakstrail/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/oakstrail/public_html/wp-includes/general-template.php(3043): do_action() #6 /home/oakstrail/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-header-template.php(11): wp_head() #7 /home/oakstrail/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(216): require_once('/home/oakstrail...') #8 /home/oakstrail/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(247): et_theme_builder_frontend_override_partial() #9 /home/oakstrail/public_html/wp-includes/class-wp-hook.php(310): et_theme_builder_frontend_override_header() #10 /home/oakstrail/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #11 /home/oakstrail/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /home/oakstrail/public_html/wp-includes/general-template.php(38): do_action() #13 /home/oakstrail/public_html/wp-content/themes/Divi/page.php(3): get_header() #14 /home/oakstrail/public_html/wp-includes/template-loader.php(106): include('/home/oakstrail...') #15 /home/oakstrail/public_html/wp-blog-header.php(19): require_once('/home/oakstrail...') #16 /home/oakstrail/public_html/index.php(17): require('/home/oakstrail...') #17 {main} thrown in /home/oakstrail/public_html/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-common.php on line 779
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-and-depreciated-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [katereji](https://wordpress.org/support/users/katereji/)
 * (@katereji)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/critical-error-and-depreciated-code/#post-16548108)
 * Hello.
 * We’ve already fixed this and all changes will be included in the next release.
 * But as a quick solution, please, deactivate the plugin with the “Complete deactivation”
   option enabled and then activate it again.
 * 1. Enter the Antispam by Cleantalk plugin settings. (WordPress Dashboard -> Settings-
   > Antispam by Cleantalk -> Advanced settings)
   2. Check the last settings “Complete
   deactivation” and save changes.3. Deactivate the plugin on the “Plugins” page
   in WordPress Dashboard.4. Then activate it.5. Enter your access key in the plugin’s
   settings.
 * Did it help? Let us know the result, please.
 *  [davlinski](https://wordpress.org/support/users/davlinski/)
 * (@davlinski)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/critical-error-and-depreciated-code/#post-16549464)
 * That did the trick (Complete Deactivation and then reactivation)!! Thanks! I 
   had many sites impacted by this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Critical Error and Depreciated Code’ is closed to new replies.

 * ![](https://ps.w.org/cleantalk-spam-protect/assets/icon-256x256.gif?rev=3539767)
 * [CleanTalk Anti-Spam. Spam Firewall & Bot protection](https://wordpress.org/plugins/cleantalk-spam-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleantalk-spam-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleantalk-spam-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [davlinski](https://wordpress.org/support/users/davlinski/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/critical-error-and-depreciated-code/#post-16549464)
 * Status: resolved