Hello i am new to prestashop so excuse me for this issue might be common i am not sure i have prestashop version 1.6 and now i am translating modules and when i save i get redirected to a blank page but my newly translations are saved i don't understand why this is happening although it didn't happen while i was translating the Frontoffice translations.I think maybe because of the long list of modules which result 4505 translations.I have a godaddy economy hosting package and here is my custom php.ini
max_input_vars = 5000
post_max_size = 128M
upload_max_filesize = 256M
memory_limit = 128M
It should work as memory_limit is set to 128M. You can this check the below links.
LINK 1
LINK 2
LINK 3
If this doesn't work, try ini_set('memory_limit', '512M');
Related
I can't upload product images from backend, always the last image is incomplete and doesn't upload, no matter if is a single image o are multiples images, the progress bar is freeze.
I deleted the cache, I activated the debug mode, I checked the php_error.log and prod.log, dev.log in the prestashop installation and I can't see any error there. Well, I only can to see an Ajax error in debug mode and browser console, a POST petition without status response (see attachments). How I Can debug this?
The images are very small < 500kb.
What setting or log I must to check?
My current settings are:
OS: Ubuntu 18.04.2
Prestashop: 1.7.5.2
Folders Permissions: 755
Files Permissions: 644
PHP: 7.1
memory_limit = 1024M
max_execution_time = 300
max_input_time = 300
upload_max_filesize = 20M
post_max_size = 20M
max_input_vars = 10000
safe_mode = off
Browsers: Chrome, Firefox, Opera.
Que hay acerca de esto:
Que navegador usas? ya intentaste con otro navegador?
I checked the modules installed that could affect the product backend area and I found [Free Module] Image Optimization Via Resmush.it Service.
When I deactivated this module the product images uploads works fine. Now, I must check what is the cause of the issue into this module.
I have attempted to make a few changes to php via .htaccess, yet none have yielded any results. For example:
php_value memory_limit 256M within will not activate.
Attempting to set SetEnv PHPRC /home/username/public_html/php.ini or any similar incantation, such as SetEnv PHPRC /home/username/some_path, will not work yield any difference in phpinfo. I DO see that _SERVER["PHPRC"] is indeed set, but no values are overwritten such as that noted above.
My phpinfo is as follows:
https://gist.github.com/ylluminate/08efd9a2844723631214
I'm wondering if I'm missing an apache module that's not allowing this to work as expected for a custom php.ini or phprc. Further This is an Apache 2.4.4 installation on a VPS over which I have 100% control (Linode) and using WHM + cPanel.
Since PHP 5.3 you can use .user.ini files, given that PHP is setup to run via the CGI/FastCGI SAPI.
http://php.net/configuration.file.per-user
It's a simple extension of the main php.ini and allows specifying options equivalently:
memory_limit = 256M
upload_tmp_dir = /tmp
Usually you can place one of these in the DOCUMENT_ROOT. But every directory may contain one, so options may vary per script/folder. It's meant as full alternative to Apaches/mod_php .htaccess setting directives.
I am trying to increase the maximum post size limit on my server.
Here is the .htaccess file:
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200
However it does not seem to work and throws a 500 Internal server error.
Any ideas why this could be happening and how to overcome this?
As far as I can tell, your syntax is correct. However, the php_value Apache directive is provided by the mod_php module. If you don't run PHP as Apache module (e.g., it runs as FastCGI or with some other SAPI) that directive won't be defined, thus the 500 error.
There're many ways to change PHP settings. In practice, I've found that hosting services that run CGI often provide a custom php.ini file somewhere in your FTP account. Additionally, if you run PHP/5.3.0 or newer you can use .user.ini files. Last but not least, there's ini_set() within code.
I have this weird problem.
Whenever i try to increase the post_max_size & upload_max_filesize to 2500M, my website seems to hang on me. Pages will continue to load, but any attempt to login or submit forms will not work. It simply ignores the POST as if it never was sent.
But, when i change post_max_size & upload_max_filesize back to 2000M, the website behaves normally and allows POSTs to go through.
Any ideas?
EDIT: Im referring to post_max_size & upload_max_filesize inside my php.ini although i hope that wasn't stating the obvious.
It's probably this limitation in (32-bit) PHP:
Be careful not to exceed the 32 bit signed integer limit (if you're using 32bit versions) as it will cause your script to fail.
hope someone can help as I'm not sure what's going on here - I have a live site where I want to allow file uploads of over 2MB. I have set the standard config options in php.ini as follows (running phpinfo() shows these settings fine):
upload_max_filesize 25M 25M
post_max_size 25M 25M
max_input_time 60 60
memory_limit 32M 32M
I also have the same config on a mirror server, where uploads of >2MB also don't work. Both of these servers are CentOS running php 5.1.6, with safe mode on. If I try out the settings above on a local LAMP set up on my laptop, the uploads work fine. So does anyone know if the problem could be a restriction of safe mode or if there are any other settings I need to configure?
Thanks in advance for any pointers.
Maybe this input in a Drupal forum might help.
Did you apply the enctype in your form defenistion?
<form id="putFile" enctype="multipart/form-data" action="...." method="post">