R
Railway•16mo ago
DefiClub

The uploaded file exceeds the upload_max_filesize directive in php.ini

I installed WordPress using a template, and when I was trying to install the template, I encountered this issue: "The uploaded file exceeds the upload_max_filesize directive in php.ini." I couldn't resolve it myself. Please assist in resolving this. Help me set the upload_max_filesize to greater than 50MB or more to avoid any problems.My Service ID is 4a27a92d-eb45-4ac5-b9f6-f574e78558be.
5 Replies
Percy
Percy•16mo ago
Project ID: 4a27a92d-eb45-4ac5-b9f6-f574e78558be
Brody
Brody•16mo ago
@jtmaveryk - what do you think about adding a php.ini to your template to be able to upload larger files?
Jack
Jack•16mo ago
Added to my reminders and todo. 🙂 My apologies for the delay in response, I looked into it and pushed a solution, adding a new ENV variable allowing customization to the max directly, so feel free to set the SIZE_LIMIT variable to 50M and test that. If it doesn't work, reach back out here and I'll revert the change and suggest either the Increase Maximum Upload File Size or WPCode plugins to modify this for you internally.
dalton57918
dalton57918•16mo ago
Could you please add also a variable to increase max_input_vars of php.ini? I have the error below: Thanks Please contact your hosting service and ask them to increase max_input_vars value to 3000 in order to meet the theme requirements.
Jack
Jack•16mo ago
You can add this line to your dockerfile and you should be all set.
RUN echo "max_input_vars = 3000" >> /usr/local/etc/php/php.ini # Add this line to set max_input_vars
RUN echo "max_input_vars = 3000" >> /usr/local/etc/php/php.ini # Add this line to set max_input_vars
Want results from more Discord servers?
Add your server