“Trying to upload files larger than 128M is not allowed!” WooCommerce Error

I have a WordPress website that basically has both normal content / blog pages and WooCommerce pages. On the WooCommerce pages, I will at random receive the following error at top of the page:

Trying to upload files larger than 128M is not allowed!

Read More

The strange thing is nothing was being uploaded at the time of this error, nor is there any option to upload anything from the front end. This error happens at random on product pages, category pages and cart pages.

Does anyone have any idea what could be causing this problem?

Thanks in advance
Willem

Related posts

1 comment

  1. The best solution I’ve been able to find so far is, since this is a ‘false error’, hide the error using the following CSS:

    /*-- WooCommerce Errors --*/
    
    #bodywrap .woocommerce-error {
    display: none;
    }
    
    .woocommerce .woocommerce-checkout .woocommerce-error {
    display: block !important;
    }
    

    This seems to hide the ‘false error’ while still displaying things like shopping cart errors.

    If anyone has any better solutions please let me know.

    Thanks

Comments are closed.