PrestaShop pHp.ini Location Does Not Go To Server’s Main pHp.ini

By | October 10, 2014

PrestaShop pHp.ini Location Does not Go To Server’s Main pHp.ini location. The server is a VPS running multiple PS websites, sharing root php.ini file.

I have one website for testing.
And another website is my live PS store.

Both websites were upgraded from v.1.4.4.1 over to v.1.6.0.9 successfully.

On the testing site in PS BO, Advanced Parameters > Configuration Information: I configured Required parameters & Optional parameters successfully.. “Optional parameters OK“

I did this by editing main pHp.ini file on the server (/usr/local/lib/php.ini).

Prior to upgrading the live PS store, I noticed that in live store BO, Advanced Parameters > Configuration Information displayed Required & Optional parameters that I had already configured in server’s main pHp.ini

To confirm configuration, I created phpinfo.php and both testing & live sites display identical configurations.
Configuration File (php.ini) Path /usr/local/lib
Loaded Configuration File /usr/local/lib/php.ini

Regardless, I upgraded live PS store in hopes that the upgrade process would resolve the issue.. It did not.

As a result, when I access PS live store running v.1.6.0.9 and attempt to access translations, I receive the following warning.

Warning! Your PHP configuration limits the maximum number of fields allowed in a form
1000 for max_input_vars.
Please ask your hosting provider to increase this limit to 4043 at least, or you will have to edit the translation files.

I posted some help on PS forum and I was directed with a free module (Display pHP Environment) that allowed me to see another pHp.ini file inside my /admin/ folder. It was like looking for a needle in a hay stack, until I used the free Display pHp Environment module.

Resources

ps configuration not reflecting server’s main pHp.ini: http://www.prestashop.com/forums/topic/367958-ps-configuration-not-reflecting-server%E2%80%99s-main-phpini/#entry1827905
Free Module, Display pHp Environmnet: http://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/