Title: Error php-browser-detection.php on line 44
Last modified: August 22, 2016

---

# Error php-browser-detection.php on line 44

 *  Resolved [wladimir.delcros](https://wordpress.org/support/users/wladimirdelcros/)
 * (@wladimirdelcros)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/)
 * Hi, I have a line 44 error:
 * This is the line of the error: $ browscap = new \ phpbrowscap \ Browscap (PBD_DIR_PATH.’
   cache ‘);
 * I can not activate the plugin.
 * Do you have a solution?
 * [https://wordpress.org/plugins/php-browser-detection/](https://wordpress.org/plugins/php-browser-detection/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238228)
 * Can you paste the exact error message?
 * Also, try deleting the plugin and reinstalling the latest version.
 *  Thread Starter [wladimir.delcros](https://wordpress.org/support/users/wladimirdelcros/)
 * (@wladimirdelcros)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238230)
 * Thank you for your answer. I deactivate and delete the plugin. But impossible
   to even reinstalled the latest version 3.1 linked in another post. But that changes
   nothing
 * Here is the error:
 * Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /data/alternc/
   html/c/***ddd***/www/triangle/wp-content/plugins/php-browser-detection/php-browser-
   detection.php on line 44
 * I can send you the back office if you want to see
 * best regards
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238233)
 * You most likely do not have the proper version of PHP. That error suggests that
   you do not have at least PHP 5.3.
 *  [Blastopore](https://wordpress.org/support/users/blastopore/)
 * (@blastopore)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238472)
 * Hi, I have the last version of the plug-in (3.1.1) and also have a line 44 error:
 * Parse error: syntax error, unexpected T_STRING in “php-browser-detection.php”
   on line 44
 * This happened when I changed my install from local with PHP 5.5 where I didn’t
   have any problem to my online web hosting which have PHP 5.4
 * Do you have an idea how to solve this error ?
 * By the way, thanks for this awesome plug-in !!! Very useful.
 * Thanks
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238475)
 * That error indicates you are not using PHP 5.4, but probably an older version.
   That issue is caused by PHP versions 5.2 and older which do not support namespaces.
 * See: [http://php.net/manual/en/language.namespaces.rationale.php](http://php.net/manual/en/language.namespaces.rationale.php)
 * You will need to ask your host to upgrade to at least PHP 5.3.
 * If you are 100% certain you are using version 5.3 or higher post a link to the
   site with the output of php_info() and we will investigate.
 *  [Blastopore](https://wordpress.org/support/users/blastopore/)
 * (@blastopore)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238495)
 * Hello, I checked again and it appears I misread the php-info… I’m in php 5.2 
   that’s were my problem come from. Thank you for you reply !

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error php-browser-detection.php on line 44’ is closed to new replies.

 * ![](https://ps.w.org/php-browser-detection/assets/icon-256x256.png?rev=999338)
 * [PHP Browser Detection](https://wordpress.org/plugins/php-browser-detection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-browser-detection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-browser-detection/)
 * [Active Topics](https://wordpress.org/support/plugin/php-browser-detection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-browser-detection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-browser-detection/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Blastopore](https://wordpress.org/support/users/blastopore/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/error-php-browser-detectionphp-on-line-44/#post-5238495)
 * Status: resolved