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.

Blank Template Manager

July 26, 2011 2:49pm

Subscribe [4]
  • #1 / Jul 26, 2011 2:49pm

    ErniePile

    20 posts

    Hello,

    We recently inherited an EE installation from another developer.

    v2.1.3 - Build: 20101220

    We’re running into an issue where the Template Manager is displaying a blank page.  There is no html being printed at all. PHP errors are turned on, but no errors are displayed.

    The other pages in Design > Templates display without an issue.

    Because the client is in a transitional period, they’re not in the best position to do an upgrade to the latest version of EE.  So it would be great if there was a way for us to sort this issue without going through the process of upgrading.

    Thanks

  • #2 / Jul 27, 2011 5:53am

    John Henry Donovan

    12339 posts

    timeforcake,

    When you say you have PHP errors turned on have you also set debug to 1 in your system/index.php file?

    $debug = 1;

    How much PHP memory do you have alloted?

  • #3 / Jul 27, 2011 12:28pm

    ErniePile

    20 posts

    Hi There,

    Php errors are enabled on the server.  I’ve updated the system/index.php, but still nothing but a blank page.

    Currently php memory is set to 90M.

    Suggestions?

  • #4 / Jul 28, 2011 12:43pm

    ErniePile

    20 posts

    I’m also noticing some display issues throughout the CP. Like an incorrect hover state for menu items with sub pages.  There are two small arrows displayed on hover.  See attached.

    I’m not terribly concerned about this - just hoping it helps us get this sorted. 

    We desperately need to get this sorted out as we are unable to add template groups to the site.

    Thank you.

  • #5 / Jul 29, 2011 5:54am

    John Henry Donovan

    12339 posts

    timeforcake,

    It looks like you are using the Morphine theme which is a third-party one. I have seen that issue with hover states previously when using it. You will need to contact it’s developer for support regarding that.

    Can you try disabling your extensions temporarily sand see if that makes a difference to your template manager

    If your Template Manager loads after doing so then it is likely on of your extensions is the culprit.

    Can you tell us what add-ons you have installed please?

  • #6 / Jul 29, 2011 1:15pm

    ErniePile

    20 posts

    This is a fairly high traffic site without a dev environment, so we’re not really in a position to turn things on and off.

    As far as what’s installed…
    Modules
    CartThrob
    Chimper
    Freeform
    LibrarEE
    Mailing List
    NSM Better Meta
    NSM Morphine Theme
    Pages
    User
    Wygwam

    Accessories
    MC Cloner
    NSM Morphine theme

    Extensions
    Auto Expire  
    CartThrob  
    HTTPS Support  
    Libraree  
    Low Seg2Cat  
    MailChimp Subscribe  
    Matrix  
    MX Cloner  
    NSM .htaccess Generator  
    NSM Better Meta  
    NSM Email Login
    P&T Field Pack
    Tag
    Twomile Login Redirect
    User

    Plugins
    DM Force SSL  
    EE2 ED Image Resizer  
    ImageSizer  
    Magpie RSS Parser
    Mailchimp EE
    MX Jumper
    RogEE Tweetify
    Twitter Timeline
    Word Limiter
    XML Encode

    Thank you for your help.

  • #7 / Jul 29, 2011 1:31pm

    ErniePile

    20 posts

    When I go to create a new page in the Pages Module and choose a template, there are two templates that are repeated in the drop about 30 times (see attached image).

    Hoping this gives us a hint.

    Thanks.

  • #8 / Jul 29, 2011 2:29pm

    ErniePile

    20 posts

    I just got access to the DB and I think the issue is related to the fact that there are almost 4,000 rows in exp_templates.  The majority of these appear to be a duplicate of two different templates.

    I assume that these will need to be cleaned out.  How can I do that?

  • #9 / Aug 01, 2011 5:38am

    John Henry Donovan

    12339 posts

    timeforcake,

    it looks like you are running into this particular bug


    Robin, makes this note about removing duplicates

    then go in and manually remove the extras (I’d use phpmyadmin or something similar).  If ALL of the templates are based on files?  You could a. back up exp_templates; b. make a copy of the template folder holding your files; c. delete all the template groups via the template manager; d. put your backup of the template folder back in- visit the template manager- and expect all templates in the db to be recreated.

    After that I would turn off caching in your Database settings within the EE control panel.
    And then upgrade to latest version of EE if you get a chance

    Let us know if that helps

  • #10 / Aug 01, 2011 12:55pm

    ErniePile

    20 posts

    I’m not sure how that fix helps us as it requires using the Template Manager.  We are not able to access the Template Manager.

    Other than in the pages module, we don’t see duplicates in the CP.  Those weren’t found until we looked at the database.  There are no duplicate files being created.  Seems like a similar issue but not the same.

    Can the duplicates be deleted from the DB via phpMyAdmin without causing other issues?

    Thank you.

  • #11 / Aug 03, 2011 10:41am

    Sue Crocker

    26054 posts

    Can’t you change your access to be a SuperAdmin temporarily so you do have access to the template manager?

    As long as you make a backup copy of the table before attempting to make changes to it, you should be OK.

  • #12 / Aug 03, 2011 1:27pm

    ErniePile

    20 posts

    Hi Sue,

    We are logged in as a Super Admin.  I’m fairly confident that the issue is unrelated to User Groups, and that if the site were functioning correctly we would have access to the Template Manager. 

    To recap….

    ========================================

    We recently inherited an EE install (v2.1.3 Build: 20101220) and we’ve been unable to access the Template manager. It loads a blank white page.

    When we looked at exp_templates in the DB we noticed that there are almost 4,000 templates listed.  2,784 of those are duplicates of a webpage template.  406 of those are duplicates of an RSS feed template in the same template group.

    So we assume that the Template Manager is trying load all of these templates and just running out of PHP memory.  The host doesn’t allow us to increase the memory beyond 90M default.

    The two templates that have duplicates are also saved as files.

    ========================================

    So, this is whey we’re looking to remove these templates from the DB via phpMyadmin.

    I understand that a backup of the DB can be restored, but we’re trying to avoid any downtime or related bugs. 

    If we delete these duplicates from the DB, will EE continue to load pages based on the template files?

    Thank you.

  • #13 / Aug 04, 2011 3:55pm

    Brandon Jones

    5500 posts

    Hi timeforcake,

    Yes, it should. Ideally there’d be a way to determine which entries in the database are the impostors. Do all but one copy have their “hits” column at 0, maybe?

  • #14 / Aug 04, 2011 4:12pm

    ErniePile

    20 posts

    Yep, all but one template has 0 hits. That’ll make cleaning them out easier.

    I had initially assumed these duplicates were the product of buggy upgrade, but for some reason the system is continuing to create more duplicates.  Since I first discovered the issue there are almost 700 more duplicates.

    Any thoughts there?  Anything I can look at?

  • #15 / Aug 04, 2011 4:17pm

    Brandon Jones

    5500 posts

    Unfortunately, I suspect it’s a bug in that particular version. I remember it cropping up under certain circumstances, but have not seen it in ages.

    I would upgrade as soon as possible, but in the meantime try disabling saving templates as files as a work-around.

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

ExpressionEngine News!

#eecms, #events, #releases