Title: syntax error on update
Last modified: July 11, 2020

---

# syntax error on update

 *  Resolved [ulula](https://wordpress.org/support/users/ulula/)
 * (@ulula)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-on-update/)
 * 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](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-on-update/#post-13110557)
 * 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!
 *  [Zexler](https://wordpress.org/support/users/zexler/)
 * (@zexler)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-on-update/#post-13165994)
 * I have php version 7.3. The error is the same.
 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-on-update/#post-13166577)
 * 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](https://wordpress.org/support/users/ulula/)
 * (@ulula)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-on-update/#post-13239103)
 * [@realloc](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/multisite-language-switcher/assets/icon-256x256.png?rev=
   2793358)
 * [Multisite Language Switcher](https://wordpress.org/plugins/multisite-language-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-language-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-language-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-language-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-language-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-language-switcher/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [ulula](https://wordpress.org/support/users/ulula/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-on-update/#post-13239103)
 * Status: resolved