WordPress.org

Ready to get started?Download WordPress

Forums

WoW Armory Character
[resolved] Error: "arsort() expects parameter 1 to be array" (3 posts)

  1. dt10111
    Member
    Posted 3 years ago #

    Hey!

    I just updated the plugin a second ago and my page is getting this error when rendering in the page:

    Warning: Invalid argument supplied for foreach() in /home/dt10111/daniel.bottle-imp.com/wp-content/plugins/wow-armory-character/class-wow-armory-character.php on line 78

    The shortcode I am using is:

    [armory-character realm="Sargeras" name="Aani" region="US"]

    You can see it in action:

    http://daniel.bottle-imp.com/media/world-of-warcraft/

    Glad to see you adding activity feed in some capacity, been hoping for that for a while. Let me know if you have any ideas on how to resolve this. I didn't want to go poking around the code myself, I'm too much of a noob.

    http://wordpress.org/extend/plugins/wow-armory-character/

  2. Adam
    Member
    Plugin Author

    Posted 3 years ago #

    I've just tried the short code on my dev. environment and it appears to work fine.

    Please could you try clearing the Character Cache for Aani and try to view the page again? The error suggests an armoury glitch of some kind where your achievement data wasn't returned properly.

    I'll work on getting some error handling in there so that it catches this in the future.

  3. dt10111
    Member
    Posted 3 years ago #

    Clearing the cache seemed to take care of it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic