Title: Error
Last modified: December 5, 2017

---

# Error

 *  [Henk Verbunt](https://wordpress.org/support/users/hverbunt/)
 * (@hverbunt)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/)
 * After installing the latest version of the plugin, my site creates the following
   error-message:
 * Warning: syntax error, unexpected ‘)’ in Unknown on line 1 in /home/nabelevi/
   public_html/wp-content/plugins/wp-statistics/includes/vendor/browscap/browscap-
   php/src/phpbrowscap/Browscap.php on line 769
 * Catchable fatal error: Argument 1 passed to phpbrowscap\Browscap::resortProperties()
   must be of the type array, boolean given, called in /home/nabelevi/public_html/
   wp-content/plugins/wp-statistics/includes/vendor/browscap/browscap-php/src/phpbrowscap/
   Browscap.php on line 809 and defined in /home/nabelevi/public_html/wp-content/
   plugins/wp-statistics/includes/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.
   php on line 867
 * removal of the plugin fixed it, but re-installing created the same error.
 * I use PHP version: 5.6.18
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-997%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/error-997/page/2/?output_format=md) [→](https://wordpress.org/support/topic/error-997/page/2/?output_format=md)

 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9754437)
 * I am having the same error. If I disable the plugin I can access my site, but
   then it is not logging my statistics. What do I need to do to fix this???
 * EDIT:
    Wordpress version: 4.9.1 Website: [https://dan.bemowski.info](https://dan.bemowski.info)
    -  This reply was modified 8 years, 6 months ago by [dbemowsk](https://wordpress.org/support/users/dbemowsk/).
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9754734)
 * I am assuming that this is from a recent update. It would be nice if there was
   a way to back up to a previous version if something like this were to happen.
 *  [DediData](https://wordpress.org/support/users/dedidata/)
 * (@dedidata)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9755913)
 * Hi Friends,
    Could you please download this beta version and replace it with 
   your current wp-statistics plugin? [https://github.com/wp-statistics/wp-statistics/archive/master.zip](https://github.com/wp-statistics/wp-statistics/archive/master.zip)
 * And let me know about the result
    I am waiting for your reply
 *  [mrbrownrd](https://wordpress.org/support/users/mrbrownrd/)
 * (@mrbrownrd)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9757388)
 * Hello,
 * i tried the beta version also, same problem as the original one. As soon as i
   activate WP-statistics my page goes 500.
 * best regard,
    Klaus
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9758138)
 * Will I loose any of my previous statistics data if I install this one?
 *  [DediData](https://wordpress.org/support/users/dedidata/)
 * (@dedidata)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9759504)
 * [@mrbrownrd](https://wordpress.org/support/users/mrbrownrd/)
    Could you please
   let me know about the new errors in error_log? You can delete error_log file 
   to notify about new errors It creates again
 * [@dbemowsk](https://wordpress.org/support/users/dbemowsk/)
    No, You wont lose
   anything
 *  [mrbrownrd](https://wordpress.org/support/users/mrbrownrd/)
 * (@mrbrownrd)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9761390)
 * I´m not an expert, but i tried to create a new error logfile
 * [07-Dec-2017 19:25:46 UTC] PHP Warning: syntax error, unexpected ‘)’ in Unknown
   on line 1
    in /data/web/e73211/html/apps/wordpress-54649/wp-content/plugins/wp-
   statistics-master/includes/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.
   php on line 770 [07-Dec-2017 19:25:46 UTC] PHP Fatal error: Uncaught TypeError:
   Argument 1 passed to phpbrowscap\Browscap::resortProperties() must be of the 
   type array, boolean given, called in /data/web/e73211/html/apps/wordpress-54649/
   wp-content/plugins/wp-statistics-master/includes/vendor/browscap/browscap-php/
   src/phpbrowscap/Browscap.php on line 810 and defined in /data/web/e73211/html/
   apps/wordpress-54649/wp-content/plugins/wp-statistics-master/includes/vendor/
   browscap/browscap-php/src/phpbrowscap/Browscap.php:868 Stack trace: #0 /data/
   web/e73211/html/apps/wordpress-54649/wp-content/plugins/wp-statistics-master/
   includes/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php(810): phpbrowscap\
   Browscap->resortProperties(false, Array) #1 /data/web/e73211/html/apps/wordpress-
   54649/wp-content/plugins/wp-statistics-master/includes/vendor/browscap/browscap-
   php/src/phpbrowscap/Browscap.php(578): phpbrowscap\Browscap->createCacheNewWay(‘
   <!DOCTYPE HTML>…’) #2 /data/web/e73211/html/apps/wordpress-54649/wp-content/plugins/
   wp-statistics-master/includes/vendor/browscap/br in /data/web/e73211/html/apps/
   wordpress-54649/wp-content/plugins/wp-statistics-master/includes/vendor/browscap/
   browscap-php/src/phpbrowscap/Browscap.php on line 868
 * Hope this is helpful
 * best regards,
    Klaus
 *  Thread Starter [Henk Verbunt](https://wordpress.org/support/users/hverbunt/)
 * (@hverbunt)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9763669)
 * The new plugin: [https://github.com/wp-statistics/wp-statistics/archive/master.zip](https://github.com/wp-statistics/wp-statistics/archive/master.zip)
   didn’t resolve my problem.
    Error message:
 * Warning: syntax error, unexpected ‘)’ in Unknown on line 1 in /home/nabelevi/
   public_html/wp-content/plugins/wp-statistics-master/includes/vendor/browscap/
   browscap-php/src/phpbrowscap/Browscap.php on line 770
 * Catchable fatal error: Argument 1 passed to phpbrowscap\Browscap::resortProperties()
   must be of the type array, boolean given, called in /home/nabelevi/public_html/
   wp-content/plugins/wp-statistics-master/includes/vendor/browscap/browscap-php/
   src/phpbrowscap/Browscap.php on line 810 and defined in /home/nabelevi/public_html/
   wp-content/plugins/wp-statistics-master/includes/vendor/browscap/browscap-php/
   src/phpbrowscap/Browscap.php on line 868
 *  [mrbrownrd](https://wordpress.org/support/users/mrbrownrd/)
 * (@mrbrownrd)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9764148)
 * Seem like we have the same problem with the same issue
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9767590)
 * I think the other guys have a slight problem in their posting of this error. 
   After looking at this again, it is not “Warning: syntax error, unexpected ‘)’
   in …”. It is “syntax error, unexpected ‘}’ in …”.
    Can you tell me what code 
   gets evaluated at line 769 using the parse_ini_string() method? It has something
   to do with patterns parsed from an ini file, but without understanding more of
   how your code works, I can’t attempt to figure it out for myself.
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9767599)
 * For now I had an old copy of 12.0.7 that I had downloaded a long time ago, so
   I switched to using that. It seems to run without errors, so I am going to continue
   to use that until you guys get this figured out. Hopefully it’s soon because 
   the original post on this was 4 days ago.
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9767648)
 * Correction, I am still getting this error. Using the older version though, the
   page appears to load fine, but the error is seen at the very bottom of the page
   instead of preventing the whole page from loading as in the newer version.
 *  Thread Starter [Henk Verbunt](https://wordpress.org/support/users/hverbunt/)
 * (@hverbunt)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9768699)
 * Could it have anything to do with a possible conflict between this plugin and
   Jetpack? I run another website (picture-thizz.nl) without Jetpack and I have 
   no problems there…
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9768718)
 * Henk, I disabled jetpack and still get the error.
 *  [dbemowsk](https://wordpress.org/support/users/dbemowsk/)
 * (@dbemowsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-997/#post-9769034)
 * I’m not saying that something outside of the plugin is not what’s causing it.
   I would like to know what ini file that parse_ini_string() method parses on line
   769. If I knew that I might be able to figure out a fix.

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/error-997/page/2/?output_format=md) [→](https://wordpress.org/support/topic/error-997/page/2/?output_format=md)

The topic ‘Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

## Tags

 * [Browscap](https://wordpress.org/support/topic-tag/browscap/)

 * 25 replies
 * 5 participants
 * Last reply from: [Corey Kretsinger](https://wordpress.org/support/users/corey-kretsinger/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/error-997/page/2/#post-9808843)
 * Status: not resolved