MarketPress issue with Squirrly SEO 2018 (Steve) plugin

After activation "Squirrly SEO 2018 (Steve) plugin products pages start display this error:
Fatal error: Cannot use object of type WP_Error as array in /wp-content/plugins/squirrly-seo/models/Frontend.php on line 373

Witch is:

if (!empty($cat) && count($cat) > 0) {
$post->category = $cat[0]->name; // 373 line here
if (isset($cat[0]->description)) $post->category_description = $cat[0]->description;
  • Kris
    • Support

    Hi Symi

    Hope you are doing good today.

    After the chat i got respond from one of our staff member and he suggest this option below.

    Please replace this code in line 372 in file in "/wp-content/plugins/squirrly-seo/models/Frontend.php"
    if (!empty($cat) && count($cat) > 0) {
    if (!is_wp_error($cat) && !empty($cat) && count($cat) > 0) {

    I test this on my site and it solve the issue :slight_smile:

    Kind Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.