Title: JavaScript error
Last modified: July 30, 2020

---

# JavaScript error

 *  [aegirr](https://wordpress.org/support/users/aegirr/)
 * (@aegirr)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-178/)
 * I am getting this error in WordPress: “Updating failed. Error message: The response
   is not a valid JSON response.”
 * I am using WordPress 5.4.2 and using visual Gutenberg. The error happens when
   I am saving a draft or trying to publish a post. I have found out that the error
   only comes when I put an URL in a text-block. If I use HTML-block with URL there
   is no error. Please fix this!

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

 *  [Jonnyirish](https://wordpress.org/support/users/jonnyirish/)
 * (@jonnyirish)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-178/#post-13190769)
 * Check your apache2.conf file. First make a backup copy, then…
 * The following section is standard:
 *     ```
       <Directory /var/www/>
               Options Indexes FollowSymLinks
               AllowOverride None
               Require all granted
       </Directory>
       ```
   
 * Change AllowOverride **None** to AllowOverride **All **then save it. Restart 
   Apache then should be o.k.
 * This assumes that your v-host file also has the AllowOverride All.
    -  This reply was modified 5 years, 10 months ago by [Jonnyirish](https://wordpress.org/support/users/jonnyirish/).
      Reason: blockquoted word instead of making it bold
 *  Thread Starter [aegirr](https://wordpress.org/support/users/aegirr/)
 * (@aegirr)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-178/#post-13193330)
 * This is a bug in WordPress. I am not going to “fix the bug” by editing WordPress
   locally.

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

The topic ‘JavaScript error’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [response](https://wordpress.org/support/topic-tag/response/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [aegirr](https://wordpress.org/support/users/aegirr/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-178/#post-13193330)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
