Forum Replies Created

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

    (@lucaspierru)

    Unfortunately I didn’t have more insight with Query Monitor as it didn’t detect the 500 error. After several trials and errors, I noticed that the issue only arises when enabling/ticking Display > Hourly Forecast > Display time icons. Disabling this options made everything work as intended.

    I was wondering if there is a possibility to translate the display of informations of the widget/shortcode? I tried the “OpenWeatherMap language” option but it didn’t change anything (everything is still displayed in English)

    Thread Starter lucaspierru

    (@lucaspierru)

    Thank you for your reactivity @uwejacobs ! I feel dumb not thinking about that tbh

    Here are the error messages in the console:

    
    POST http://172.31.130.128/wp-admin/admin-ajax.php?lang=en 500 (Internal Server Error)
    send	@	jquery.min.js?ver=3.6.0:2
    ajax	@	jquery.min.js?ver=3.6.0:2
    s.ajax.s.ajax	@	jquery-migrate.min.js?ver=3.3.2:2
    (anonymous)	@	owm-weather-ajax.js?ver=5.9.3:4
    e	@	jquery.min.js?ver=3.6.0:2
    t	@	jquery.min.js?ver=3.6.0:2
    setTimeout (async)		
    (anonymous)	@	jquery.min.js?ver=3.6.0:2
    c	@	jquery.min.js?ver=3.6.0:2
    fireWith	@	jquery.min.js?ver=3.6.0:2
    fire	@	jquery.min.js?ver=3.6.0:2
    c	@	jquery.min.js?ver=3.6.0:2
    fireWith	@	jquery.min.js?ver=3.6.0:2
    ready	@	jquery.min.js?ver=3.6.0:2
    B	@	jquery.min.js?ver=3.6.0:2
    
    VM40:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at parse (<anonymous>)
        at Function.<anonymous> (jquery-migrate.min.js?ver=3.3.2:2:2469)
        at Function.e.<computed> [as parseJSON] (jquery-migrate.min.js?ver=3.3.2:2:1205)
        at Object.error (owm-weather-ajax.js?ver=5.9.3:18:23)
        at c (jquery.min.js?ver=3.6.0:2:28327)
        at Object.fireWith [as rejectWith] (jquery.min.js?ver=3.6.0:2:29072)
        at l (jquery.min.js?ver=3.6.0:2:79926)
        at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.6.0:2:82355)
    (anonymous)	@	jquery-migrate.min.js?ver=3.3.2:2
    e.<computed>	@	jquery-migrate.min.js?ver=3.3.2:2
    error	@	owm-weather-ajax.js?ver=5.9.3:18
    c	@	jquery.min.js?ver=3.6.0:2
    fireWith	@	jquery.min.js?ver=3.6.0:2
    l	@	jquery.min.js?ver=3.6.0:2
    (anonymous)	@	jquery.min.js?ver=3.6.0:2
    load (async)		
    send	@	jquery.min.js?ver=3.6.0:2
    ajax	@	jquery.min.js?ver=3.6.0:2
    s.ajax.s.ajax	@	jquery-migrate.min.js?ver=3.3.2:2
    (anonymous)	@	owm-weather-ajax.js?ver=5.9.3:4
    e	@	jquery.min.js?ver=3.6.0:2
    t	@	jquery.min.js?ver=3.6.0:2
    setTimeout (async)		
    (anonymous)	@	jquery.min.js?ver=3.6.0:2
    c	@	jquery.min.js?ver=3.6.0:2
    fireWith	@	jquery.min.js?ver=3.6.0:2
    fire	@	jquery.min.js?ver=3.6.0:2
    c	@	jquery.min.js?ver=3.6.0:2
    fireWith	@	jquery.min.js?ver=3.6.0:2
    ready	@	jquery.min.js?ver=3.6.0:2
    B	@	jquery.min.js?ver=3.6.0:2

    In the network tab I can see that the POST ajax request response is:

    <p>There has been a critical error on this website.</p><p><a href="https://wordpress.org/support/article/faq-troubleshooting/">Learn more about troubleshooting WordPress.</a></p> with a HTTP 500 error code

    This is still a bit vague to me but it seems there is an issue with Jquery Migrate ?

    • This reply was modified 4 years, 2 months ago by lucaspierru.
Viewing 2 replies - 1 through 2 (of 2 total)