• Resolved JS Morisset

    (@jsmoriss)


    FYI – After changing the “Max Ratings” option value, PHP gives the following errors when viewing a post:

    
    Notice: Undefined offset: 5 in /.../wordpress/wp-content/plugins/wp-postratings/wp-postratings.php on line 974
    
    Notice: Undefined offset: 6 in /.../wordpress/wp-content/plugins/wp-postratings/wp-postratings.php on line 974
    
    Notice: Undefined offset: 7 in /.../wordpress/wp-content/plugins/wp-postratings/wp-postratings.php on line 974
    
    Notice: Undefined offset: 8 in /.../wordpress/wp-content/plugins/wp-postratings/wp-postratings.php on line 974
    
    Notice: Undefined offset: 9 in /.../wordpress/wp-content/plugins/wp-postratings/wp-postratings.php on line 974
    

    js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter JS Morisset

    (@jsmoriss)

    FYI – the “Max Ratings” value chosen is 10.

    When voting, the post meta “ratings_users” is updated (increased by 1), but the “ratings_score” is not updated (stays the same), which also means the “ratings_average” keeps decreasing, even though a rating of 10 may have been selected.

    js.

    Plugin Author Lester Chan

    (@gamerz)

    Yeap that is expected when you change the max rating after the initial settings. This plugin doesn’t re-calculate the ratings to keep things simple.

    Thanks for the undefined error. I will fix it.

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

The topic ‘Changing “Max Ratings” gives PHP offset errors.’ is closed to new replies.