I am trying to install a theme I downloaded from this website.
I am using XAMPP and I am not sure how to install this dowloaded theme using XAMPP.
I tried installing this theme with the zip folder (in zip format) in Wordpress but I get the error
” The package could not be installed. The theme is missing the style.css stylesheet.
Theme install failed. “
I found a similar on Wordpress website but they mentioned using FTP but I don’t know how to use FTP with XAMPP
I want to install the theme and test it out locally before I make it live or buy a domain name.
This is my first time doing this (I am a student) so I don’t totally know how things work together, don’t know if I am using the description/terms but I hope I described the problem well enough.
How to go about this? Any help will be appreciated.
Thanks
OK so its a bit weird that the theme you downloaded is missing the CSS file. When you upload it Wordpress is trying to find that file and failing. For now, let's assume that the creator of the theme put the CSS file in a different location than usual.
To install a theme manually via XAMPP do the following:
Locate XAMPP's htdocs folder. This is normally Applications>>XAMPP>>HTDOCs on Mac or My Computer>>C:>>XAMPP>>HTDOCs on Windows (I think - someone might need to correct me on that).
If your site is installed in a sud-directory in htdocs, go there. If not skip to next step.
Open the wp-content folder
Open the themes folder
Copy in your downloaded theme and extract it there (if its zipped)
Go to your Wordpress Dashboard and go to the Appearance button on the left and click Themes from the drop down. Find your newly installed theme and hit Activate.
That should do the trick unless your theme is missing some vital elements
(PS: what your are doing here - moving (theme) files from one location to another - is essentially the same as FTP. Difference is FTP allows you to transfer files accross the internet from computer to computer: say your computer to a web server hosting your site.)
Add this lines to your wp-config.php file
//** To add the direct installation of the themes **//
define('FS_METHOD', 'direct');
Then go to wp-admin and click on customize your site. Press on change button on the active theme and browse for your favorite theme from wordpress.org and install then enjoy
Related
Two days ago we've received a project to realize for my school. We have to build a website using Wordpress.
As told in the title, I can not manage to install plugins, themes, updates and probably some things more from the admin panel.
When I try to download a theme, for example, I get the following message: "Can not locate themes directory".
However, I've been able to install two themes (actually one theme and its parent one, dont know if it matters) by downloading them as zip, and unzip in the wp-content/themes folder.
I've also added some lines to my wp-config.php file:
define('FTP_BASE', '/wordpress');
define('FTP_CONTENT_DIR', '/wordpress/content');
define('FTP_PLUGIN_DIR', '/wordpress/wp-content/plugins');
define('WP_CONTENT_DIR', dirname(__FILE__).'/wordpress/wp-content');
define('WP_PLUGIN_DIR', dirname(__FILE__). '/wordpress/wp-content/plugins');
define('WP_CONTENT_URL', '127.0.0.1/wordpress/wp-content');
define('WP_PLUGIN_URL', '127.0.0.1/wordpress/wp-content/plugins');
I am using Ubuntu with apache2, mysql and PHP7.2
Any suggestion is welcome.
check your site origin at file manager and left click to make sure that your site has permission to create/upload/etc activities
I'm trying to install a woocommerce plugin on my wordpress website(locally) it is giving such error 'update failed' as you can see in picture,
how to fix this?
Go to wp-content/upgrade directory and change folder permission to 777 (chmod) or in windows make sure that the read only box is uncheck.
That only means you allow that directory to read write and execute without any restrictions.
You can also solve this error by increasing the execution time.
Just go to your Xampp Control Panel, Stop Apache server, click on config (Apache), then select PHP(php.ini) option, Press Ctrl+F type "execution" and hit enter, then just increase the size of execution time from 30 to 300, save the file and then start Apache again.
It Works for Me!
see sometimes there is compatibility problem of site effects. If you can not fix, you can install another similar plugin
or
install a plugin that stop the updates of plugins ot theme according to what you want, to stop only the update of this specific plugin, like
https://wordpress.org/plugins/block-specific-plugin-updates/
after when you fixed or come new version you restart the update procedure
An alternative that works for the installation of plugin is to upload the plugin via cPanel's File Manager or the FTP client (e.g FileZilla).
Download the WooCommerce Plugin from https://wordpress.org/plugins/woocommerce/. This will download a zipped file which can be uploaded onto the server.
After download, navigate your way to the wp-content/plugins folder on the cPanel. Upload the downloaded file, and extract the file to folder.
NOTE: remember to remove the version number from the name of the plugin after downloading e.g change woocommerce.4.0.1.zip to woocommerce.zip
It sounds like the files might have been corrupted during the update.
You’d need to access your site FILES, so that you can delete the WooCommerce plugin folder.
Locate the plugins folder, and remove the woocommerce folder from there. Once deleted, you should be able to go back to your site’s Dashboard and install the plugin again.
If you install any plugins/themes, this could be the reason for continuously fails. Add the below line of code in wp-config.php
define('FS_METHOD','direct');
Download .zip From wordpress org/plugins/woocommerce/
I have installed Wordpress in my Godaddy hosting.Its working quite well except i cant upload a new theme. when i click Appearance > Themes and then add new nothing shows up. The only thing that shows up are the buttons featured , most popular etc but when i click them nothing happens. When i press the upload theme button nothing happens either. How do i fix this?
I have tried it switching the default theme, deactivating all plugin but nothing resolver the problem. Godaddy support says that i will get a conformatin mail after the installation process completed within 24hours. Its almost 24hours but i haven't got any conformation mail. What can i do?? Do i really need to wait for the conformation. i can visit my blog but cant upload any theme, whats going wrong??
You can add your theme directly in your Wordpress installation. For this go to public-html/wp-content/themes/ and drop your theme folder here. Remember that your theme files must not be in subfolders of the folder e.g. /themes/your-theme/theme-files-and-folders/
Had the same issue today and solved it using these steps:
Download the Theme .zip file to your machine.
In cPanel File Manager, navigate to your Themes folder. Depending on your hosting, path to Themes folder can differ a bit but essentially you are looking for public_html inside which you’ll find /wp-content/themes/.
Once you’re inside the Themes folder in cPanel File Manager, click on Upload and upload that .zip file you saved in Step 1.
Once the .zip file is uploaded, right click on the name of that file in cPanel and select Extract from the context menu.
Now you can refresh the WordPress themes page and you should be able to Activate it.
The issue was theme related. I just renamed my current theme and then the default theme was automatically activated. Then i was able to upload my zerif lite theme and its now working fine.
I have been through this issue and i have solved it!
it happens mainly when yu transfer wordpress database from another location!
Solution:
UNinstall and deactivate all themes! delete and re install! if you cant delete the theme due to modifications, decativate the theme switch to another new theme by installing from wordpress and then reverting back to old theme!
if the problem persists: Reset server!
I have installed a fresh copy of wordpress on a windows XAMPP server. I configured the wp-config file and ran the install script. All is ok, and I am able to view my new wordpress site and login to admin area.
However - when I go to Appearance->themes - the current theme is set to TwentyTwelve and in the lower section the "Available Themes" does not show ANY themes.
After this I copied a new theme to the themes folder (which was working on a WP install on my test server at work) and that doesn't show up either.
Can anyone tell me how to make the other default theme (TwentyEleven) and more importantly my own built themes, appear as being available?
Thanks :)
Try to change the theme folder permissions to 777
style.css is very important for a theme.
You should check either style.css exists or not.
If No, try install wordpress again.
If Yes, then there might be the issue of File Permissions.
Set file permissions from below.
http://codex.wordpress.org/Changing_File_Permissions
Having a really baffling issue with permissions, WordPress and theme files.
I have a fresh install of WordPress and tried uploading the theme I made for my client. It uploaded fine but it doesn't show up in the Manage Themes menu. I checked everything was uploaded and it was. Checked permissions (even set them to 777 at one point) and they were fine. But the theme doesn't show up.
Here are the different scenarios I've tried:
Using the Install Themes menu and uploading a .zip (failed)
Duplicate twentyten folder and contents (worked)
Duplicate twentyten folder and used my theme files (failed)
Duplicate twentyten folder and used my theme files and their style.css (failed)
Uploaded my theme WITHOUT style.css (gave missing style.css error)
Uploaded my theme WITHOUT style.css and put in twentyten/created one from scratch (both failed)
I'm on my clients MediaTemple hosting and I've never encountered this error. Their support has yet to get back to us.
Does anyone have a similar problem? Solution? It's possible I can give you FTP access if needed.
CSS Head (changed values but format and everything is still the same):
/*
Theme Name: Example Theme
Theme URI: http://example.com/
Description: WordPress theme
Author: Company
Version: 1.0
*/
Edit: Trying to access the folder through my browser results in a 403 error (works fine on twentyten). style.css can be viewed from the browser.
If you are using a MULTI-SITE installation of Wordpress, you have to first go into Network Admin, select Themes from the left menu and enable the themes you like to use before they can appear on the "Manage Themes" page in the Site Admin section.
Perhaps you are missing a required template file?
At the very minimum, a WordPress Theme
consists of two files:
style.css
index.php
http://codex.wordpress.org/Theme_Development
On Ubuntu 14.04 you can install the wordpress package simply using sudo apt install wordpress but then you have to set a link to the themes directory.
E.g. for your "newTheme":
ln -s /usr/share/wordpress/wp-content/themes/newTheme /var/lib/wordpress/wp-content/themes
I bet you have some special characters in your templates. This once drove me nuts to find.
Check your Template files and/or rename them until the theme shows up. I used a german "ö" in a templates name.
I had a very similar problem. Spent a few hours before I found that somehow when I moved my local site (probably using All-in-one Wp Migration plugin), a .htaccess file was created in the /wp-content folder. I don't remember what was inside this file but I think it didn't matter.
After removing this file everything was ok.
Is the theme folder name different than everything else? Is the Theme Name in style.css different than everything else?
I am guessing BOMs are the problem. They messed up my validation of a page once, as I tried to remove the BOM. Try using an editor and remove the BOMs. For Notepad++, the text editor I use, I just set the encoding to UTF-8 without BOM and saved. That solved my problem. Of course, your text editor may be different.
As I discovered at the end of tortuous troubleshooting, an old wp-config.php may cause newly installed themes to be undetected and invisible in /wp-admin/themes.php - I am not sure that you have the exact same problem but it looks very similar to mine and you might want to try your configuration with a wp-config.php newly generated by Wordpress.
Make a backup of your styles.css
Copy the styles.css file from twentyforteen to your theme folder.
Only change the template name at the top of the file
Re-load the themes page in WordPress admin; once you've seen it working,
Further-modify the new styles.css file as needed.
The problem could have been, that you uploaded it in .zip
Your php setting might disable the scandir. It may cause the wordpress cannot scan the theme folder
Solution:
find php.ini. You may run php --ini to get the php.ini file location.
Open php.ini,Search for disable_functions, then you may removescandir parameter.
Save and restart your php services.