Getting the following error on latest X theme on WPEngine when we upgrade to PHP 7.2, it’s fine on PHP 7.0
X Theme 6.4.6 / X Child theme 1.0.1
Wordpress 5.0.3
Cornerstone 3.4.6
Error code in WP Enging error logs seems to point to an issue with X Theme and would be great to know if this has been seen before:
The site eventually loads but with the X styling corrupted so keen to resolve this.
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function add_category_to_single(), 1 passed and exactly 2 expected in /nas/content/live/pdllc1/wp-content/themes/x-child/functions.php:54\nStack trace:\n#0 [internal function]: add_category_to_single(Array)\n#1 /nas/content/live/pdllc1/wp-includes/class-wp-hook.php(288): call_user_func_array(‘add_category_to…’, Array)\n#2 /nas/content/live/pdllc1/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#3 /nas/content/live/pdllc1/wp-includes/post-template.php(770): apply_filters(‘body_class’, Array, Array)\n#4 /nas/content/live/pdllc1/wp-includes/post-template.php(557): get_body_class(Array)\n#5 /nas/content/live/pdllc1/wp-content/themes/x-child/framework/views/global/_header.php(9): body_class()\n#6 /nas/content/live/pdllc1/wp-content/themes/x/framework/functions/frontend/view-routing.php(182): include(’/nas/content/li…’)\n#7 /nas/content/live/pdllc1/wp-content/themes/x/framework/functions/frontend/view-routing.php(55): X_View_Router::render(’/nas/conten in /nas/content/live/pdllc1/wp-content/themes/x-child/functions.php on line 54