Viewing 5 replies - 16 through 20 (of 20 total)
  • chupo_cro

    (@chupo_cro)

    Hi,

    thank you for the reply. Which function is used to retreive the value? I’ve checked with ini_get() and the value is reported as 128M. However, WP Statistics reports 256M :-/

    Plugin Contributor Greg Ross

    (@gregross)

    We use ini_get() as well, but make sure your in the same context as your WP install, otherwise you may get different results.

    chupo_cro

    (@chupo_cro)

    How can I assure that? If I put:

    <?php echo ini_get('memory_limit'); ?>

    in WP index.php to show the result in the WP pages – will that assure it’s the same context?

    Plugin Contributor Greg Ross

    (@gregross)

    Your best best is probably just to download another WP plugin that can give you memory information, but in the end if it is in the same context it should produce the same result.

    You can see how we get the value from wp-statistics/includes/optimization/tabs/wps-optimization-resources.php, line 37.

    chupo_cro

    (@chupo_cro)

    I’ll try to find out from where comes 256 MB instead of 128 MB. Maybe that is even somehow connected to the problem with opening the Overview page.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘PHP Memory Limit – wrong value in WP-Stats?’ is closed to new replies.