POST Content-Length limit of 8388608 bytes = ~8M, which I think is the default setting for post_max_size in php.ini
This is sort of a guess for me with xampp, but take a look in C:\\xampp\php\php.ini (adjust your path if required, but you are looking for the file “php.ini”
Look for these two settings:
; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M
and this setting:
Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M
Try bumping both of those to – let’s say (a totally arbitrary number here)- 64M each, and see if that changes the symptom at all. You will need to restart Apache after saving the changes you make in php.ini in order for the changes to take effect. See if that changes anything.
Thread Starter
ozzy78
(@ozzy78)
Ok I have just done that. The only thing that has changed is the limit. So:
Warning: POST Content-Length of 121419149 bytes exceeds the limit of 67108864 bytes in Unknown on line 0
I think 121419149 bytes is around 121M. That seems way too big for just a theme. There must be something else going on there. Also, that’s not the error I would usually expect to see first if the archive you were trying to upload was simply larger than your php upload limit.
What theme are you trying to install? Is it from a .zip directory located on your computer that you are trying to upload and install? Or, does it happen when trying to download and install a theme that’s already listed in the wordpress.org theme directory browser in your dashboard?