Title: PHP Error
Last modified: October 30, 2019

---

# PHP Error

 *  Resolved [PG](https://wordpress.org/support/users/parulgarg2/)
 * (@parulgarg2)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-350/)
 * Hi
    I am getting the following error:
 * PHP Fatal error: Uncaught WordPressPopularPosts\Moment\MomentException: Locale
   does not exist: in /wp-content/plugins/wordpress-popular-posts/src/Moment/MomentLocale.
   php:64
    Stack trace: #0 /wp-content/plugins/wordpress-popular-posts/src/Moment/
   MomentLocale.php(51): WordPressPopularPosts\Moment\MomentLocale::loadLocaleContent()#
   1 /wp-content/plugins/wordpress-popular-posts/src/Moment/Moment.php(47): WordPressPopularPosts\
   Moment\MomentLocale::setLocale(‘de_AT’, false) #2 /wp-content/plugins/wordpress-
   popular-posts/src/Output.php(538): WordPressPopularPosts\Moment\Moment::setLocale(‘
   de_AT’) #3 /wp-content/plugins/wordpress-popular-posts/src/Output.php(295): WordPressPopularPosts\
   Output->get_date(Object(stdClass)) #4 /wp-content/plugins/wordpress-popular-posts/
   src/Output.php(212): WordPressPopularPosts\Output->render_post(Object(stdClass),
   1) #5 /wp in /wp-content/plugins/wordpress-popular-posts/src/Moment/MomentLocale.
   php on line 64

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-350/#post-12078566)
 * Hi [@parulgarg2](https://wordpress.org/support/users/parulgarg2/),
 * Could you please share more details? For example, I’d like to know:
    - How can I reproduce this error? Settings?
    - Are you using the WPP widget? The shortcode? What options are you using?
    - PHP version?
 *  Thread Starter [PG](https://wordpress.org/support/users/parulgarg2/)
 * (@parulgarg2)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-350/#post-12078574)
 * Hi
 * Thanks for the quick reply.
 * I am using the widget, with filters : Time range-7, Post type-post, Display views&
   date.
    I am using WPML latest version and have multiple languages. PHP version:
   7.3.9 Wordpress Version: 5.2.4
 * It somehow crashes when I put the widget here:
    [https://www.uniconta.com/at/unipedia/](https://www.uniconta.com/at/unipedia/)
 * but working fine here: [https://www.uniconta.com/da/unipedia/](https://www.uniconta.com/da/unipedia/)
    -  This reply was modified 6 years, 7 months ago by [PG](https://wordpress.org/support/users/parulgarg2/).
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-350/#post-12080533)
 * Thanks [@parulgarg2](https://wordpress.org/support/users/parulgarg2/), that was
   very helpful!
 * I was able to reproduce the issue. You can use the widget if you disable the 
   date for now (Widgets > WordPress Popular Posts > Untick the “Display date” option
   > Save). I’ll release a new version that fixes this issue soon and you’ll be 
   able to display the date again afterwards.
 *  Thread Starter [PG](https://wordpress.org/support/users/parulgarg2/)
 * (@parulgarg2)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-350/#post-12082650)
 * Thanks, it worked 🙂

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

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [i18n](https://wordpress.org/support/topic-tag/i18n/)

 * 4 replies
 * 2 participants
 * Last reply from: [PG](https://wordpress.org/support/users/parulgarg2/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-350/#post-12082650)
 * Status: resolved