Skip Navigation

[Closed] Update failed after inserting any search field

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 6 replies, has 3 voices.

Last updated by Jamal 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#2159731

I am trying to: I created a view and a maps and everything is fine. By the time im acing a Search field WordPress won't let update the page any more it shows the error Update failed

Link to a page where the issue can be seen:

hidden link

[redacted]

Best regards
Daniel

#2159807

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Daniel

I removed the sensitive information from your post, this is a public forum, and we need to set private replies for you to share such information securely.

I did test the credentials you provided and the admin credentials did not work.

Let me set a private reply to get updated credentials from you.

Can you confirm, the issue you are reporting is when editing the page with a View and Map in the back end, yes?

And you are trying to add a search filter to the View? What field are you trying to filter by? (Or do you mean a text search field?)

#2160621

The page does not save, most probably because of the Javascript errors on the browser console. hidden link
As you can see there are some 500 errors on the server. So, I installed the Filester plugin to activate PHP debugging and check the debug file. https://wordpress.org/support/article/debugging-in-wordpress/

This revealed the following error, which was the only error repeating:

[04-Sep-2021 11:55:08 UTC] PHP Fatal error:  Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php:358
Stack trace:
#0 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php(358): array_merge()
#1 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache()
#2 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(220): WPV_Cache::generate_native_cache()
#3 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/class-wp-hook.php(303): WPV_View_Post_Query->wpv_filter_extend_query_for_parametric_and_counters()
#4 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/plugin.php(189): WP_Hook->apply_filters()
#5 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(848): apply_filters()
#6 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2497): wpv_filter_get_posts()
#7 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2124): WP_Views->render_view()
#8 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(639): WP_Views->render_view_ex()
#9 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/shortcodes.php(356): WP_Views->short_tag_wpv_view()
#10 [internal function]: do_shortcode_tag()
#11 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/shortcodes.php(228): preg_replace_callback()
#12 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/wpv-shortcodes.php(2594): do_shortcode()
#13 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/backend/Services/ViewService.php(144): wpv_do_shortcode()
#14 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/backend/Services/ViewService.php(295): OTGS\Toolset\Views\Services\ViewService->render_preview_html()
#15 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/backend/Controllers/V1/Views.php(264): OTGS\Toolset\Views\Services\ViewService->save()
#16 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/rest-api/class-wp-rest-server.php(1140): OTGS\Toolset\Views\Controllers\V1\Views->update_item()
#17 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/rest-api/class-wp-rest-server.php(987): WP_REST_Server->respond_to_request()
#18 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch()
#19 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/rest-api.php(370): WP_REST_Server->serve_request()
#20 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/class-wp-hook.php(303): rest_api_loaded()
#21 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#22 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/plugin.php(518): WP_Hook->do_action()
#23 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/class-wp.php(388): do_action_ref_array()
#24 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/class-wp.php(750): WP->parse_request()
#25 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-includes/functions.php(1291): WP->main()
#26 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-blog-header.php(16): wp()
#27 /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/index.php(17): require('...')
#28 {main}
  thrown in /var/www/vhosts/schaefer-dein-baecker.de/dev.schaefer-dein-baecker.de/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php on line 358

Please take a full backup and perform the following test, to make sure we isolate the issue and fix it quickly, please check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty-Twenty. It will tell us if there is an interaction issue with your theme.
If the problem disappears, start activating one at a time to track where the incompatibility is produced.

#2161111

Ok is did all of that:

- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty-Twenty. It will tell us if there is an interaction issue with your theme.

Error ist still there if I have the theme twenty-Twenty and only toolset as a plugin activated.

I switched now back to DIVI the latest version but the error is still present.

Best regards
Daniel

#2161145

Can I take a copy of your website, using a plugin, and debug it locally? If yes, I'll install the Duplicator plugin, or the All In One Migration plugin to take the copy.

#2161183

of course ! Go ahead.

thanks
Daniel

#2161251

I took a copy of your website and built it locally and the issue was not reproduced. I believe this happens on your server because you are using a PHP8 version. Toolset does not support PHP yet as you may see on our requirements https://toolset.com/toolset-requirements/

Can you downgrade the PHP version to 7.4 and check if that fixes the issue?

The topic ‘[Closed] Update failed after inserting any search field’ is closed to new replies.