Website transfer causing JSON API error

Hi, I’ve uploaded a localhost install to a live server and I can’t access the headers, footers or content section ven though I could on Localhost.

When I test the site in consol I get the following error

cs.js?ver=2.1.7:sourcemap:56122 Failed to inflate gzip response SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at uncompress (cs.js?ver=2.1.7:sourcemap:56120)
at cs.js?ver=2.1.7:sourcemap:56086
at cs.js?ver=2.1.7:sourcemap:56093
at Array.forEach ()
at cs.js?ver=2.1.7:sourcemap:56081
at tryCatch (cs-vendor.js?ver=2.1.7:sourcemap:51261)
at invokeCallback (cs-vendor.js?ver=2.1.7:sourcemap:51276)
at publish (cs-vendor.js?ver=2.1.7:sourcemap:51244)
at cs-vendor.js?ver=2.1.7:sourcemap:40727
uncompress @ cs.js?ver=2.1.7:sourcemap:56122
cs.js?ver=2.1.7:sourcemap:339 Transition Error EmberError Transition
error @ cs.js?ver=2.1.7:sourcemap:339
cs.js?ver=2.1.7:sourcemap:339 Transition Error EmberError {description: undefined, fileName: undefined, lineNumber: undefined, message: “Assertion Failed: normalizeResponse must return a …op level of a JSON API document must be an object”, name: “Error”, …} Transition {state: TransitionState, intent: C, router: Router, data: {…}, resolvedModels: {…}, …}

Hello @stevewoody82,

Thanks for asking. :slight_smile:

Please try out following general solutions.

  1. Ensure you are fully up to date. See our changelog.
  2. Ensure that you have compatible version of PHP on server. WordPress require PHP 7 or later. You can refer following document for server requirement https://wordpress.org/about/requirements/1
  3. Clear all caches including browser cache then deactivate your caching plugins and other optimization plugins.
  4. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.
  5. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
  6. Remove custom CSS, Javascript and templates.
  7. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.
  8. Contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

If nothing helps, please give us WP Admin and FTP access in a Secure Note.

Thanks.

Thanks,

  1. Up to date
    2, running 5.6 via WPEngine (other sites work fine)
    3, done
    4, done
    5, removed all plugins, re-installed main theme, changed from child to main theme
    6, done by using fresh main theme
    7, done and also on a fresh server
    8, done - already 512

This is he server error log that I keep getting

[Wed Jan 24 23:58:43.216942 2018] [:error] [pid 1920] [client 35.176.155.164:50639] PHP Fatal error: Cannot redeclare class Cornerstone_Shortcode_Generator in /nas/content/live/onlinemastery/wp-content/themes/pro/cornerstone/includes/classes/classic/builder/class-shortcode-generator.php on line 2585

Hi There,

The error cannot redeclare means, you already have a duplicate of the same file/class. Since you’re using Pro, you need to delete the Cornerstone plugin folder which is under your WordPress plugins directory.

/wp-content/plugins/cornerstone/

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.