0
Welcome Guest! Login
0 items Join Now

SOLVED How to delete duplicate Gantry Master style

    • ITWorks's Avatar
    • ITWorks
    • Jr. Rocketeer
    • Posts: 20
    • Thanks: 0
    • Software Engineer

    SOLVED How to delete duplicate Gantry Master style

    Posted 12 years 2 months ago
    • HOW TO DELETE A DUPLICATE GANTRY MASTER STYLE
      If you have two duplicate Granty Master styles in Template Manager and you try to delete one you may get this error message:
      "Cannot delete a Gantry Template Master Style"

      What to do to delete the duplicate template style you don't use...

      1) MAKE A BACKUP OF YOUR DATABASE FIRST using AKEEBA or PHPMyAdmin !!!!

      2) Make a BACKUP of your TEMPLATES directory ( or at least each duplicate template's directory ).

      3) Delete (or rename) the duplicate template directory (under your ‘Templates’ folder ….

      So for example if you have 2 template dirs, one called "rt_original" and the other called "rt_dupe", just remove "rt_dupe" (or rename it to "rt_dupe_old" or something similar).

      4) Go to PhpMyAdmin, find the "xxxxx_template_styles" table. Click on Browse Table then delete the duplicate template ("rt_dupe") and any rt_dupe overrides, if you have any.

      5) If you see a message like
      "Fatal error: Call to a member function get() on a non-object in
      /home/xxxxxxxxx/public_html/libraries/gantry/gantry.php on line xxx" when you try to view your site in the front end, don't panic! What is happening is you are probably using Overrides and the overrides are still pointing to your old “duplicate” template that you just deleted.

      Here’s how to fix that….

      6) Go back to phpMyAdmin, find the "xxxxx_template_styles" table again:

      Find your master template’s id number in the table. Your master template will be the one that says
      “{“master”:”true”, current_id”:”16”, … } under the params column.

      For example in the image below my rt_ximenia master template id = 16.

      Make sure any template overrides are also pointing to the same mater template id
      (in my case they should all be pointing to id 16).

      {“master”:”16”,”current_id”:”17”,”… }
      {“master”:”16”,”current_id”:”18”,”… }
      {“master”:”16”,”current_id”:”19”,”… }

      See example image attached:
      This image is hidden for guests.
      Please log in or register to see it.


      Edit the table and change the id’s for the overrides to point to your master template's id and save the table.

      Hope this helps!!
    • IT Works Websites
      www.itworkswebsites.com
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED How to delete duplicate Gantry Master style

    Posted 12 years 2 months ago
    • ITWorks's Avatar
    • ITWorks
    • Jr. Rocketeer
    • Posts: 20
    • Thanks: 0
    • Software Engineer

    Re: SOLVED How to delete duplicate Gantry Master style

    Posted 12 years 2 months ago
    • Ahh, thank you Igor! Looks much easier. I will try the plugin next time I get into this situation. :D
    • IT Works Websites
      www.itworkswebsites.com
    • Kevin M's Avatar
    • Kevin M
    • Sr. Rocketeer
    • Posts: 178
    • Thanks: 1

    Re: SOLVED How to delete duplicate Gantry Master style

    Posted 10 years 7 months ago
    • Please tell me this plugin still exists?
    • Last Edit: 10 years 7 months ago by Kevin M.

Time to create page: 0.075 seconds