Hosting Memory Limit

Hey guys,
I tried to increase the memory limit of my WordPress site and added the following code to the wp-config.php:

define( 'WP_MEMORY_LIMIT', '1024M' );

define( 'WP_MAX_MEMORY_LIMIT', '1024M );

But that does not seem to change anything. I use the plugin Mailster and it still tells me that my memory limit is at 1MB. I tried different memory sizes, does not change anything. I also made sure to add the code before the stop editing part.
Any ideas?
Best
Johannes

  • Aditya Shah
    • DevOps Team Lead

    Hi Johannes

    Hope you are doing great. :slight_smile:

    By default the memory limit on WPMUDEV hosting is 256M and you can’t change that i am afraid, however, the changes made to the wp-config.php will be only showing the limit has changed but won’t really change the php limits. For original limits you can create a php info file like given here https://make.wordpress.org/support/handbook/appendix/creating-a-phpinfo-page/

    About the Mailster plugin you mentioned, i checked your site and found no issues reported by the plugin as you can see in the screenshot below.
    [attachments are only viewable by logged-in members]

    Can you confirm if the issue still persists?

    Best Regards,
    Aditya Shah

  • Johannes
    • The Incredible Code Injector

    Hey Aditya!
    Thanks for your answer. The message was shown on all screens in the backend as a notification, not in the self test. But indeed, it vanished for me as well.
    What I assumed happened: I changed the config.php and it might have taken the plugin some time to realise that. While it does not change the actual memory setting, it might be enough to convince the plugin that there is indeed enough memory. But I might be wrong of course.
    Anyway, the issue seems to be solved. :slight_smile:
    Thanks again
    Johannes

  • Aditya Shah
    • DevOps Team Lead

    Hi again Johannes

    Great to know that the issue is resolved. However, since putting up those limits in wp-config.php won’t be much useful as it would reset in some time. The more information is here https://wpmudev.com/docs/hosting/overview/#modifying-file-size-and-type-limits

    If the issue occurs again after sometime, please remember that the memory limit we set on the hosting is 256mb so if the plugin shows it as 1 mb, its definitely because of some code in some of your plugin or theme. The following flowchart image can assist you during this test: https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    If this is a live website with traffic, I’d rather advise to create a staging environment, meaning a complete and exact copy of this installation into another location/folder in the same server, using a separate database, and perform the test in there instead without worrying about the live site. Reference: https://wpmudev.com/docs/getting-started/getting-support/#chapter-2

    So as you confirmed, we are good for now. If you need any further help, do let us know.

    Best Regards,
    Aditya Shah