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

Hello, I have made the modifications but am not getting an error file to generate. I have given you access, please see the added secure note.

I’m sorry, I was too impatient. The debug log did finally generate but it’s giving the same information as in the original post. I am copying it here for your convenience.

    [10-Sep-2025 12:00:19 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/IsGradient.php on line 25
[10-Sep-2025 12:00:19 UTC] 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
Stack trace:
#0 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/IsGradient.php(25): strpos(Array, 'gradient(')
#1 [internal function]: Themeco\Cornerstone\Tss\Functions\IsGradient->run(Object(Themeco\Cornerstone\Tss\Typed\Primitive))
#2 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/BuiltInFunction.php(24): call_user_func_array(Array, Array)
#3 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Operations/FunctionCaller.php(33): Themeco\Cornerstone\Tss\Functions\BuiltInFunction->call(Array)
#4 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Operations/FunctionCall.php(8): Themeco\Cornerstone\Tss\Operations\FunctionCaller->run(Array)
#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)
#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))
#7 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\FlowIf->process(Array)
#8 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/FlowIf.php(16): Themeco\Cornerstone\Tss\Stack->processStatements(Array)
#9 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\FlowIf->process(Array)
#10 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/IncludeCall.php(23): Themeco\Cornerstone\Tss\Stack->processStatements(Array)
#11 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\IncludeCall->process(Array)
#12 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/StyleRule.php(21): Themeco\Cornerstone\Tss\Stack->processStatements(Array)
#13 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\StyleRule->process(Array)
#14 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/FlowIf.php(16): Themeco\Cornerstone\Tss\Stack->processStatements(Array)
#15 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\FlowIf->process(Array)
#16 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Statements/IncludeCall.php(23): Themeco\Cornerstone\Tss\Stack->processStatements(Array)
#17 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Stack.php(108): Themeco\Cornerstone\Tss\Statements\IncludeCall->process(Array)
#18 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Runtime.php(330): Themeco\Cornerstone\Tss\Stack->processStatements(Array)
#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)
#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)
#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))
#22 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#23 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)
#24 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#25 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)
#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)
#27 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#28 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)
#29 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#30 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)
#31 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#32 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)
#33 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#34 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(351): array_map(Object(Closure), Array)
#35 [internal function]: Themeco\Cornerstone\Services\Tss->Themeco\Cornerstone\Services\{closure}(Array)
#36 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(358): array_map(Object(Closure), Array)
#37 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(270): Themeco\Cornerstone\Services\Tss->processElements(788, Array)
#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)
#39 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/Tss.php(260): Themeco\Cornerstone\Util\PostMetaCache->resolve(788, Object(Closure))
#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))
#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))
#42 /nas/content/live/designsyst1dev/wp-includes/class-wp-hook.php(322): Themeco\Cornerstone\Services\FrontEnd->post_loaded()
#43 /nas/content/live/designsyst1dev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#44 /nas/content/live/designsyst1dev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#45 /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Services/FrontEnd.php(174): do_action('cs_late_templat...')
#46 /nas/content/live/designsyst1dev/wp-includes/class-wp-hook.php(324): Themeco\Cornerstone\Services\FrontEnd->setup_after_template_include('/nas/content/li...')
#47 /nas/content/live/designsyst1dev/wp-includes/plugin.php(205): WP_Hook->apply_filters('/nas/content/li...', Array)
#48 /nas/content/live/designsyst1dev/wp-includes/template-loader.php(104): apply_filters('template_includ...', '/nas/content/li...')
#49 /nas/content/live/designsyst1dev/wp-blog-header.php(19): require_once('/nas/content/li...')
#50 /nas/content/live/designsyst1dev/index.php(17): require('/nas/content/li...')
#51 {main}
  thrown in /nas/content/live/designsyst1dev/wp-content/themes/pro/cornerstone/includes/classes/Tss/Functions/IsGradient.php on line 25

Hi @dtsui,

Our development team is aware of this problem and is looking into it. And a fix will be added in one of the upcoming releases.

Thanks

Hi, do you have an estimated timeline? Currently all of our sites that have been upgraded are experiencing one issue or another due to this.

Next update with be Monday or the Monday after. Is there some special Dynamic content you are using on colors? That’s really the only thing I could think is causing the issue.

It appears to be an issue with a card component that we have created within Pro theme. We are using dynamic content to be able to offer color options on the card (primary and secondary colors that are set via variables). This works in Pro version 6.7.3 but kills any page that these cards are on with version 6.7.4 to the point of throwing a critical error.

Everything we have done to create the cards are from instructions from Themeco; articles and support topics.

Okay it’s probably the color-pair parameter then. We’ll have a fix in the next release. Have a great weekend.

Hello, is there an update on when this will be released? We currently cannot update any of our sites as they will start throwing critical errors where the component has been used on a page.

Thank you!

Fix is out today in 6.7.5. Let us know if you still have an issue when updating. Have a great day.

It worked like a charm. Thank you for getting that fixed in the latest update!

1 Like

You are most welcome, @dtsui

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.