WordPress.org

Forums

Popularity Posts Widget
[resolved] Error with new version of plugin (7 posts)

  1. osckar
    Member
    Posted 2 years ago #

    Hi:

    I just updated to the new version of this plugin (1.13) and I get this error instead of the posts list:

    Warning: Invalid argument supplied for foreach() in /home/public_html/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 289

    Thanks!

    http://wordpress.org/extend/plugins/popularity-posts-widget/

  2. Mihail
    Member
    Plugin Author

    Posted 2 years ago #

    Hello!
    Can you please tell me youre settings for this plugin:
    condition for posts query (total views, views last 7 days...) and for category filter(if you turn it ON).

  3. osckar
    Member
    Posted 2 years ago #

    Hi:

    I was using 2 instances of the widget that were working fine just before the version update:

    widget 1:
    conditions: Views today
    category filter: off

    widget 2:
    conditions: Views last 7 days
    category filter: off

    Misteriously, after the update, both widgets stopped working; I just checked the configuration and both were reset to: Total Views.
    So I selected Views today and Views last 7 days, and they are working again :O

    Something happened with the update that cause the widgets to malfunction.

    Thank you

  4. actieprikker
    Member
    Posted 2 years ago #

    I have the same problem as the person above:

    Warning: Invalid argument supplied for foreach() in /home/crimep/public_html/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 289

  5. Mihail
    Member
    Plugin Author

    Posted 2 years ago #

    Hi oskar:
    So I understood that plugin now works again for you without any problems
    or there is still some issues?

  6. osckar
    Member
    Posted 2 years ago #

    Hi:

    Yes, it's working. I fixed it setting the values of the conditions directly in the widget configuration. As it's very strange that the update broke them.

    Thank you!

  7. Mihail
    Member
    Plugin Author

    Posted 2 years ago #

    Glad to hear that!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Popularity Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.