Viewing 15 replies - 1 through 15 (of 51 total)
  • Plugin Contributor Greg Ross

    (@gregross)

    Based on https://github.com/browscap/browscap-php/issues/21, this is an out of memory issue, check your current php memory limit.

    Thread Starter tokar86a

    (@tokar86a)

    How match do i need? My limits is on 256M

    Thread Starter tokar86a

    (@tokar86a)

    The optimize tab say i have PHP Memory Limit: 256M

    But in the php info file i have more then that.

    Plugin Contributor Greg Ross

    (@gregross)

    256 Should be fine. How much memory does the optimization tab say is being used?

    Thread Starter tokar86a

    (@tokar86a)

    Memory usage in PHP: 13,071,072 Byte

    Memory usage in PHP
    Last Overview page memory usage: 110,362,624 Byte

    Memory usage in the overview page

    Plugin Contributor Greg Ross

    (@gregross)

    Looks alright, it must be a bug in the browscap library.

    How many error messages are you seeing, one or many?

    There’s a newer version of the browscap library if you want to give it a try (it will be in the next release of WP Statistics as well).

    Replace (and keep a backup of it, just in case) wordpress/wp-content/plugins/wp-statistics/includes/classes/browscap.php with the version at :
    https://raw.githubusercontent.com/browscap/browscap-php/2.0.5/src/phpbrowscap/Browscap.php

    Thread Starter tokar86a

    (@tokar86a)

    I had many like 10 or something.

    I still get this error now even when i have raise the memory:

    [Wed Sep 16 15:52:29.232708 2015] [fcgid:warn] [pid 22467:tid 140399593072384] [client 131.253.24.138:63021] mod_fcgid: stderr: PHP Fatal error: Unsupported operand types in /home/tokar86a/public_html/wp-content/plugins/wp-statistics/includes/classes/Browscap.php on line 356
    [Wed Sep 16 15:52:32.354124 2015] [fcgid:warn] [pid 22468:tid 140399509153536] [client 131.253.26.251:9726] mod_fcgid: stderr: PHP Fatal error: Unsupported operand types in /home/tokar86a/public_html/wp-content/plugins/wp-statistics/includes/classes/Browscap.php on line 356
    zend_mm_heap corrupted

    Thread Starter tokar86a

    (@tokar86a)

    When will you release the next WP Statistice? version?

    Plugin Contributor Greg Ross

    (@gregross)

    There’s no timeline for the next release yet.

    If it is a significant problem for you, you can disable the browscap code via Statisitics->Settings->Extenrals

    Thread Starter tokar86a

    (@tokar86a)

    But if i disable the browscap do it dont end up whit some problem when it comes to detect robots?

    Plugin Contributor Greg Ross

    (@gregross)

    Yes, it’s not something I’d recommend. I would recommend trying the new version of the library if possible.

    Do you have access to your web server logs? Could you find the user agent string in them that is causing the fatal error?

    Thread Starter tokar86a

    (@tokar86a)

    I am not sure what i should be looking for? I have access to every log. I have my own VPS.

    Thread Starter tokar86a

    (@tokar86a)

    Where should this Browscap.php file be uploaded to?

    Plugin Contributor Greg Ross

    (@gregross)

    Take a look at your web server log at the same time as when one of the errors occurred and see if the user agent string is recorded, it would look something like:

    Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

    The browscap.php file is located here: /home/tokar86a/public_html/wp-content/plugins/wp-statistics/includes/classes

    Thread Starter tokar86a

    (@tokar86a)

    I dont find any user agent string record in my access logs

Viewing 15 replies - 1 through 15 (of 51 total)
  • The topic ‘Unsupported operand types in Browscap.php’ is closed to new replies.