When I try to load one from your modules it gives me an error that says: "1G" is not a valid maximum size
Hello
It looks like you can't upload ANY .zip file to shop's back office no matter if it is a module, theme, or anything else.
The problem you have is related to configuration of php.ini in your hosting environment that points that maximum upload size is "1G" while symfony (prestashop is based on symfony engine) accepts values in "K" and "M" (but not in "G"). The problem you have is well known and described here: https://github.com/PrestaShop/PrestaShop/issues/14568 and https://github.com/PrestaShop/PrestaShop/pull/10892
There are two possible solutions:
best regards
milosz
It looks like you can't upload ANY .zip file to shop's back office no matter if it is a module, theme, or anything else.
The problem you have is related to configuration of php.ini in your hosting environment that points that maximum upload size is "1G" while symfony (prestashop is based on symfony engine) accepts values in "K" and "M" (but not in "G"). The problem you have is well known and described here: https://github.com/PrestaShop/PrestaShop/issues/14568 and https://github.com/PrestaShop/PrestaShop/pull/10892
There are two possible solutions:
- alter php ini and add there clause like
upload_max_filesize = 100M
this method will solve all upload problems in your shop's back office, not only upload of modules but any file - modify prestashop file: /vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/File.php
change code:$factors = array(
'k' => 1000,
'ki' => 1 << 10,
'm' => 1000000,
'mi' => 1 << 20,
);
to:$factors = array(
'k' => 1000,
'ki' => 1 << 10,
'm' => 1000000,
'mi' => 1 << 20,
'g' => 1000000000,
'gi' => 1 << 30,
);
Module installation
Follow these steps:
- Unzip (decompress) the module archive file
- Using your FTP software
- Place the folder in your PrestaShop /modules folder
- Connect to the BackOffice of your shop
- Go to Back Office >> Modules.
- Locate the new module in the list, scrolling down if necessary.
- In the row for the new module, click Install.
- Locate the module again. If necessary, click >> Configure.
- Once configuration is complete, be sure to test the module immediately to confirm that it functions as planned.
best regards
milosz
0 comments:
Post a Comment