• Resolved asclavijo

    (@asclavijo)


    I am using WordPress and WP Recipe Maker for a recipe website. I haven’t been able to update any of my Posts – I click on the recipe, get the message, click within the block i wish to modify, and it hangs on ‘Loading Recipe’. Eventually and error pops up: Updating failed. You are probably offline.

    Upon further review, it appears it’s because of an invalid JSON response. I have deactivated all other plugins, changed, themes, installed classic editor, disabled Gutenberg, activated Health Check & Troubleshooting (no issues – green), completed the PHP Compatibility checker (all ok). I’ve also tried changing permalinks from Plain, to Post name, back to Plain. Nothing has worked so far.

    The blog posts suggests a URL problem. So on my WordPress site settings I have these:
    WordPress Address (URL)
    https://clavijo.site.nfoservers.com/Wordpress
    Site Address (URL)
    https://www.tastyfamilymeals.com
    Enter the address here if you want your site home page to be different from your WordPress installation directory.

    When I type the top one in a search bar, i get Epic 404 – Article Not Found. This could be my issue. I changed it to: https://clavijo.site.nfoservers.com/Wordpress/wp-admin/, however, that completely booted me out of wordpress and i had to have by database restored by NFO. So… I’m back to square one. Any help is appreciated!

    The page I need help with: [log in to see the link]

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 ‘https://www.tastyfamilymeals.com/wp-json/wp/v2/wprm_recipe/836&#8217; from origin ‘https://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.
    https://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:

    ‘https://www.tastyfamilymeals.com/wp-json/wp/v2/wprm_recipe/836’ from origin ‘https://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 “https://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.