Critical Website Error

Hi @alexander

Using Beta4 and I created a Condition on an item today and it threw the page I did it on into a Critical Error state - all other pages and parts of the site are fine.

The condition was set on a 4 cell Grid here as a test

Here is the error I got sent.

Error Details

An error of type E_ERROR was caused in line 372 of the file /public_html/wp-content/themes/pro/cornerstone/includes/_classes/class-condition-rules.php. Error message: Uncaught ArgumentCountError: Too few arguments to function Cornerstone_Condition_Rules::expression_string_is(), 1 passed and exactly 2 expected in /public_html/wp-content/themes/pro/cornerstone/includes/_classes/class-condition-rules.php:372

Going back to 5.1.5 resolved the error.

Thanks, Tom.

Hi @tomr96,

Glad you got it fixed by restoring the previous version. The underlying bug here is fixed. When a Dynamic Content based element condition had an empty string on either side of the operation it wasn’t creating a set of function arguments correctly. We’ve got this fixed for the next update.

1 Like

Awesome thank you.

I’ve created all the header and footer in Beta4, so will wait until the fix is released as going back to 5.1.5 didn’t bring the header through 100% the same.

When is the ETA for Beta5?

Thanks, Tom.

Hi @tomr96,

I’m sorry, I don’t have an ETA. Unfortunately this beta cycle is going to be longer than others. We decided to pivot and build out another feature set to be included with this release, so we’re in the middle of doing that at the moment.