Update to Pro 6.7.4 causes a critical error on site front end

We have some sites that are crashing with a critical error after upgrading from 6.7.3 to 6.7.4. I have tried twice on one of them with the same result. The update seems to go fine and then when you try and access the front page, you get a critical error. We have checked the logs and this is what it tells us.

PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/IsGradient.php:25#012Stack trace:#012#0 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/IsGradient.php(25): strpos(Array, 'gradient(')#012#1 [internal function]: Themeco\Cornerstone\Tss\Functions\IsGradient->run(Object(Themeco\Cornerstone\Tss\Typed\Primitive))#012#2 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/BuiltInFunction.php(24): call_user_func_array(Array, Array)#012#3 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Operations/FunctionCaller.php(33): Themeco\Cornerstone\Tss\Functions\BuiltInFunction->call(Array)#012#4 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Operations/FunctionCall.php(8): Themeco\Cornerstone\Tss\Operations\FunctionCaller->run(Array)#012#5 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Evaluator.php(49): Themeco\Cornerstone\Tss\Operations\FunctionCall::run(Object(Themeco\Cornerstone\Tss\Stack), Array)#012#6 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/FlowIf.php(15): Themeco\Cornerstone\Tss\Evaluator->resolve(Object(Themeco\Cornerstone\Parsy\Util\Token))#012#7 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\FlowIf->process(Array)#012#8 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/FlowIf.php(16): Themeco\Cornerstone\Tss\Stack->processStatements(Array)#012#9 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\FlowIf->process(Array)#012#10 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/IncludeCall.php(23): Themeco\Cornerstone\Tss\Stack->processStatements(Array)#012#11 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\IncludeCall->process(Array)#012#12 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/StyleRule.php(21): Themeco\Cornerstone\Tss\Stack->processStatements(Array)#012#13 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\StyleRule->process(Array)#012#14 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/FlowIf.php(16): Themeco\Cornerstone\Tss\Stack->processStatements(Array)#012#15 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\FlowIf->process(Array)#012#16 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/IncludeCall.php(23): Themeco\Cornerstone\Tss\Stack->processStatements(Array)#012#17 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\IncludeCall->process(Array)#012#18 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Runtime.php(330): Themeco\Cornerstone\Tss\Stack->processStatements(Array)#012#19 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Runtime.php(237): Themeco\Cornerstone\Tss\Runtime->runModuleStatements(Object(Themeco\Cornerstone\Tss\Stack), Array, Array, Array, true)#012#20 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Runtime.php(174): Themeco\Cornerstone\Tss\Runtime->module(Object(Themeco\Cornerstone\Tss\Stack), 'el:e15-v8', Array, Array)#012#21 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(339): Themeco\Cornerstone\Tss\Runtime->process('el:e15-v8', 'el:button', Array, Object(Closure))#012#22 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#23 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)#012#24 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#25 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)#012#26 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(317): Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#27 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#28 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)#012#29 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#30 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)#012#31 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#32 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)#012#33 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#34 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)#012#35 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)#012#36 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(358): array_map(Object(Closure), Array)#012#37 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(270): Themeco\Cornerstone\Services\Tss->processElements(788, Array)#012#38 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Util/PostMetaCache.php(25): Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(788)#012#39 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(260): Themeco\Cornerstone\Util\PostMetaCache->resolve(788, Object(Closure))#012#40 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Resolver.php(336): Themeco\Cornerstone\Services\Tss->registerDocument(Object(Themeco\Cornerstone\Documents\Content))#012#41 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/FrontEnd.php(157): Themeco\Cornerstone\Services\Resolver->loadDocument(Object(Themeco\Cornerstone\Documents\Content))#012#42 /nas/content/live/designsyst1dev/wp-includes/class-wp-hook.php(322): Themeco\Cornerstone\Services\FrontEnd->post_loaded()#012#43 /nas/content/live/designsyst1dev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#012#44 /nas/content/live/designsyst1dev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#45 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/FrontEnd.php(174): do_action('cs_late_templat...')#012#46 /nas/content/live/designsyst1dev/wp-includes/class-wp-hook.php(324): Themeco\Cornerstone\Services\FrontEnd->setup_after_template_include('/nas/content/li...')#012#47 /nas/content/live/designsyst1dev/wp-includes/plugin.php(205): WP_Hook->apply_filters('/nas/content/li...', Array)#012#48 /nas/content/live/designsyst1dev/wp-includes/template

Hello @dtsui,

Thanks for writing to us,

Please add the code into your wp-config.php for debugging setup, and the error logged into the file named debug.log inside the wp-content folder.

You can let us know if you find any errors that are related to our theme or theme-bundled plugins. We can do further investigation based on that.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video that will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o

Please share the FTP details and WordPress admin login details in the secure note so that we can debug it properly.

Thanks