• Resolved mbsharp

    (@mbsharp)


    Using PHP7, WP5.0.3.
    I have had two users report an error message when submitting images, and I have tested and found the same myself.

    There was a previous post here about message [U011] but that was with a 404 error. The message I get is for two possibilities (1) 8M limit exceeded, or (2) time exceeded.
    I suspect the message is from PHP and not from WP as such and I have no WP error log to look at.

    My server/PHP configuration is for 30 second execution time, which seems to be conventional. And, for 64MB maximum media upload. Neither of those would seem to be the problem. But I also have 8MB maximum post/page upload. That 8MB limit is set the same on three different sites by my provider, so I doubt I will get it changed.

    Do you think the EWZ upload of images is tested against the page/post limit even though the upload is not really of a page. Given our 2MB limit per image (which typical images undershoot easily) that will limit the number of images which can be uploaded at any one time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mbsharp

    (@mbsharp)

    I can now answer my own enquiry.

    The totality of images uploaded in one EWZ submit batch is tested for size against the PHP option post_max_size. In my case, that value was 8MB, and that was not nearly enough for up to 20 images at an average of 1MB each.

    post_max_size is set by the hosting provider, but there are various ways of overriding the size, depending on what the hosting provider is prepared to permit. In my case, I could increase the limit by adding a php.ini file to my site’s root folder. In the php.ini file, I wrote post_max_size = 25M and that revised the limit from 8M to 25M as requested.

    Plugin Author Josie Stauffer

    (@joanne123)

    Yes, certainly the 8M limit is applied. If you are allowing 2M per image, you will need to tell your users to limit the number of images uploaded at one time.

    EntryWizard will let you allow more images per layout, but will warn you about the maximum upload.

    If you allow more than 4 per webform, you should warn your users not to upload more than 4 at one time. If they overrun either the time or the size limits, they will get error messages, but they can refresh the page to see which ones actually got uploaded, and then go on to add more.

    Hello checked this mine is already set at 64mb. Am having trouble attaching images to a page, getting a php memory error so was hoping this would solve it but alas it won’t. Anyone has any ideas they’d be gratefully received. Already have php memory set to 256mb.

    Thread Starter mbsharp

    (@mbsharp)

    Make sure you are looking at the correct PHP setting.

    I only referred here to post_max_size, which for me was 8MB and I have managed to change it to 25MB. Now that I have the method, I could change it to anything else, and the EWZ default is actually 100MB.

    There is a separate PHP option upload_max_filesize, which for me is 64MB. The usual recommendation is for this to be smaller than post_max_size to allow for text in a post in addition to any image. However, it is not critical and I haven’t changed it.

    The upload size test may be against the smaller of post_max_size and upload_max_size. In my case the former is smaller.

    I set an EWZ image limit of 2MB, but the average is only 1MB, so hitting any limit depends on the mix from the entrant. I am running interclub events with 15-20 images per entrant. Not like an individual competition with far fewer per entry.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error message [U011]’ is closed to new replies.