I'm using products with multiple variations where the user can navigate between the variations via ajax requests. If one of the variations is out of stock, I will start getting the following error when trying to navigate from that variation to other options:

An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (8 MB) that this server supports.

CommentFileSizeAuthor
#2 add_to_cart_form-3163454-2.patch511 bytesmhawwari

Comments

mhawwari created an issue. See original summary.

mhawwari’s picture

Assigned: mhawwari » Unassigned
Status: Active » Needs review
StatusFileSize
new511 bytes

Apparantly unsetting the add to cart button in this line is causing this error.

$form['actions'] = NULL;

Replacing it with the following fixes the issue:

$form['actions']['#access'] = FALSE;

neslee canil pinto’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.