• Resolved PG

    (@parulgarg2)


    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

    (@hcabrera)

    Hi @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

    (@parulgarg2)

    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/

    but working fine here: https://www.uniconta.com/da/unipedia/

    • This reply was modified 6 years, 7 months ago by PG.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks @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

    (@parulgarg2)

    Thanks, it worked 🙂

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

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