WordPress.org

Forums

WP-PostRatings
[resolved] Warning: gmdate() expects parameter 2 to be long (5 posts)

  1. Chris45454
    Member
    Posted 10 months ago #

    This is a great plugin, and probably the on star rating plugin that does what i want it it to! Thanks Lester!

    On a new website everything works fine apart from an error im getting on postratings-manager.php

    Warning: gmdate() expects parameter 2 to be long, string given in /home/websitestuff/public_html/wp-content/plugins/wp-postratings/postratings-manager.php on line 292

    Any help would be greatly appreciated!

    https://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 10 months ago #

    Is your date and time format set in WP-Admin -> Settings -> General?

  3. Chris45454
    Member
    Posted 10 months ago #

    Yup, set as:

    London
    Date format: July 11, 2014
    Time Format: 2:56pm

  4. Lester Chan
    Member
    Plugin Author

    Posted 10 months ago #

    Does it happen all the time?

    Could you try "Delete Post Ratings Data/Logs", under "Delete Type:" Choose Logs only and Post ID(s) set to "all".

    This will clear the logs allowing you to start logging again. I am guessing it is corrupted data because I can't reproduce this on my dev site that has 53k log entries.

  5. Chris45454
    Member
    Posted 10 months ago #

    Looks like that fixed it!

    The logs deleted successfully, and I'm no longer getting the errors when visiting postratings-manager.php

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.