• For support php 8x (8.1) add to file:

    wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php

    before row:

    $this->attributes = array_filter( apply_filters( ‘aioseo_robots_meta’, $this->attributes ) );

    This row:

    if(is_array($array = apply_filters( ‘aioseo_robots_meta’, $this->attributes)))

    Result:

    if(is_array($array = apply_filters( ‘aioseo_robots_meta’, $this->attributes)))
    $this->attributes = array_filter( apply_filters( ‘aioseo_robots_meta’, $this->attributes ) );

Viewing 1 replies (of 1 total)
  • Plugin Author benjaminprojas

    (@benjaminprojas)

    Hey @skaredov!

    Thanks for reaching out and I’m sorry for the trouble here! We do fully support PHP 8.1, but it seems like something (usually an external plugin or your theme) is filtering our code and changing the required type which then throws this error.

    We are looking at changing how this works so it won’t happen in the future. If you want, I can provide you with a beta build to see if it fixes the issue for you. Just reach out to our support team on our website or via the support forum here.

    If AIOSEO has been working for you otherwise, I’d love to see if you could reconsider choosing 5-stars for this review!

    Either way, let me know if you have any further questions!

Viewing 1 replies (of 1 total)

The topic ‘Need PHP 8.1 Support!’ is closed to new replies.