Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

share|improve this question
4  
what's on line 2206 in seo.class.php? –  Wouter Huysentruit Jul 19 '13 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 –  Amine Jul 19 '13 at 10:32
    
Line 2206 = eval("$cache_data"); –  WestWeb Jul 19 '13 at 11:06

1 Answer 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...

share|improve this answer
    
Tried removing the tags, broke the site...quickly put them back. –  WestWeb Jul 19 '13 at 11:04
    
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? –  Wouter Huysentruit Jul 19 '13 at 11:20
    
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'); " –  WestWeb Jul 19 '13 at 12:54
    
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 –  WestWeb Jul 19 '13 at 12:59
    
And right after the var_dump, you got the syntax error as in the title of your question? –  Wouter Huysentruit Jul 19 '13 at 13:16

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.