Skip Navigation

[Resolved] Migrated to a new server but archive pages are now blank. Useragent error

This thread is resolved. Here is a description of the problem and solution.

Problem:

Get some PHP errors when using PHP 8:

https://toolset.com/forums/topic/migrated-to-a-new-server-but-archive-pages-are-now-blank-useragent-error/#post-2273923

Solution:

PHP 8 is currently not supported due to some issues:
https://toolset.com/toolset-requirements/

Please downgrade to PHP 7.4, and test again

Relevant Documentation:

This support ticket is created 3 years 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by chrisC-27 3 years ago.

Assisted by: Luo Yang.

Author
Posts
#2272983

We migrated our website hidden link to a new server/provider. All pages are working fine, except for the archive pages
hidden link
hidden link
hidden link

In the browser we see 1 problem with a js library wp-emoji-release

"Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform
A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
Note that for performance reasons, only the first access to one of the properties is shown.
1 bron
wp-emoji-release.min.js:1
Meer informatie: User-Agent String Reduction"

We thought it had to do with CORS, and added Header Set Access-Control-Allow-Origin "*" to .htaccess but it did not help.

Best regards,
Chris

#2273719

Hello,

There should be some PHP errors in your website, please try to get the PHP debug logs:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
section "PHP Debugging"

#2273923

Hi, this is the error we get:

Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php:358 Stack trace: #0 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(358): array_merge(post_author: Array, post_type: Array) #1 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache(Array, Array, Array) #2 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php(866): WPV_Cache::generate_native_cache(Array, Array) #3 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/class-wp-hook.php(303): WPV_WordPress_Archive_Frontend::extend_archive_query_for_parametric_and_counters(Object(WP_Query), Array, '270') #4 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #5 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #6 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php(1058): do_action('wpv_action_exte...', Object(WP_Query), Array, '270') #7 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php(2123): WPV_WordPress_Archive_Frontend->initialize_archive_loop() #8 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/class-wp-hook.php(303): WPV_WordPress_Archive_Frontend->wpv_initialize_wordpress_archive_for_archive_loop('270') #9 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #10 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #11 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/inc/cell_types/wpddl.cell_views_loop.class.php(38): do_action('wpv_action_wpv_...', '270') #12 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(1011): WPDD_layout_loop_views_cell->frontend_render_cell_content(Object(WPDD_BootstrapThree_render)) #13 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(604): WPDD_layout_cell->frontend_render(Object(WPDD_BootstrapThree_render)) #14 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(91): WPDD_layout_row->frontend_render(Object(WPDD_BootstrapThree_render)) #15 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(137): WPDD_layout->frontend_render(Object(WPDD_BootstrapThree_render)) #16 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(135): WPDD_layout_render->render_to_html() #17 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(135): WPDD_layout_render->render_to_html() #18 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(453): WPDD_layout_render->render_to_html() #19 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layouts.render.manager.class.php(574): WPDD_layout_render->render() #20 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes-auto/wpddl.layouts.render.manager.class.php(556): WPDD_Layouts_RenderManager->get_rendered_layout_content(Object(WPDD_layout), Array) #21 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/classes/wpddl.class.php(1449): WPDD_Layouts_RenderManager->get_layout_content_for_render(Object(WPDD_layout), Array) #22 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/inc/api/ddl-theme-api.php(47): WPDD_Layouts->get_layout_content_for_render('', Array) #23 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/layouts/inc/api/ddl-theme-api.php(13): get_the_ddlayout('', Array) #24 /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/themes/toolset-starter/index.php(5): the_ddlayout() #25 /customers/9/2/3/gerardimontium.be/httpd.www/wp-includes/template-loader.php(106): include('/customers/9/2/...') #26 /customers/9/2/3/gerardimontium.be/httpd.www/wp-blog-header.php(19): require_once('/customers/9/2/...') #27 /customers/9/2/3/gerardimontium.be/httpd.www/index.php(17): require('/customers/9/2/...') #28 {main} thrown in /customers/9/2/3/gerardimontium.be/httpd.www/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php on line 358

#2273959

Are you using PHP8 in your new webserver?
If it is, PHP 8 is currently not supported due to some issues:
https://toolset.com/toolset-requirements/
Please downgrade to PHP 7.4, and test again

#2273995

My issue is resolved now. Thank you!