Cannot delete last style of a template

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderators: ooffick, dam-man

Forum rules
Please use the official Bug Tracker to report a bug: http://issues.joomla.org
User avatar
pjki
Joomla! Guru
Joomla! Guru
Posts: 627
Joined: Sun Feb 14, 2010 9:12 pm
Contact:

Cannot delete last style of a template

Postby pjki » Tue Aug 16, 2011 7:17 am

I'm getting the same error message. Looked through the post, but nothing helps. These are siteground templates. I've never had a problem with Siteground before. I have 4 of them. I'm trying to delete 2 of them of which are NOT the default template.
I'm going to Extensions > Template Manager > Styles Tab (that may be the problem) > Check the appropriate template box > hit delete and I get the message: Cannot delete last style of a template.

When I go to the Template tab, it shows the pictures of the templates, but I don't see anywhere to actually delete them from the Template tab ??? I would think that would be the appropriate place, not the Styles Tab. ???

Edit: I thought I was posting in a thread where this issue was being discussed, but I had to log in first. Then when I logged in, it took me to the "previous page" and a blank post. I posted, but now I see this has been posted as a NEW post.

I'll leave this for now and just note that I had posted it in the "Bug Department" ;D viewtopic.php?f=579&t=521098&p=2587452#p2587452

Maybe someone will have an "easy fix" for this problem. Have never run into this before.

Not sure if it's a bug, a glitch, me, the templates, ?? dunno.

cmsj
Joomla! Explorer
Joomla! Explorer
Posts: 311
Joined: Wed Jun 29, 2011 11:22 am

Re: Cannot delete last style of a template

Postby cmsj » Tue Aug 16, 2011 8:29 am

This should do it:
Extensions> Extension manager> Manage> Tick template to be deleted> Click "Uninstall".

Also need to ensure that the template to be un-installed is not a default.

User avatar
pjki
Joomla! Guru
Joomla! Guru
Posts: 627
Joined: Sun Feb 14, 2010 9:12 pm
Contact:

Re: Cannot delete last style of a template

Postby pjki » Wed Aug 17, 2011 4:30 am

Hmmm . . . not listed under templates, like I would have expected, huh? But Extensions? THX
Thank you. That worked!

Kengun
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Fri Jun 12, 2009 12:38 pm
Location: Lyngdal, Norway
Contact:

Upgrade from 1.5.9 to 1.5.11

Postby Kengun » Sun Sep 04, 2011 3:49 pm

something went wrong, just delete this message please.

Kengun
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Fri Jun 12, 2009 12:38 pm
Location: Lyngdal, Norway
Contact:

Re: Cannot delete last style of a template

Postby Kengun » Sun Sep 04, 2011 3:52 pm

cmsj wrote:This should do it:
Extensions> Extension manager> Manage> Tick template to be deleted> Click "Uninstall".

Also need to ensure that the template to be un-installed is not a default.
Oh well, but the template still shows up in the "Extensions" --> "Template manager" so the "Uninstall" does not uninstall everything. To me it seems that the database entry still remains.

So if you for example go to the "Module Manager" and choose a module to edit the "Position" the uninstalled templates still shows up there too.

I'm using 1.7

cmsj
Joomla! Explorer
Joomla! Explorer
Posts: 311
Joined: Wed Jun 29, 2011 11:22 am

Re: Cannot delete last style of a template

Postby cmsj » Sun Sep 04, 2011 5:21 pm

Kengun wrote:Oh well, but the template still shows up in the "Extensions" --> "Template manager" so the "Uninstall" does not uninstall everything.....

The uninstall should also delete the entry in the template manager, if it is not doing so, then that is related to your particular installation. Have double checked this and it does delete the template in the template manager.

Kengun
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Fri Jun 12, 2009 12:38 pm
Location: Lyngdal, Norway
Contact:

Re: Cannot delete last style of a template

Postby Kengun » Sun Sep 04, 2011 5:41 pm

cmsj wrote:The uninstall should also delete the entry in the template manager, if it is not doing so, then that is related to your particular installation. Have double checked this and it does delete the template in the template manager.
Then something is not working at cloudaccess.net, where I just tried this out. I tried to uninstall the pre-installed templates but as said it's still showing up in the template manager.

User avatar
Neeve
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 149
Joined: Wed Sep 08, 2010 1:48 pm
Contact:

Re: Cannot delete last style of a template

Postby Neeve » Wed Nov 09, 2011 2:20 am

