• Resolved meriellloyd

    (@meriellloyd)


    When trying to update a post or page on local dev site i keep getting this error “Updating failed. Error message: The response is not a valid JSON response.”

    Doesn’t happen on live site.

    I have run Health Check & Troubleshooting mode but still get the error so it’s not a theme or plugin issue.

    I DON’T get the error when running the Classic Editor plugin. I prefer the new block editor so would like to fix this issue than rather just avoid it.

    Any help/tips would be greatly appreciated.

    Many thanks,

    • This topic was modified 4 years, 4 months ago by James Huff. Reason: moved to Locahost Installs forum
Viewing 15 replies - 31 through 45 (of 53 total)
  • https://youtu.be/j18pvsCYjV0 i have fix it like that

    I also got this error. I have built a website on my Raspberry Pi to learn and have fixed many errors for this.
    To solve this error:
    Step 1: enable rewrite module

    
    $ sudo a2enmod rewrite
    $ systemctl restart apache2
    

    Step 2: modify apache site configuration
    $ sudo nano /etc/apache2/sites-available/000-default.conf

    add some directives like below:

    
    <VirtualHost *:80>
        ServerName example.com
        ServerAlias www.example.com
        
        RewriteEngine on
        RewriteCond %{SERVER_NAME} =example.com [OR]
        RewriteCond %{SERVER_NAME} =www.example.com
        RewriteRule ^ http://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
        
        <directory /var/www/html>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Require all granted
        </directory>
    
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    

    Restart Apache
    $ systemctl restart apache2

    I read from this post Removing Index.php From the URL Slug in WordPress

    Hi,

    I am having the same JSON issue, this occurred after we went to 5.5.3.
    – I have tried the Classic Editor and the Disable Gutenberg plugin options, however all this did was create a new problem where the editor was stuck in text, wouldn’t go to visual and had no text mod options.
    – I went looking for the Settings/permalink option, only to find that there is no permalink under my settings button.
    – I found a work around by going through edit site/settings, then finding the permalink “/%year%/%monthnum%/%day%/%postname%/” and deleting it, the only option.
    This though isn’t ideal, as it is displaying ?page_id=115 and has started causing issues with links into the blogs from other sites. Further to this if I try to run any classic editor plugins it still causes the same issue mentioned above.

    Wondering if anyone has found any new solutions?

    We have the issue on sites behind AWS Loadbalancers.

    for example, two of our sites use Cloudflare -> AWS ELB -> EC2, when taking AWS ELB out and pointing Cloudflares DNS directly to a single EC2 instance the error goes away.

    The same sites also have the same Gutenberg issues on Localhost if we run them within docker environments.

    • This reply was modified 3 years, 4 months ago by brand42. Reason: Adding the same issue but for docker

    Just update your permalinks after that will work !!

    Hello @macmanx,

    I am facing the issue of “the response is not a valid JSON response.”

    for me i removed additioal / from the end eg. https://abc.com/ to https://abc.com and it worked.

    When I was updating Shortcode in block editor I was getting this error, I tried multiple scenarios even by updating Perma Links but it didn’t worked.
    Later I used Classic Editor WordPress.org plugin and tried to update the shortcode it was functioning smoothly as expected and no errors while saving the page.

    I faced same problem on WordPress. I can’t published any thing on my website Primary Ka Master.

    i just started a new theme Otography. i realize this is a wordpress issue not theme issue. this is the first time in months i’ve had to work on my websites and now i’m experiencing this issue.

    i’ve made the settings adjustment as suggested – no luck.

    i’ve deactivated any possible plugins (beaver builder) since this WP version seems to have its own blocks. – no luck.

    help?

    and no, i’m not a web designer. just a photographer and educator needing to maintain his own websites.

    help appreciated.

    mhollimc

    (@mhollimc)

    HI – I haven’t posted in a while to my blog – since last July. I just tried to post and am getting that message
    “Publishing failed. The response is not a valid JSON response”

    I have my permalink set to “post” and want to keep it that way for SEO.

    I am not a developer – an entrepreneur ready to rock the online blog/vlog portal.

    Please help!
    Holli

    mhollimc

    (@mhollimc)

    Me again – yes seems to have something to do with the Title field. It doesn’t save it when I select “save draft”…and doesn’t allow me to input anything that it likes.

    mhollimc

    (@mhollimc)

    And.. me again. If I published from Beaver Builder or Quick update – it allowed me to do this. With no issue with title or slug. Hmmm

    MattLit

    (@mattlit)

    @mhollimc Hi, not sure if this will help, honestly, as i’m not a WP nerd…just a photographer who does his own sites.

    I was also using BB and had built out two sites using it. The majority of the work had to be rebuilt from scratch using the new WP Gutenberg method of blocks. Some of the blocks could be converted. Some could not.

    I have been told BB works with this new WP setup…but I have not had luck and get the same warning. I’ve given in to the WP Gutenberg blocks. They’re pretty limited compared to BB from what I can tell.

    I’ve been assimilated.

    [ Signature deleted ]

    solarwoman

    (@solarwoman)

    I am now getting this same problem. I have tried all the things you people have suggested and nothing has worked. I did just update the theme. I don’t know if that has anything to do with it but I tried to go back to the old theme and that doesn’t work, either.
    Anybody have any more suggestions?

Viewing 15 replies - 31 through 45 (of 53 total)
  • The topic ‘ERROR Updating failed. Error message: The response is not a valid JSON response.’ is closed to new replies.