• I have just updated WordPress and now the can’t open my dashboard or even see my website, the error I get is: “Parse error: syntax error, unexpected ‘[‘ in /home/deadkaej/public_html/wp-content/plugins/revslider/includes/framework/colorpicker.class.php on line 72”

    I have deleted the cache and its not helped

Viewing 9 replies - 1 through 9 (of 9 total)
  • Issue seems to be with revslider plugin

    try to disable Revslider plugin by accessing the files through FTP. Here’s the path:
    /home/deadkaej/public_html/wp-content/plugins/
    rename revslider to revslider.old

    I had the same issue, when I updated the Slider Revolution plugin to version 5.4.5.

    A quick and dirty fix:

    Edit the “colorpicker.class.php” file. At line 72, remove the “[0]” part. The line should be:

    return TPColorpicker::process($color, true);

    I’m not sure if I’m now missing any functionality, but at least my website is working again …

    Thread Starter deadmansdust

    (@deadmansdust)

    That worked like a treat, hope it updates properly next time. thanks for the help

    The issue is with the php version you are running (probably php 5.3 or earlier).

    Example:
    // 5.4+ only:
    $this->Auth->user()[‘id’]
    // 5.3 (and earlier) and 5.4+:
    $result = $this->Auth->user()
    $result[id]

    Next update will bring the site down again if they don’t revert that piece of code.

    Instead of removing the [0] add the following which will fix it for now:

    $tp = TPColorpicker::process($color, true);
    return $tp[0];

    • This reply was modified 7 years, 5 months ago by sososinelu.

    Good tips, I got it working again simply by updating PHP version on my web host to 5.6

    Also worked with PHP 7.0.

    Set version PHP 7.0. It’s ok

    Bonjour,
    après une mise à jour, mon blog est bloqué, il ne s’ouvre plus et il est noté:
    Parse error: syntax error, unexpected ‘(‘ in /htdocs/wp-content/plugins/nextgen-facebook/lib/config.php on line 603
    omment dois je faire pour eliminer le problème?
    Merci de votre aide.
    Sandraluz

    I am having a similar problem with envira gallery but do not know how to access the files through FTP. Any help would be appreciated.

    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in /home/content/36/8846736/html/wp-content/plugins/envira-gallery/envira-gallery.php on line 40

    HI I have just uploaded a new theme and wanted to try i out. Its now crashed my site and i get the following.

    Parse error: syntax error, unexpected T_FUNCTION in /var/sites/q/queensmead-tc.co.uk/public_html/wp-content/themes/tijaji/inc/customizer.php on line 9

    I cant even go to the admin page to remove the theme.

    Please can you someone help as i don’t have any idea to fix it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Parse error’ is closed to new replies.