ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Have We Been Hacked? 82000 Templates and growing (template sync issue)

February 13, 2013 6:27pm

Subscribe [0]
  • #1 / Feb 13, 2013 6:27pm

    upshot

    85 posts

    Template Manager has gone blank.  It turns out that there are two templates in Template Manager that have been getting copies upon copies upon copies made in the DB, nonstop.  We are at 82,000 of these templates.

    I have isolated the issue to this:

    A new copy of the template is getting written to the exp_templates table whenever “Save Templates as Files” is ENABLED and a user loads one of these pages in their browser.

    We need the “Save Templates as Files” feature and this shouldn’t be creating an endless array of templates in our database.  Help???

    NOTES:

    - We stopped/started Apache but it just keeps going and going.
    - We are unable to synchronize these two templates. ExpressionEngine reports success but the templates sit there and remain unsynced.  All other templates are syncing fine.
    - When I make an update to one of the two templates that are getting duplicated, the changes are reflected in the new templates that are being created in the DB.
    - This started happening approximately a week ago and we did not notice.  We made no updates to EE or any addons on that day.

  • #2 / Feb 13, 2013 7:24pm

    upshot

    85 posts

    Well, I solved this by doing the following:

    1.) Ran a query to delete all the duplicates from exp_templates.

    2.) Went into Template Manager (which loaded fine now since there wasn’t 82,000 templates in the system) and deleted the troublesome template group.

    3.) I then saw that there was another template group with the same name and this was where all of these duplicate templates were being created.  I blasted that as well.

    4.) I recreated the template group and uploaded my templates.

    I have no idea why a duplicate and corrupt template group was there in the system, but we will definitely have to keep an eye on this in the future.  Hopefully this helps someone else if the same thing happens to some other poor soul.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases