Support » Plugin: WPtouch » syntax error, after upgrade

  • After upgrade wptouch to 4.3 I got following error.

    Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/wptouch/themes/bauhaus/default/functions.php on line 283

Viewing 9 replies - 1 through 9 (of 9 total)
  • It’s the same for me…

    Wp Touch…

    Same problem here, would love a fix of somehow

    Best option:

    Upgrade your PHP to at least 5.4, better 5.6 or greater, see also here.

    Quickfix:

    Replace $classes = []; with $classes = array(); in file/line specified in error message.

    I get….
    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_STRING in /home/……./wp-content/plugins/wptouch/core/class-cache-smash.php on line 104

    @sandyme: Your PHP version is too old for “namespaces”.

    Upgrade your PHP to at least 5.3, better 5.6 or greater, see also here.

    Okay renaming has now helped but can’t have the plugin running at the moment if I am going to get that issue. Is there any idea what coulee be causing this?

    Moderator Steve Stern

    (@sterndata)

    emmageddon: please do not hijack topics. If you are having issues with this plugin, please open your own topic. thanks.

    Hello Steve not my intention to hijack a thread – just trying to say that having same issue as others have stated. Although I understand the reasons, it does seem better to have single threads where users can report the same issue to not overload the forum with lots of topics on the same issue.

    Will start a new thread but hope you can understand why I tried to keep to a similar thread.

    Updated WPtouch from 4.3.1 (problem) to 4.3.2 today and everything works fine on the site where I had the problem described above.

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