• Dear Kyle, thank you for truly amazing plugin!
    In the apache logs I’m getting the error:
    “Cannot use a scalar value as an array in /var/app/current/wp-content/plugins/favorites/app/Entities/Favorite/FavoritesArrayFormatter.php on line 73”

    Could you be so kind and investigate the issue?

    thank you

    with love from Poland,
    Radoslaw

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I also have this issue.
    I think this is because the array was unset.

    If fixed this by adding
    “$this->formatted_favorites[$site][‘posts’][$favorite] = array();” before line 73:

    foreach ( $site_favorites[‘posts’] as $key => $favorite ){
    unset($this->formatted_favorites[$site][‘posts’][$key]);
    $this->formatted_favorites[$site][‘posts’][$favorite] = array();
    $this->formatted_favorites[$site][‘posts’][$favorite][‘post_id’] = $favorite;
    }

    Thread Starter radeko

    (@radeko)

    Thank you xayana it works!

    Have a wonderful week.

    Radoslaw

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

The topic ‘Cannot use a scalar value as an array’ is closed to new replies.