ExpressionEngine Docs

Troubleshooting Templates

“Enable HTTP Authentication?” Setting Not Working

If you’ve enabled HTTP Authentication for a template and authentication is failing:

  1. Dirst check to make sure that you’ve also given access to the desired member group(s), and that the user you are authenticating with is from one of those groups.
  2. Double check that the username and password is correct by logging in to ExpressionEngine as that member.

If it still fails to authenticate, it could be that the web server is not making the authentication details available to PHP (and thus unavailable to ExpressionEngine). This is common when the web server is running PHP-FPM and Apache for instance. In those cases, you can fix this by adding the following to the Apache VirtualHost or in your `.htaccess`:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1


RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Embedded Templates not using my Assigned Variables

When embedding a template assigned variables from the parent templates are not parsed in the child template.

Assigning Variables and Passing Embedded Variables

Assigned Variables are valid only for the template in which they are assigned.

PHP and EE Tags are not parsed in the Stylesheet

When including PHP and CSS tags in the stylesheet they are not parsed by the template parser.

Parsing PHP and EE Tags in the Stylesheet

When using ExpressionEngine to link to stylesheets, the typical way to do this is by using the standard {stylesheet=’channel/channel_css’} type syntax. When EE uses the {stylesheet=} tag, two special things happen:

If parsing PHP and EE tags is a requirement then there are two options:

Content from my new Channel Field is not appearing on the page.

A new channel field was created and entries were published with content in that channel field; however, content from the channel field does not get output to the page.

Displaying Content from Channel Fields

Ensure that the channel field is being called within the template. For example, if the channel field is named “extended” then it needs to be called in the template like so:


CAPTCHA images not appearing

CAPTCHAs are enabling but there is a blank space where they should appear.

Troubleshooting missing CAPTCHA Images

There are several possible reasons for CAPTCHA images to not appear:

Can not save a template with the {exp:query} tag

It is not possible to save a Template that contains a SQL query or uses the {exp:query} EE Tag.

Templates and Queries

Some Hosts have security implemented that does not allow the POSTing oo hata containing the phrase “select from”. This is done in an attempt to help prevent hacking attempts, but it can also interfere with normal operations of dynamic-powered sites like an ExpressionEngine site.

If this behavior is encountered then the host or administrator should be contacted for assistance.