Contact Form 7 compatible with PHP 8?
-
Hello, is Contact Form 7 compatible with PHP 8? Has it been tested yet?
I couldn’t find this information anywhere, sorry if I missed it.
Thank you
-
PHP 8.0 was released 1 year ago. So many users have been using the plugin on PHP 8.0, and no critical issue has been reported. If you meant PHP 8.1, I myself have not yet tested on it.
Thank you
The Contact Form 7 plugin is great, and works with PHP 8.0 without noticeable issues.
With PHP 8.1 that recently came out, CF7 still works, but the error logs are full of warnings for many plugins. Here are some examples:
PHP Deprecated: Return type of WPCF7_FormTag::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/contact-form-7/includes/form-tag.php on line 396
PHP Deprecated: Return type of WPCF7_FormTag::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/contact-form-7/includes/form-tag.php on line 388
PHP Deprecated: Return type of WPCF7_FormTag::offsetSet($offset, $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 /wp-content/plugins/contact-form-7/includes/form-tag.php on line 382
PHP Deprecated: Return type of WPCF7_FormTag::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in wp-content/plugins/contact-form-7/includes/form-tag.php on line 400
PHP Deprecated: Return type of WPCF7_Validation::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in wp-content/plugins/contact-form-7/includes/validation.php on line 78
PHP Deprecated: Return type of WPCF7_Validation::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in wp-content/plugins/contact-form-7/includes/validation.php on line 72
PHP Deprecated: Return type of WPCF7_Validation::offsetSet($offset, $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 /wp-content/plugins/contact-form-7/includes/validation.php on line 59
PHP Deprecated: Return type of WPCF7_Validation::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/contact-form-7/includes/validation.php on line 82
I have many deprecated and notice warnings too…
Same here, lots of same deprecation notices. Testing php 8.1 now.
They are all in:
includes/form-tag.php
includes/validation.php@takayukister , any chance of fixing this?
Thanks. 🙂
Also getting deprecated warnings on php 8.1.6
Does anyone know if the PHP 8.1 errors have been fixed yet?
in PHP 8.1, Bug still exists with me.
WordPress allegedly powers the visible internet. It’s powered by PHP. Why is there is no communication between the development communities. Surprising? Sadly, no.
The topic ‘Contact Form 7 compatible with PHP 8?’ is closed to new replies.