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.

Weird Template Behavior

June 22, 2011 9:41am

Subscribe [4]
  • #1 / Jun 22, 2011 9:41am

    Wes McWhorter

    36 posts

    Just ran across a VERY weird template group naming issue.

    I originally tried to name a template group “publications”. In my index file, I’ve got a bit of if/else logic basically directing users to either an overview or entry level page based on the URL segments. I’ve done this a hundred times, and it works just fine. I’m even doing it for other sections of this site with template group names like “news”, “exhibitions”, “press”, etc.

    After 30 minutes or so of total frustration, I renamed the “publications” template group to “sparticus”, and BAM - it works just fine.

    So the question is - is “publications” some sort of reserved term that cannot be used as a template group name? Even tried using “publication” and that failed as well.

    What up??!?!

  • #2 / Jun 22, 2011 9:51am

    Mark Bowen

    12637 posts

    You don’t by any chance have any folders inside your FTP that are named publications or publication do you?

    Other than that are you using a .htaccess file to get rid of index.php and if so have you tried removing the .htaccess file for now and replacing index.php in the site general configurations and seeing if it all works again?

    As far as the word(s) are concerned I’m fairly certain they’re not reserved words. There is a list here of reserved words though.

    Best wishes,

    Mark

  • #3 / Jun 23, 2011 1:32am

    John Henry Donovan

    12339 posts

    Hi Wes,

    As Mark says the first thing I would be looking for would be a physical directory called publications

    Let us know what you come up with

  • #4 / Jun 23, 2011 11:10am

    Wes McWhorter

    36 posts

    Thanks fellas.

    So no, I don’t have a directory called “publications” anywhere. It’s a pretty standard EE set-up. Meaning the core CMS files are all installed, then I have a “public” directory where I keep all my CSS, JS, images, and templates. I tend to always move my template storage outside of the EE system folder, just so I can keep things organized. I am using .htaccess to handle the things you mention above. And like I said everything works, except when I hit up http://www.mysite.com/publications.

    Anyway, I’m thinking it must be some sort of security setting that perhaps the host has in place. I’ve run into this before with users typing the word “function” into a text area for example, and the server reading that as a possible code injection attack. Good, I suppose, but it always creates this crazy troubleshooting effort.

    I’ll repost when I figure out what the deal is.

    Thanks again!

  • #5 / Jun 24, 2011 11:36am

    Sue Crocker

    26054 posts

    Might you have mod_security turned on? Let us know what you find out.

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

ExpressionEngine News!

#eecms, #events, #releases