Hello,
I am having trouble with getting the correct values for the PHP Execution Time and PHP Max Input Vars for Newspaper theme. I am currently on PHP 7.4 installed and am running Newspaper Version: 10.3.9.1. I followed the system setup guide (https://forum.tagdiv.com/system-status-parameters-guide/) I restarted the php and load pages on the website, but nothing I do seems to get these settings to change (ie. PHP Execution Time 30 and PHP Max Input Vars 1000). Any suggestions on why this is happening?
I also noticed after this new theme update, basically bricked my cron scheduler. Nothing is running. I get this error:
“cURL error 28: Connection timed out after 3001 milliseconds”
Cant seem to figure out how to fix this either, any comments and suggestions would be greatly appreciated! đ
—
Duane
I was able to get all of the variables set except the max input variables, it just doesn’t seem to want to take. I put this in both the PHP.ini and the htaccess file and newspaper is stuck at 1000.anyone have any other ideas what might be forcing this 1000 value?
I would put the settings in the “.user.ini” file, not the “php.ini” file. The .user.ini file goes into the wordpress installation root. In the htaccess file I would remove everything – I don’t think it’s working unless you have a very special server setup. Anyway, you should only have your settings in one single file.
Observe that if you execute a function the htaccess file and php.ini in that folder will take precedence over you htaccess file in the root and also php.ini and .user.ini in the root. So be careful!
The only thing I have in my php.ini file is:
expose_php = Off
You should check all your settings with the phpinfo function from PHP yourself:
https://www.php.net/manual/en/function.phpinfo.php
Do not rely on the Newspaper theme for this (they do not check the real server settings at times)
Ok,
I moved everything over to the .user.ini file and no change, the max_input_vars is equal to 1000. This is really strange. I even tried putting this in the root, under the website, and in the php dir and the same, it is as if something is forcing this to be 1000.
I am at a total loss now. Before it was simply a matter of modifying the php.ini file. now this doesnt work with this new newspaper version.
—
Duane
There could a php.ini file in the theme folder overriding.
Put this function inside a PHP file: https://www.php.net/manual/en/function.phpinfo.php
You can upload it to various location and check the PHP settings.
The screen output should look like this:
https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page