Title: PHP Parse error in vendor/MobileDetect.php
Last modified: October 16, 2025

---

# PHP Parse error in vendor/MobileDetect.php

 *  Resolved [FonzieTheDog](https://wordpress.org/support/users/delbono72/)
 * (@delbono72)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/php-parse-error-in-vendor-mobiledetect-php/)
 * I found this in logs:
 * PHP Parse error: syntax error, unexpected ‘array’ (T_ARRAY), expecting function(
   T_FUNCTION) or const (T_CONST) in public_html/wp-content/plugins/back-in-stock-
   notifier-for-woocommerce/includes/vendor/MobileDetect.php on line 244
 * Don’t know where it came from.

Viewing 1 replies (of 1 total)

 *  Plugin Author [ProPluginsLab](https://wordpress.org/support/users/propluginslab/)
 * (@propluginslab)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/php-parse-error-in-vendor-mobiledetect-php/#post-18693462)
 * Hello there,
 * Good Day!
 * Thanks for sharing the log.
 * That error usually occurs when the PHP version on your server is too old and 
   doesn’t support certain syntax used in the plugin file.
 * Please check your PHP version – the plugin requires PHP 7.4 or higher.
 * You can resolve this by updating your PHP version from your hosting control panel
   or asking your hosting provider to do it for you.
 * Once updated, clear your site cache and check again – the error should no longer
   appear.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘PHP Parse error in vendor/MobileDetect.php’ is closed to new replies.

 * ![](https://ps.w.org/back-in-stock-notifier-for-woocommerce/assets/icon-256x256.
   gif?rev=3349374)
 * [Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro](https://wordpress.org/plugins/back-in-stock-notifier-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/back-in-stock-notifier-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ProPluginsLab](https://wordpress.org/support/users/propluginslab/)
 * Last activity: [7 months, 2 weeks ago](https://wordpress.org/support/topic/php-parse-error-in-vendor-mobiledetect-php/#post-18693462)
 * Status: resolved