1

I'm working in OsCommerece and getting this up in my error log

PHP Parse error: syntax error, unexpected T_STRING in public_html/includes/classes/seo.class.php(2206) : eval()'d code on line 1

3
  • 4
    what's on line 2206 in seo.class.php? Commented Jul 19, 2013 at 10:24
  • The first 16 lines aren't helping... You don't need to post them. Learn more about eval php.net/manual/en/function.eval.php Commented Jul 19, 2013 at 10:32
  • Line 2206 = eval("$cache_data"); Commented Jul 19, 2013 at 11:06

1 Answer 1

1

Maybe just remove the <?php, ?> tags, as seo.class.php seems to run the input through eval()

mixed eval(string $code)

The code mustn't be wrapped in opening and closing PHP tags...

Sign up to request clarification or add additional context in comments.

8 Comments

Tried removing the tags, broke the site...quickly put them back.
then you'll need to improve your answer and show us some surrounding code, f.e. what's in $cache_data ? where does it come from? can you place a var_dump($cache_data) before the eval on line 2206, and add that output to your answer?
Appreciate the help so far. Had a look in the dbase at $cache_data has a heap of numbers in it e.g S0lNy8xL1VD3dfQLdXN0Dg... Placing var_dump($cache_data) resulted in this being display on screen string(92) "define('MANUFACTURER_NAME_2', 'sitename'); define('MANUFACTURER_NAME_3', 'productname'); "
Lines 2178-2244 are here http://pastebin.com/Q1W2an38 this is the function that line 2206 lives in. Happy to provide on info if needed
And right after the var_dump, you got the syntax error as in the title of your question?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.