ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently updated to EE 2.7.3 and noticed that I am getting the following error at the top of all my pages:

Parse error: syntax error, unexpected 'II' (T_STRING) in /var/www/vhosts/mysite.com/eesystem/expressionengine/libraries/Template.php(3276) : eval()'d code on line 1

Line of said template reads:

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

Any clues what is causing this and how to resolve it?

Thanks.

share|improve this question
up vote 2 down vote accepted

Actually, that error message points to line 1 of eval()'d code, which is executed on line #3276 of Template.php:

eval("\$result = (".$cond.");");

This is part of parsing conditionals. So it looks like there's a problem with one of your conditionals. And since you say the error occurs on each page, the conditional most likely is present in a header/footer snippet/embed in your templates.

Check your templates and snippets for a conditional that uses || and verify its validity.

share|improve this answer
    
That was it exactly. Thanks. – fmz Feb 4 '14 at 20:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.