Home › Toolset Professional Support › [Resolved] Cannot save changes when there is a loop involved
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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: Asia/Kolkata (GMT+05:30)
This topic contains 11 replies, has 2 voices.
Last updated by Minesh 4 months, 1 week ago.
Assisted by: Minesh.
Hi,
all of a sudden, I cannot save any change on pages where there is a view loop on the page, like here: hidden link or here hidden link
The Gutenberg "update" button is greyed out and I cannot click it...
I have purged the cache, and also went to Toolset troubleshooting page and cleared the GUID to attachment id cache.
Can you please help me find out what is wrong and how to fix it?
Thank you in advance
Hello. Thank you for contacting the Toolset support.
Do you see any errors with your browser's console?
Can you please confirm you are using latest Toolset plugins? We just published hotfix release for Toolset plugins last week:
- https://toolset.com/2024/07/toolset-1-6-16-essential-updates-for-wordpress-6-6-and-better-workflow/
In addition to that - Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?
Hello Minesh,
the plugins are updated to the latest version.
I do have errors in the console when inside the edit page. I attach a screenshot. In the home page edit, 3 errors are related to either wpml or Toolset:
1)- a "Failed to load resource: the server responded with a status of 404 ()" for the path hidden link
2)- an "Uncaught (in promise) Error:No path matching the URL and method of the request has been found.. at app.js?ver=4.6.11:83:53104" for the path hidden link
3)- "Failed to load resource: the server responded with a status of 500 ()" for the path hidden link
In the dashboard, I have 2 errors related to wpml:
1) GET hidden link 404 (Not Found)
2) Uncaught (in promise) Error: No path matching the URL and method of the request has been found at hidden link
In the blog template editing page, I have even more errors. The main ones that appear several times are:
1) GET hidden link 404 (Not Found)
2) GET hidden link 404 (Not Found)
3) GET hidden link 500 (Internal Server Error)
Do you know what this means and how to fix it?
Thank you in advance
It seems either server blocking the request or you have other errors.
Can you please share admin access details and on what page I can see the errors you shared.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I have just sent you the access credentials to a staging site.
In the error log I also have these errors:
Stack trace:
#0 /home/customer/www/raypa.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-view-base.class.php(1370): WPV_View_Base->validate_meta_html_content('[wpv-layout-sta...', 'Loop', Array)
#1 /home/customer/www/raypa.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-view-base.class.php(1390): WPV_View_Base->_validate_loop_meta_html('[wpv-layout-sta...')
#2 /home/customer/www/raypa.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-post-object-wrapper.class.php(234): WPV_View_Base->_set_loop_meta_html('[wpv-layout-sta...')
#3 /home/customer/www/raypa.com/public_html/wp-content/plugins/toolset-blocks/backend/Services/ViewService.php(252): WPV_Post_Object_Wrapper->__set('loop_meta_html', '[wpv-layout-sta...')
#4 /home/customer/www/raypa.com/public_html/wp-content/plugins/toolset-blocks/backend/Controllers/V1/Views.php(264): OTGS\Toolset\Views\Services\ViewService->save('35641', Array)
#5 /home/customer/www/raypa.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): OTGS\Toolset\Views\Controllers\V1\Views->update_item(Object(WP_REST_Request))
#6 /home/customer/www/raypa.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/toolset-views/...', Array, NULL)
#7 /home/customer/www/raypa.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))
#8 /home/customer/www/raypa.com/public_html/wp-includes/rest-api.php(428): WP_REST_Server->serve_request('/toolset-views/...')
#9 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#10 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#11 /home/customer/www/raypa.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#12 /home/customer/www/raypa.com/public_html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#13 /home/customer/www/raypa.com/public_html/wp-includes/class-wp.php(813): WP->parse_request('')
#14 /home/customer/www/raypa.com/public_html/wp-includes/functions.php(1336): WP->main('')
#15 /home/customer/www/raypa.com/public_html/wp-blog-header.php(16): wp()
#16 /home/customer/www/raypa.com/public_html/index.php(17): require('/home/customer/...')
#17 {main}
thrown in /home/customer/www/raypa.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-view-base.class.php on line 1505
When I checked the edit page:
- hidden link
I can see the view block is stuck in the middle and dont load at all and as you shared there are many requests with 403 errors.
Can you please check with your server authority where you hosted the site and check why those requests are blocked.
- hidden link
Hi Minesh, thank you for your reply.
I am waiting for a response from Siteground.
In the meantime, I have noticed that the errors that shows the staging site are quite different from the ones shown by the production site.
The production site does not shows any 403 error, they are mainly 404 errors...
Maybe the 403 errors are related to the fact that is a staging site?
404 errors are page not found errors:
- hidden link
I suggest you should try to host a site on different server or even on your local machine and check if you abele to see those errors on different server.
I am in the process of replicating the website on a different server, I will then check whether the errors are still there...
Ok - please make sure to check on different server.
Hi,
I came across this support thread: https://toolset.com/forums/topic/wpmu-dev-hosting-web-application-firewall-json-errors/ and, following the advice found there, I added the following lines in htaccess:
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
and the problem is gone...
I would like to know what I am doing though: can you please tell me what the above code does?
Well - that is htaccess rules. You can find more details about:
- hidden link
You can find more details about here:
- https://developer.wordpress.org/advanced-administration/server/web-server/httpd/
More info:
- hidden link
Still - I strongly suggest, you should just check this with your hosting authority and check with them what would be the best fix for the issue you have.