• Resolved dfreerider

    (@dfreerider)


    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 3 years, 11 months ago by dfreerider.
    • This topic was modified 3 years, 11 months ago by dfreerider.
    • This topic was modified 3 years, 11 months ago by dfreerider.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nikita

    (@nko)

    Hey Espen.

    Unfortunately, I can’t reproduce this problem locally. Can you create a private ticket in our support system https://nk.ticksy.com/ in the “Bug Reports” category?

    Regards, nK.

    I’m running into this same issue on multiple installations, was there any resolution?

    • This reply was modified 3 years, 10 months ago by frogsplash.
    Thread Starter dfreerider

    (@dfreerider)

    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

    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 Nikita

    (@nko)

    Hey @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/ 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.