I am trying to follow this steps because I have some warnings in “Newspaper System Status”
https://forum.tagdiv.com/system-status-parameters-guide/
But when I open wp-config.php and php.ini I can’t find this lines to change. Any of them and I’m using edit>search to do it of course if you mind.
How can I fix this warnings then?
1) max_input_vars 1000 – the max_input_vars should be bigger than 2000, otherwise it can cause incomplete saves in the menu panel in WordPress. To see how you can change this please check our guide here.
2) 40 MB/request – We recommend setting memory to at least 64MB. The theme is well tested with a 40MB/request limit, but if you are using multiple plugins that may not be enough. See: Increasing memory allocated to PHP. You can also check our guide here.
I found another way to change Memory Limit from 40 to 64 at the begining of wp-includes>default-constants.php and set it to 64. Suddenly I only see this error navigating through de website or the admin panel:
( ! ) Parse error: syntax error, unexpected ” );’ (T_CONSTANT_ENCAPSED_STRING), expecting ‘,’ or ‘)’ in /app/public/wp-includes/default-constants.php on line 45
Then I came to default-constants.php and set it to 40 as before to be able to see the site and the error hasn’t disappeared, now I can’t do nothing and I don’t know what to do.
Thanks
Hello,
Unfortunately any code added wrong will cause errors. You maybe missed a ‘;’ or a parentheses or anything else that can go wrong in a code. Please revert to the unmodified file and use the guide in order to increase your system status parameters.
Some rules must be added in not just modified on existing code.
You can also use htaccess for some of the parameters as specified in the guide.
Thank you!
Ok, no problem. Thanks. I created a new site starting from zero and have the same initial problem.
I am trying to follow this steps because I have some warnings in “Newspaper System Status”
https://forum.tagdiv.com/system-status-parameters-guide/
But when I open wp-config.php and php.ini I can’t find this lines to change. Any of them and I’m using edit>search to do it of course if you mind.
How can I fix this warnings then?
1) max_input_vars 1000 – the max_input_vars should be bigger than 2000, otherwise it can cause incomplete saves in the menu panel in WordPress. To see how you can change this please check our guide here.
2) 40 MB/request – We recommend setting memory to at least 64MB. The theme is well tested with a 40MB/request limit, but if you are using multiple plugins that may not be enough. See: Increasing memory allocated to PHP. You can also check our guide here.
Where must I change this then? Thanks
Hello,
There are 2 files that need to be edited. One is wp-config.php and the other is php.ini.
In the wp-config.php you have to add this line to the bottom of the page: define( ‘WP_MEMORY_LIMIT’, ’64M’ );
In the php.ini:
The location of the php.ini may also differ from one server to the other, usually it’s located in the wordpress root, but on some servers it may be found in another location, you have to check the host documentation for more precise details.
1) max_input_vars – This sets how many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately). By default this parameter is set to 1000 and this may cause issues when saving the menu, we recommend that you increase it to 2000 or more.
2) max_execution_time – This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. The theme demos download images from our servers and depending on the connection speed this process may require a longer time to execute. We recommend that you should increase it 60 or more.
3) post_max_size – Sets max size of post data allowed. This setting also affects file upload. To upload large files you have to increase this value and in some cases you also have to increase the upload_max_filesize value.
Depending on the host they can be set from php.ini or .htaccess:
If these parameters exist, you can edit their values if not you have to add them to the file.
max_input_vars = 5000
max_execution_time = 300
post_max_size = 50M
I hope this helps
First I’m trying to edit wp-config.php. Is this the correct place where I added the new memory limit line? Or must be in a different place? I’m not a programmer, so I’m trying to do my best. Sorry about being so newbie.
Thanks
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = ‘wp_’;
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define(‘WP_DEBUG’, false);
define( ‘WP_MEMORY_LIMIT’, ‘64M’ );
/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);
define( ‘WP_ALLOW_MULTISITE’, true );
define (‘FS_METHOD’, ‘direct’);
Hello,
Yes it seems to be added correctly. You should see those values increased in the system status in the theme panel. Always check after you change a parameter.
If you cannot find php.ini, please contact your host as some hosts do not allow access to php.ini.
Thank you!
Ok, I will talk to my host to php.ini issue, but now the main important thing for me is wp-config.php because I have 2 websites with the same error using Newspaper with Visual Composer and there is no way to change it.
I checked the system status in the theme panel (as I told you before after changing it) and nothing has changed after I added the line you told me.
Thanks
-
This reply was modified 9 years by
utzgurx.
Ok, Here is how I did mine and worked properly:
before: https://www.screencast.com/t/ub3Tw59Si
Added code like so: https://www.screencast.com/t/dNO7mEHG
result: https://www.screencast.com/t/Pk9lD7xAsm
You probably have a strong cache on your site that will not allow any change until cleared. Please only use wp super cache and these settings: https://forum.tagdiv.com/cache-plugin-install-and-configure/ and contact your host and have them disable any hosting side cache.
Thank you!