Domanda

I had an awkward problem when i want to delete my theme, it gaves me this message: deletion failed, the theme requested does not exist wordpress.

I can delete it from ftp manually but for client i want it to be deleted just from dashboard. Is any one have an idea how to resolve this error.

enter image description here

P.S. the theme works fine without any error.

È stato utile?

Soluzione

I found what cause this problem, the theme folder shouldn't have any space if you had two words or more on it for example if your theme's name is : twenty sixteen it should be written without space in one word twentysixteen.

So all i had to do is make my theme's name in one word and my theme was deleted normally from the dashboard.

I hope it will help someone else.

Altri suggerimenti

This can also happen if the Theme is moved out of the /themes folder, for example in to a sub-folder.

Ok, I had the same issue and it started from the FTP prompt when trying to delete a theme. // Note I am doing this on my local environment, not a production site

1st step was to add

define('FS_METHOD', 'direct');

Which then started the Deletion failed: The requested theme does not exist error

screenshot of error

But this is how to solve the whole issue altogether and you don't need the code

define('FS_METHOD', 'direct');

You need to edit the httpd.conf file depending on your setup. Here is how I did it using xampp edit /opt/lampp/etc/httpd.conf

    <IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group nogroup
</IfModule>

Where the User nobody add your username there example User myuser and restart apache and boom! Hope this helps someone out there with an issue that was taking me hours and a lot of headaches.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top