• after updating we are now getting the following error.

    [12-Feb-2018 05:27:47 UTC] PHP Fatal error: Uncaught Error: Call to a member function toArray() on array in /var/www/xxxxxx.com/public_html/wp-content/plugins/tarot/inc/tarot-sessions.php:39

    the line in question is

    $cards = $wp_session[‘tarot_cards’]->toArray();

    ANy ideas, i read in the chnagelog you made it backwards compatible?

Viewing 1 replies (of 1 total)
  • Plugin Author Eric Mann

    (@ericmann)

    I don’t know what plugin this is that’s having an issue, but no, the plugin isn’t that kind of backwards compatible.

    The wp_session object itself is an array and pulling items out of it will return the item that’s stored. It sound like the tarot_cards item in the session is <i>already</i> an array. The old toArray() method was used to convert an array-like object to an array and is no longer needed here at all.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue after update’ is closed to new replies.