• Resolved ulula

    (@ulula)


    My client just updated his website and everything broke for this sintax error:

    PHP Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in /wp-content/plugins/multisite-language-switcher/includes/MslsPlugin.php on line 263

    PHP 7 is installed on the website. At the moment is deactivated the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    I’m quite sure that PHP7 is not running there. The indicated line uses a return type declaration that came with 7.0.

    Let me know!

    I have php version 7.3. The error is the same.

    Plugin Author Dennis Ploetner

    (@realloc)

    Please, check if your web content is served with PHP 7. The line 263 contains this:

    public static function plugins_url( string $path ): string {

    which wants clearly at least PHP 7.

    Thread Starter ulula

    (@ulula)

    @realloc thanks for your reply. I finally had access to phpmyadmin and you were right, it was php 5. For some strange reason wp was displaying php 7.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘syntax error on update’ is closed to new replies.