Results 1 to 10 of 22

Threaded View

  1. #14
    Join Date
    Sep 2008
    Posts
    19
    Plugin Contributions
    2

    Default Re: File Upload Required [Support Thread]

    Glad you were able to fix your problems jasmel and masantner.

    Thank you jasmel for pointing out the typo "f" at the top of admin/includes/languages/english/attributes_controller.php.

    I'm not quite sure how that slipped through all this time! You have a keen eye! I have resubmitted a version with this bug corrected and it should be available within the next week or so.

    Regarding the setting of post_max_size and upload_max_filesize in general:

    Problem:
    You are given one or both of the following warning messages at the top of your Zen Cart Admin page.
    -> "php.ini setting post_max_size is less than double Maximum File Upload Size, file uploads will not function correctly."
    -> "php.ini setting upload_max_filesize is less than Maximum File Upload Size, file uploads will not function correctly."

    Cause:
    -> Values of upload_max_filesize and post_max_size in your php.ini size are not compatible with the value of Maximum File Upload Size in your Zen Cart admin.

    Solution:
    -> Note: Not all servers allow you to alter php.ini or use .htaccess to alter php settings. If the below solution does not work you should contact your server administrator.

    -> Set Admin->Configuration->Maximum Values->Maximum File Upload Size to the maximum file size you want to allow users to upload. The value of Maximum File Upload size is in bytes (The default value of 2048000 bytes = 1.95 megabytes. Jasmel's setting of 4000000 bytes = 3.81 megabytes)

    -> If you are still being given the warning messages you need to calculate the correct values of upload_max_filesize and post_max_size and alter them in either php.ini or .htaccess, follow the steps below.

    -> upload_max_filesize should be a value bigger than Maximum File Upload size.

    -> post_max_size should be at least double upload_max_filesize. If you are offering 2 file uploads on a single product then you should set post_max_size to 3 times the value of upload_max_filesize. If you are offering 3 file uploads on a single product set post_max_size to 4 times the value of Maximum File Upload size and so on.

    -> To set these values do ONE of the following:
    1) If you have access to your php.ini file, find the lines:
    Code:
    upload_max_filesize
    post_max_size
    Change the values to those you calculated above. You can set the size of upload_max_filesize and post_max_size by changing the lines in your php.ini, for example:
    Code:
    upload_max_filesize = 8M
    post_max_size = 16M
    Which means 8 megabytes and 16 megabytes respectively.
    2) If you do not have access to your php.ini file find the .htaccess file in the root directory of your Zen Cart installation (or make one). Change the values to those you calculated above. You can set the size of upload_max_filesize and post_max_size by adding the following lines to your .htaccess file:
    Code:
    php_value  upload_max_filesize  8M
    php_value  post_max_size  16M
    Where 8M and 16M should be replaced by the values you calculated above.

    -> There are also limits on the time an upload is allowed to take. These limits are also controlled by the php.ini file. You can read more about these settings and Maximum File Upload size in Zen Cart here: https://www.zen-cart.com/tutorials/i...hp?article=406

    Thanks.

    P.S... It's probably worth mentioning that all of these settings are in play even without this modification. They are built into the php language and Zen Cart. All I actually did was add the warning messages to give people some idea when their settings were so grossly wrong that the module was likely to fail.
    Last edited by 1100101; 16 Apr 2011 at 03:07 PM.

 

 

Similar Threads

  1. Zen Lightbox addon [Support Thread]
    By Alex Clarke in forum All Other Contributions/Addons
    Replies: 3725
    Last Post: 20 Feb 2025, 05:46 PM
  2. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  3. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  4. v151 File Upload required addon problem
    By chriscctx in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Mar 2014, 02:45 PM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR