Cannot upload the theme
Summary: Facing installation issues? Learn how to resolve common errors like ‘Are you sure you want to do this?’, ‘Stylesheet is missing’, or ‘The link you followed has expired’. We provide step-by-step solutions to address problems related to PHP configuration settings, ensuring a seamless theme installation experience.
🛠️ 1. “Incompatible Archive” Error
Cause:
A known bug in WordPress 6.4.3 (Trac Changeset 57388).
Fix:
- Go to Plugins → Add New.
- Search for Code Snippets and install it.
- Go to Snippets → Add New.
- Add the following code: phpCopyEdit
add_filter( 'unzip_file_use_ziparchive', '__return_false' );
- Set the snippet to run everywhere and save.
🚫 2. “Are you sure you want to do this?”
Cause:
Your server upload limits are too low or you’re uploading the wrong .zip file.
Fix:
- Contact your hosting provider and ask to increase: iniCopyEdit
upload_max_filesize = 32M post_max_size = 32M
- Also, make sure you’re uploading the correct file:
- Use “Installable WordPress file only”
- If you chose “All files & documentation”, unzip it first and locate the theme
.zip
inside
❌ 3. “The package could not be installed. The theme is missing the style.css stylesheet”
Cause:
You uploaded the wrong .zip file (usually the full download package).
Fix:
- Re-download the theme from ThemeForest
- Select “Installable WordPress file only” when downloading
🔗 4. “The link you followed has expired”
Cause:
Your server’s memory and file size limits are too low.
Fix:
Ask your hosting provider to update your PHP settings to:
iniCopyEditmemory_limit = 256M
max_execution_time = 240
post_max_size = 32M
upload_max_filesize = 32M
Show them the error or share a screenshot — they’ll know what to do.