• David Herman

    (@daveherman)


    The plugin is not compatible with PHP 8.1. To fix this and make it compatible with PHP 8.1 you need to implicitly declare the return types of the \Iterator methods in the Notices class so that they match the return types declared in the \Iterator class.

    PHP Error was encountered
    Severity: 8192
    Message: Return type of Meta_Tag_Manager\Notices::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    Filename: notices/notices.php
    Line Number: 243

    PHP Error was encountered
    Severity: 8192
    Message: Return type of Meta_Tag_Manager\Notices::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    Filename: notices/notices.php
    Line Number: 251

    PHP Error was encountered
    Severity: 8192
    Message: Return type of Meta_Tag_Manager\Notices::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    Filename: notices/notices.php
    Line Number: 247

    PHP Error was encountered
    Severity: 8192
    Message: Return type of Meta_Tag_Manager\Notices::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    Filename: notices/notices.php
    Line Number: 255

    PHP Error was encountered
    Severity: 8192
    Message: Return type of Meta_Tag_Manager\Notices::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    Filename: notices/notices.php
    Line Number: 240

    PHP Error was encountered
    Severity: 8192
    Message: Return type of Meta_Tag_Manager\Notices::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    Filename: notices/notices.php
    Line Number: 229

Viewing 1 replies (of 1 total)
  • PHP Deprecated:  Required parameter $tag follows optional parameter $i 
    in 
    /home/www/kmz-brno.cz/www/wp-content/plugins/meta-tag-manager/admin/mtm-builder.php
     on line 62
Viewing 1 replies (of 1 total)
  • The topic ‘Not compatible with PHP 8.1’ is closed to new replies.