WebsiteBaker Community Forum

WebsiteBaker Support (2.11.x) => General Help & Support => Topic started by: henri on February 25, 2018, 03:46:23 PM

Title: Error message concerns upload limit
Post by: henri on February 25, 2018, 03:46:23 PM
During installation of module FolderGallery 2.1.0  (2,08MB)
I get the following error message in WB 2.11

[110] The uploaded file exceeds the upload_max_filesize directive in php.ini
You have not made a selection!
Title: Re: Error message concerns upload limit
Post by: Gast on February 26, 2018, 12:24:06 PM
the error means: your server has a upload-limit with 2Mb and the zip-file has 2.1 Mb

i add a repaired, smaller module version in addons -> https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=067A205&lang=EN
Title: Re: Error message concerns upload limit
Post by: henri on February 26, 2018, 08:50:15 PM
Thanks for the help jacobi22
Title: Re: Error message concerns upload limit
Post by: henri on March 10, 2018, 08:54:50 AM
Increase the upload limit of the server as stated by jacobi22.

On a server with DirectAdmin you can easily increase the upload limit yourself by adjusting the settings on the php version to the desired upload limit.
Title: Re: Error message concerns upload limit
Post by: Gast on March 10, 2018, 01:00:23 PM
The real upload size in a form is a combination of several PHP settings. For example upload_max_filesize, post_max_size, memory_limit and also file_upload, max_file_uploads etc.
If you increase e. g. only upload_max_filesize (default in PHP = 2 Mb), you have to multiply this value in a multi-upload by the number of fields, should be about half the value for post_max_size by the sum of all fields. Post_Max_Size is the sum of all data (PHP-Default = 8Mb) sent via the form, including text, possible hidden fields, etc. And this value, in turn, should not exceed about 5% of the memory_limit (PHP default = 128Mb).
file_upload is only a switch that allows upload (yes/no - default = yes)
max_file_uploads is the number of files that can be sent in the form (PHP-Default = 20)
Adjusting values here may be a solution for individuals, but not everyone can or may or knows where to set them.
In addition, the change of e. g. upload_max_filesize always requires an adjustment of other settings, e. g. upload_max_filesize would result in an increase of upload_max_filesize to 8 Mb, that other form data might not arrive, because post_max_size is also limited. If you also increase this value, it may be missing at memory_limit, the memory on this server. It cannot be increased endlessly. Often there are neighbours on the server who also need memory.

In the special example it was about the foldergallery vers 2.1.0, which was a few kB above this limit of 2Mb. The reason for this was the will to deliver new gallery effects, which were often included in the complete package. As an example, the effect "Highslider" - /Folder templates/default/js. Included in the package are 14 Javascript files with a size of 700 kb on the hard disk and 228 kb in ZIP. Only one of these 14 files is needed, the file highslide-full. js. All other files differ in compression or are variations to the highslide effect.
On the other hand, new scripts increase the size of the package like the new uploader, which was simply necessary because the old files like the Flash-Upload, which was used earlier and can be hacked by every 10-year-old, had to be replaced.

The basic goal of any CMS add-on, whether for WB, WP or typo3, must be to maintain these default values in case of an upload installation. No provider will want to undercut these rather low values.
In the case of this Foldergallery version 2.1.0 this was simply missed, for good intentions, but also because the testers rarely work with the default limits, just about every provider has higher limits nowadays.

Translated with www.DeepL.com/Translator
Title: Re: Error message concerns upload limit
Post by: henri on March 10, 2018, 02:03:05 PM
Thanks for the explanation jacobi22.
Very educational.