Thanks Kengun, This worked for 1.7:
This should do it: Extensions> Extension manager> Manage> Tick template to be deleted> Click "Uninstall".

mtcorp
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Feb 19, 2012 12:23 pm

Re: Cannot delete last style of a template

Postby mtcorp » Sun Feb 19, 2012 12:30 pm

First make sure that template is not set as default,then EXTENTIONS==>EXTENTION MANAGER==>MANAGE==>UNINSTALL
( put a check againt template you want to uninstall and click unistall).

User avatar
zaza1964
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Apr 16, 2008 1:16 pm
Location: Cornwall, Ontario, Canada
Contact:

Re: Cannot delete last style of a template

Postby zaza1964 » Fri Jun 29, 2012 4:00 pm

Thanks Neeve, couldn't figure out where it was :-)
Maryse Lapointe
Web Designer

http://www.hits-me.com/ - Literal URLs only.

cuissi
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Jun 24, 2012 9:58 pm

Re: Cannot delete last style of a template

Postby cuissi » Fri Jul 13, 2012 5:40 am

i had a similar problem, uninstalled templates which were not removed by the module manager. the best way to assure their removal was logging in with a ftp client and deleting the file (they're easy to find under /templates).

abydos71
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Tue May 22, 2012 3:42 am

Re: Cannot delete last style of a template

Postby abydos71 » Wed Aug 15, 2012 4:05 am

Im having the same problem.

I have uninstalled the templates, from both joomla and my ftp site but it hasnt helped.

Can anyone please help?

MtnHermit
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 205
Joined: Tue Oct 12, 2010 5:05 pm
Location: Colorado

Re: Cannot delete last style of a template

Postby MtnHermit » Sun Mar 24, 2013 12:28 am

cmsj wrote:This should do it:
Extensions> Extension manager> Manage> Tick template to be deleted> Click "Uninstall".


Bingo!!! Thank you :)

andymackk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Aug 20, 2009 10:28 am

Re: Cannot delete last style of a template

Postby andymackk » Fri Jun 14, 2013 11:19 pm

That helped me - thanx

;D

User avatar
iTD
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Mon Aug 24, 2009 10:11 pm

Re: Cannot delete last style of a template

Postby iTD » Mon Jul 01, 2013 8:28 pm

For anyone still having this issue - as I did after performing the tasks listed in this thread - go to Extensions > Extension Manager > Discover ... and clear the cache (button in upper right). Then try again.

Randy Prue
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu May 14, 2009 3:12 am

Re: Cannot delete last style of a template

Postby Randy Prue » Thu Aug 15, 2013 2:14 pm

In Joomla 2.5.14:
Purge Cache was the final step that removed my deleted templates from Extensions > Template Manager.

I first deleted the template files and directories using FTP. They still appeared in Template Manager and refused to be deleted from there (the "cannot remove last style" message).

Because I had removed the files and directories, I was unable to remove or purge using Extensions > Extension Manager > Manage (the templates did now show there).

At some point, I cleaned the site cache and expired cache. The last step, after which these unwanted templates no longer appear, is Extensions > Extension Manager > Discover > Purge Cache (top right, with the other buttons, the usual place).

A tidbit. If you are looking the "templates" directory at the root of your Joomla 2.5 install, you will find only site templates. After a while, it occurred to me that the only other logical place for the administrator templates would be under the "Administrator" folder/directory. And voilà, there they are!

User avatar
pishro
Joomla! Explorer
Joomla! Explorer
Posts: 285
Joined: Tue Oct 09, 2012 7:22 am

Re: Cannot delete last style of a template

Postby pishro » Wed Oct 09, 2013 10:03 pm

abydos71 wrote:I have uninstalled the templates, from both joomla and my ftp site but it hasnt helped.
Templates Quick Tips wrote:Some Core or System Components, Modules, and Plugins cannot be uninstalled, so they cannot be selected to be uninstalled. Also the Default Template and Language are cannot be selected to be uninstalled.

Important: Do not delete the Default Template and Languege files using FTP because it generates errors in both the Front-end and Back-end.

hassanegenius
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Wed Mar 05, 2014 9:50 pm
Location: Barcelona,Spain
Contact:

Re: Cannot delete last style of a template

Postby hassanegenius » Mon May 26, 2014 3:04 pm

Thanks After read this all thread ,, i solved my problem as well..Thanks


Return to “Joomla! 2.5 Bug Reporting”

Who is online

Users browsing this forum: No registered users and 3 guests