Skip Navigation

[Resolved] WPMU DEV hosting Web Application Firewall JSON errors

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 14 replies, has 3 voices.

Last updated by Jamal 3 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#1968433

My web host WPMU DEV uses a web application firewall to protect the site. This firewall is causing a JSON error when I try to use Toolset. They've suggested that I whitelist all IP addresses Toolset uses to avoid these errors. Do you have a list of these IP addresses?

#1968877

Hello and thank you for contacting the Toolset support.

Below the IP addresses that you would want to whitelist:
toolset.com
- 13.32.181.20
- 13.32.181.52
- 13.32.181.89
- 13.32.181.110

api.toolset.com
- 54.83.22.52
- 3.211.236.109
- 18.232.246.196

If that's not enough, please let me know what requests are blocked from the firewall or what domain names are targeted?

#1972367

Hi Jamal,

No, the problem is still happening. Here are the IP's I've had to allow.

13.32.181.89
54.83.22.52
103.87.112.207
2601:602:77f:fee0:c1b9:eeb1:ae9c:1574
13.32.181.110
2601:602:77f:fee0:b52d:aaad:e7f8:d8e1
18.232.246.196
13.32.181.52
2601:602:77f:fee0:244e:aa62:e20f:7881
13.32.181.20
2601:602:77f:fee0:55eb:f216:47c9:1e06
3.211.236.109

Here's the log error I get:

[Tue Mar 2 15:01:32 2021] 2601:602:77f:fee0:c1b9:eeb1:ae9c:1574 POST /wp-json/ToolsetBlocks/Rest/API/v1/ShortcodeRender?_locale=user "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36"

The domain name is: hidden link

Does that help?
Peter

#1974781

Is this something you can help me with?

#1975457

Hello Peter. We'll do all that we can to help.

This endpoint is used by the Blocks editor /ToolsetBlocks/Rest/API/v1/ShortcodeRender?_locale=user
And this line does not seem an error to me, it seems like an access log:

[Tue Mar 2 15:01:32 2021] 2601:602:77f:fee0:c1b9:eeb1:ae9c:1574 POST /wp-json/ToolsetBlocks/Rest/API/v1/ShortcodeRender?_locale=user "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36"

Maybe from Apache hidden link

To better assist you, I'd like to ask:
- Where do you see these errors? On a log file? Can you share a screenshot?
- Are you stuck somewhere? For example, are you stuck on the blocks editor and not able to save your design?

#1975787
JSON.JPG
JSON response.JPG

Hi Jamal,

Here's a screenshot. This JSON error has popped up repeatedly and on different pages since I installed Toolset. It triggered on these pages:

hidden link
hidden link

Does that help?
Peter

#1975821

To better assist you with this issue without affecting your live site, please follow the instructions in my private reply(March 5, 2021 at 2:02 pm) to migrate your website into our online platform. This way we can check server-related issues, and also compatibility issues with other components(themes and plugins) of the site without impacting your live users.

#1975869

Thanks Jamal. The site is migrating now.

#1975873

Once the migration finishes, please create an administrator user for me and share it in your next message. I'll set it to be private.

#1975951

I don't seem to be able to log in to the site. I used a masked login area at /wp-mana but it does not seem to be working. Do I need to re-migrate without the masked login area?

#1976061

I have disabled the wp-defender plugin and created an administrator user programmatically for me. The issue was reproduced, and I noticed that the REST calls were giving 404 errors. I added the following to the top of the .htaccess file and it fixed the issue. I was able to edit both pages. You can try to login and check it on the migrated site:

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

https://wordpress.org/support/article/htaccess/

I hope this helps. Let me know if you have any questions.

#1976107

It seems to work great. Thanks Jamal! Should I just add that code in the .htaccess file on the main site then?

#1976547

Yes, exactly. Add the following code at the top of the .htaccess file. If it does not work for you, please allow me temporary access to your website, with FTP access too to check this further. ** Make a database backup before sharing credentials. **

#1989673
#1993319

As Christian is helping in the following ticket, I'll mark this one as resolved.
https://toolset.com/forums/topic/i-am-having-repeated-json-response-errors-when-using-toolset/