Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter asclavijo

    (@asclavijo)

    I’m now getting Error loading block: You are probably offline

    In the Developer Tools, I now see the following errors.

    JQMIGRATE: Migrate is installed, version 1.4.1
    post.php?post=180&action=edit:1 [DOM] Found 16 elements with non-unique id #_ajax_nonce: (More info: https://goo.gl/9p2vKq) <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​ <input type=​”hidden” id=​”_ajax_nonce” name=​”_ajax_nonce” value=​”daa4284691″>​
    post.php?post=180&action=edit:1 Unchecked runtime.lastError: The message port closed before a response was received.
    /favicon.ico:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    admin-modal.js?ver=6.4.0:149 editrecipe false
    post.php?post=180&action=edit:1 Access to fetch at ‘http://www.tastyfamilymeals.com/wp-json/wp/v2/wprm_recipe/836&#8217; from origin ‘http://clavijo.site.nfoservers.com&#8217; has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.
    http://www.tastyfamilymeals.com/wp-json/wp/v2/wprm_recipe/836:1 Failed to load resource: net::ERR_FAILED
    post.php?post=180&action=edit:1 Uncaught (in promise) TypeError: Failed to fetch
    admin-modal.js?ver=6.4.0:149 editrecipe false

    Plugin Author Brecht

    (@brechtvds)

    It looks like a strange setup to have the WordPress Address and Site Address on different domains. That also seems to be causing the problem:

    ‘http://www.tastyfamilymeals.com/wp-json/wp/v2/wprm_recipe/836’ from origin ‘http://clavijo.site.nfoservers.com’ has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.

    It’s trying to access the REST API on the tastyfamilymeals.com domain from the clavijo.site.nfoservers.com domain and that seems to get blocked because it’s cross-domain.

    Thread Starter asclavijo

    (@asclavijo)

    So how do I fix this?

    Plugin Author Brecht

    (@brechtvds)

    The CORS policy would have to be changed or just a regular setup with the WordPress address and site URL being the same domain, at least.

    Who set this up for you?

    Thread Starter asclavijo

    (@asclavijo)

    I set this site up myself. I can say the site was working fine for over 4 years and there were no changes on my end at all. I haven’t been able to modify or create new recipes for about 6 months. I simply went to update a recipe one day and couldn’t.

    Any help you can provide is much appreciated.

    Plugin Author Brecht

    (@brechtvds)

    I’ve never seen a WordPress site that was set up like this.

    Why are these different domains? Does “www.tastyfamilymeals.com” not point to “http://clavijo.site.nfoservers.com&#8221; in its DNS settings?

    Thread Starter asclavijo

    (@asclavijo)

    Thank you so much… I’ve worked with the hosting site and made a change to the site address within WP and it’s working now!

    Thread Starter asclavijo

    (@asclavijo)

    Thank you so much… I’ve worked with the hosting site and made a change to the site address within WP and it’s working now!

    Plugin Author Brecht

    (@brechtvds)

    Happy to hear that worked for you!
    Do let me know if you experience any further issues at all.

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

The topic ‘Not a valid JSON response’ is closed to new replies.