While checking my wordpress site, I have realised that on site health both "PHP memory limit" and "Max input time" are shown as "-1".
If I am not mistaken this would mean that it can use all the PHP memory it wants to. Nonetheless, I have not set this memory limit, and when trying to set it in the wp-config file as 40MB, which is the standard, the value does not change. I have checked and I have no php.ini file nor .htaccess defining this value.
3
Answers
If your website is on a live server, log into cpanel (assuming that is what you’re using). Look for php selector or multi-php editor, You should see the option to edit memory limit and Max input time.
If you don’t see php selector or multi-php editor, then you’ll have to contact your host to edit it for you.
A. Please follow the process:
Example:
Server Path: https:www.example.comtest.php
Or localhost path http::localhostwordpress_foldertest.php
B. You can also add this function into wp-config:
define(‘WP_MEMORY_LIMIT’, ‘256M’);
I was facing the Same issue. Now I have resolved by that below reference.
Please follow this :
https://slicedinvoices.com/question/increase-php-memory-limit/