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

    (@gregross)

    We use PHP’s ini_get() function to retrieve this value. It should match.

    Maybe you’ve updated the wrong php.ini?

    Thread Starter haemse

    (@haemse)

    https://php.net/manual/de/ini.core.php#ini.memory-limit

    As said, i’ve set mine to “512M” in /etc/php5/apache2/php.ini

    Plugin Contributor Greg Ross

    (@gregross)

    Have you restarted Apache since you made the change?

    Thread Starter haemse

    (@haemse)

    Yes, several times.

    See for your self: https://www.enad.eu/infophp.php

    Thread Starter haemse

    (@haemse)

    Plugin Contributor Greg Ross

    (@gregross)

    You may need to talk to your hosting provider, we just report back what PHP’s ini_get() returns so since it’s wrong it will be beyond our ability to correct.

    Thread Starter haemse

    (@haemse)

    vServer KVM Debian Apache

    That’s really strange!

    Thread Starter haemse

    (@haemse)

    Do you know where the script section is, so i can have a look at it?

    Plugin Contributor Greg Ross

    (@gregross)

    The WP Statistics code is in wordpress/wp-content/plugins/wp-statistics/includes/optimization/tabs/wps-optimization-resources.php

    Thread Starter haemse

    (@haemse)

    Now this is interesting. If I put

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

    into a .php file the value will adjust according to the main php.ini file after apache restart.

    But the value in the wp statistics resources table will absolutely not change – no chance.

    I changed the value in all my php.ini files on the system (3) and also the suhosin.memory_limit value – but still no chance.

    Also cleared browser cache each time. Isn’t that strange?

    Plugin Contributor Greg Ross

    (@gregross)

    Very strange. Something must be cached somewhere.

    Your not using a caching plug are you?

    Or eAccelorator?

    Thread Starter haemse

    (@haemse)

    No, none of them … ??

    Thanks for your interest in that issue!

    BTW: wouldn’t it be kind of nice to load the statistics content dynamicly? Quicker, easier, cleaner …

    Plugin Contributor Greg Ross

    (@gregross)

    That’s very strange. I wonder if another plugin is messing with the value for some reason. Two things you might want to try:

    1. Temporarily disable your other plugins
    2. Grab https://thisismyurl.com/downloads/wordpress-phpinfo/ and see what php_info() reports from within WordPress.

    Dynamic loading is none of those things ?? It’s slower (multiple connections back to the servers), harder (lots of javascript and server side code to support it) and messier (a whole new layer of code to go wrong).

    chupo_cro

    (@chupo_cro)

    Same here. From phpinfo():

    memory_limit 128M 128M

    Reported by WP-Stats:

    PHP Memory Limit: 256M

    The server is mine, fresh WP install, no cache-ing, no interference with other plugins.

    Plugin Contributor Greg Ross

    (@gregross)

    We pull the value through PHP, so if it’s being reported incorrectly we have no control over it.

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