Title: Can not save php blocks , 403 error
Last modified: March 24, 2021

---

# Can not save php blocks , 403 error

 *  Resolved [dfreerider](https://wordpress.org/support/users/dfreerider/)
 * (@dfreerider)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/)
 * Hi,
 * I am unable to update or save any blocks. Console gives the following errors 
   on save
 *     ```
       Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://webadresss.com/wp-admin/worker-php.js' failed to load
       POST https://webadress.com/wp-json/lazy-blocks/v1/update-block-data/?_locale=user 403
       {code: "invalid_json", message: "The response is not a valid JSON response."}
       ```
   
 * Sometimes the error looks like this:
 * `Response {type: "basic", url: "https://webadress.com/wp-json/lazy-blocks/v1/
   update-block-data/?_locale=user", redirected: false, status: 403, ok: false, …}`
 * I’ve tried to disable all plugins and nothing seems to solve this.
 * This error occurs regardless of the content of the block, even with a basically
   empty php block, like for instance
 *     ```
       <?php
       echo 'test';
       ?>
       ```
   
 * Really hoping for some help.
 * Best
 * -Espen
    -  This topic was modified 5 years, 4 months ago by [dfreerider](https://wordpress.org/support/users/dfreerider/).
    -  This topic was modified 5 years, 4 months ago by [dfreerider](https://wordpress.org/support/users/dfreerider/).
    -  This topic was modified 5 years, 4 months ago by [dfreerider](https://wordpress.org/support/users/dfreerider/).

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

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/#post-14269626)
 * Hey Espen.
 * Unfortunately, I can’t reproduce this problem locally. Can you create a private
   ticket in our support system [https://nk.ticksy.com/](https://nk.ticksy.com/)
   in the “Bug Reports” category?
 * Regards, nK.
 *  [frogsplash](https://wordpress.org/support/users/frogsplash/)
 * (@frogsplash)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/#post-14371025)
 * I’m running into this same issue on multiple installations, was there any resolution?
    -  This reply was modified 5 years, 2 months ago by [frogsplash](https://wordpress.org/support/users/frogsplash/).
 *  Thread Starter [dfreerider](https://wordpress.org/support/users/dfreerider/)
 * (@dfreerider)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/#post-14371311)
 * Hi frogspash,
 * I didn’t have time to get to the bottom of the issue. I couldn’t get it to work
   on my production server, although it worked on my development server. In the 
   end, I switched to ACF Blocks and redid the blocks using that.
 * I’m sorry to hear that you are having the same issue. Hopefully, the plugin author
   can work with you to see it resolved.
 * Best
 * -Espen
 *  [frogsplash](https://wordpress.org/support/users/frogsplash/)
 * (@frogsplash)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/#post-14371883)
 * Funniest thing… that mirrors my situation exactly. Worked fine on dev, borked
   on production. Which makes me wonder…
 * I was able to create *new* blocks and edit them on the production server just
   fine. It’s only those that I imported from dev – using the export tool. I wonder
   if something in that import mechanism leads to this error.
 * (something hopefully that helps the developer track down the bug…)
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/#post-14406797)
 * Hey [@frogsplash](https://wordpress.org/support/users/frogsplash/)
 * As I already wrote here, I can’t reproduce this problem locally. Can you create
   a private ticket in our support system [https://nk.ticksy.com/](https://nk.ticksy.com/)
   in the “Bug Reports” category?
 * Instead of moving to another plugin, we may try to find the problem and provide
   a quick fix.
 * p.s. this topic will be marked as resolved.
 * Regards, nK.

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

The topic ‘Can not save php blocks , 403 error’ is closed to new replies.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/can-not-save-php-blocks-403-error/#post-14406797)
 * Status: resolved