Title: Changing &#8220;Max Ratings&#8221; gives PHP offset errors.
Last modified: May 28, 2018

---

# Changing “Max Ratings” gives PHP offset errors.

 *  Resolved [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [8 years ago](https://wordpress.org/support/topic/changing-max-ratings-gives-php-offset-errors/)
 * 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](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [8 years ago](https://wordpress.org/support/topic/changing-max-ratings-gives-php-offset-errors/#post-10332531)
 * 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](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [8 years ago](https://wordpress.org/support/topic/changing-max-ratings-gives-php-offset-errors/#post-10334295)
 * 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.

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/changing-max-ratings-gives-php-offset-errors/#post-10334295)
 * Status: resolved