PHP Execution Time and PHP Max Input Vars not changing when php.ini is edited

Posted in: Newspaper
Post count: 15

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

Post count: 124

I use a file with the name .user.ini in the root folder.

with the content:

max_input_vars = 5000
memory_limit = 256M

Not sure about the cron issue. Where is this configured?

  • This reply was modified 5 years by anderss1.
Post count: 15

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?

Post count: 124

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)

Post count: 15

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

Post count: 15

What gets me is the execution time is being set properly but the max input vars is not. (I have checked for typos, ha was one of my first thoughts…)

  • This reply was modified 5 years by matsati.
Post count: 124

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

Post count: 15

It is as if the theme is not reading the PHP.ini file, really weird. I am at a loss, nothing is working. All of these issues started with recent theme update. 🙁

Post count: 124

The theme is not supposed to read the php.ini but your hosting server.

Post count: 18283

Hello !

If you are having trouble with setting up the requirements our suggestion is to contact your hosting company. They should be able to fullfill it to you.

Thank you !

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.