Rollback to 3.2.2 resolves problem.
Hi,
Can you please share which PHP version you are using?
Kind Regards.
Trailing comma error “$gradient_attr_key” should not have trailing comma:
Correct function in the file:function get_background_color_var(
$attributes,
$bg_color_attr_key,
$gradient_attr_key
) {
if (!empty($attributes[$bg_color_attr_key])) {
return $attributes[$bg_color_attr_key];
} else if (!empty($attributes[$gradient_attr_key])) {
return $attributes[$gradient_attr_key];
} else {
return "";
}
}
critical error. Website stopped working
Can confirm, same error as OP after latest update, had to deactivate the plugin, please fix ASAP
@davedecc @nims @gregnowak @vovastik
We have fixed the issue and will release an update soon.
The issue is occurring only on PHP 7.x versions, not with the 8 or later versions.
My village website just fell victim to this problem as well. So I had to identify the problem in order to get the website into a state where I could do anything at all.
The site error.log file showed “PHP Parse error: syntax error, unexpected ‘)’, expecting variable (T_VARIABLE) in …/wp-content/plugins/ultimate-blocks/includes/ultimate-blocks-styles-css-generator.php on line 155”. All I did was to move the Ultimate Blocks plugin directory out of the way (thereby disabling it).
A very quick inspection showed that all that was needed was to remove the trailing comma off the parameter list of the get_background_colour_var() function. That’s all it took.
If any one else needs a quick fix… here it is!
Chris
Steer clear of this plugin – you can’t trust them to not take your site down
Hi everyone,
This issue was caused on older PHP version – 7.x
We have fixed it and released a new version.
We apologize for the inconvenience.
Kind regards.