• Resolved Dennis Bareis

    (@dbareis)


    I don’t care what UpDraft does while it is working, but it should not reconfigure PHP’s memory limit for all processes. I tested this by enabling/disabling the plugin while displaying a webpage that outputs the value of ini_get(‘memory_limit’);

    Updraft version 1.24.3

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support pbevanudp

    (@pbevanudp)

    Hello,

    Would it be possible for you to provide the exact steps and code you used to determine this please?

    Thread Starter Dennis Bareis

    (@dbareis)

    Hi, code to display the value is ini_get(‘memory_limit’); as mentioned, how I determined it was your plugin was to disable them all and enable them one at a time until the value changed from 128 to 256, then I toggled your plugin on and off a number of times as a sanity check.

    I used this plugin “https://en-au.www.ads-software.com/plugins/health-check/” and its troubleshooting mode.

    I went though the settings but if there is an option doing this I didn’t see it.

    • This reply was modified 5 months, 3 weeks ago by Dennis Bareis.
    Plugin Support vupdraft

    (@vupdraft)

    UpdraftPlus does not have the ability to do this. To increase your memory limit you would need to add a line of code to either your wp-config.php or your php.ini.

    Thread Starter Dennis Bareis

    (@dbareis)

    I don’t know who told you that but they are wrong, the change may not be intentional but it is there nevertheless. Of course as it is so simple to reproduce I assume you have tried and failed to show this occurring? I tested with the only other enabled plugin being PODs (which I need for my diagnostic page).

    I don’t intend to debug your code but here is at least one example of your code raising the limit (there are other more cryptic examples and there may be other less cryptic ones):

    @ini_set('memory_limit', $new.'M');

    I took some nice annotated pictures before I remember that these WP forums don’t support them….

    • This reply was modified 5 months, 3 weeks ago by Dennis Bareis.
    Plugin Support vupdraft

    (@vupdraft)

    You can upload screenshots to this service: https://snipboard.io/ and then paste the link.

    Thread Starter Dennis Bareis

    (@dbareis)

    Plugin Support vupdraft

    (@vupdraft)

    Can you walk me through step by step how you did your test (including which plugins etc you used to provide the the information).

    I want to try and replicate it in the exact way that you have so please give as much information as possible.

    Thread Starter Dennis Bareis

    (@dbareis)

    Steps:
    1. Install: https://en-au.www.ads-software.com/plugins/phpinfo-wp/
    2. With updraft uninstalled, use (#1) it to see “memory_limit”. Make sure it is not 256M (as you won’t see a change!)
    3. Install Updraft
    4. Check “memory_limit” again.

    It appears that uping the value doesn’t directly cause memory allocation by PHP processes so I’m not so worried about this anymore. Its only purpose is to stop rouge processes from consuming all the memory so one of those will get up to 256MB before being terminated rather than stopping earlier at the value that was intended by the webmaster (although 256M is half of what is available on my server).

    • This reply was modified 5 months, 2 weeks ago by Dennis Bareis.
    Plugin Support vupdraft

    (@vupdraft)

    I can confirm that UpdraftPlus did not change my memory limit (as mentioned before, it simply does not have the ability to do this)

    With UpdraftPlus: https://snipboard.io/gVHMn3.jpg, https://snipboard.io/ov4e5N.jpg

    Without UpdraftPlus: https://snipboard.io/hVQbBE.jpg, https://snipboard.io/ov4e5N.jpg

    You are looking at two different values, one is you Memory limit and one is your Max memory limit.

    Administration tasks require much [more] memory than [a] usual operation. When in the administration area, the memory can be increased or decreased from the WP_MEMORY_LIMIT by defining WP_MAX_MEMORY_LIMIT.

    Thread Starter Dennis Bareis

    (@dbareis)

    Look, I don’t want to continue arguing, my pictures were taken outside of admin screens and were affected by the installation and removal of only your plugin, but as I said it appears not to effect the consumption of memory except in exceptional logged circumstances so I can live with the way it works and in any case I have implemented a workaround in my main pages.

    If someone else wants to carry the torch for this issue, then let them.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.