Title: Epoch Comments CLI error on line 504
Last modified: October 7, 2026

---

# Epoch Comments CLI error on line 504

 *  [Ken Gagne](https://wordpress.org/support/users/kgagne/)
 * (@kgagne)
 * [6 days, 19 hours ago](https://wordpress.org/support/topic/epoch-comments-cli-error-on-line-504/)
 * When running an unrelated WP-CLI command, I got this error:
 *     ```wp-block-code
       Warning: Trying to access array offset on null in /srv/htdocs/wp-content/plugins/rating-system/comments.php on line 504
       ```
   
 * To avoid it, I changed line 504 from this:
 *     ```wp-block-code
       $epoch_var = $epoch['options']['theme'];
       ```
   
 * to this:
 *     ```wp-block-code
       $epoch_var = (is_array($epoch) && isset($epoch['options']['theme'])) ? $epoch['options']['theme'] : '';
       ```
   

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fepoch-comments-cli-error-on-line-504%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://s.w.org/plugins/geopattern-icon/rating-system.svg)
 * [Rating System](https://wordpress.org/plugins/rating-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rating-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rating-system/)
 * [Active Topics](https://wordpress.org/support/plugin/rating-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rating-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rating-system/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ken Gagne](https://wordpress.org/support/users/kgagne/)
 * Last activity: [6 days, 19 hours ago](https://wordpress.org/support/topic/epoch-comments-cli-error-on-line-504/)
 * Status: not resolved