• Resolved davedecc

    (@davedecc)


    Parse error: syntax error, unexpected ‘)’, expecting variable (T_VARIABLE) in /chroot/home/redacted/redacted.org/html/wp-content/plugins/ultimate-blocks/includes/ultimate-blocks-styles-css-generator.php on line 155

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter davedecc

    (@davedecc)

    Rollback to 3.2.2 resolves problem.

    this is true

    Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    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

    Plugin Contributor Istiak Rayhan

    (@istiakrayhan)

    @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

    Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    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.

    How do I get my website working again? I cannot access it after this error. This is what I get when I try:

    Parse error: syntax error, unexpected ‘)’, expecting variable (T_VARIABLE) in?/var/www/ettrindybere.dk/public_html/wp-content/plugins/ultimate-blocks/includes/ultimate-blocks-styles-css-generator.php?on line?155

    Please let me know what to do, my websites serves important needs supporting people with mental problems.

    if you can access the plugins folder through FTP or some such then you can apply the fix by hand that I and others have posted. That will get you up and running again. Then you can do the update.

    Chris

    Thank you Chris, but I don’t even know to use FTP to access anything

    Otherwise you can use direct access to the file system that the WordPress is installed on or find someone who knows how to do one or other method of access. I’m sorry but there is no other way. Your site will not work without it.

    Chris

    Thanks for helping Chris! I found out that my hosting provider has a feature that repairs WordPress sites, including reinstalling plugins. That fixed it!

Viewing 15 replies - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.