tfoolen Posted March 15, 2011 Share Posted March 15, 2011 All, I copied an existing shop and all works fine, except the opening of the invoice_pdf.php. I get an error: Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /admin/includes/classes/fpdf.php on line 1668 Strange thing is that the other store(s) don't have this error. I have tried replacing all files, but without luck. Line 1668 and surroundings read: //Handle special IE contype request if(isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT']=='contype') { header('Content-Type: application/pdf'); exit; } Any ideas anyone? Ciao, Tom Link to comment Share on other sites More sharing options...
web-project Posted March 15, 2011 Share Posted March 15, 2011 $_SERVER['HTTP_USER_AGENT']=='contype' no such user agent as contype, normally is Mozilla/5.0 (Windows NT 6.0; WOW32; rv:1.0) Gecko/20100101 Firefox/3.0 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 or different in sort of type. Try to remove code and see. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
tfoolen Posted March 16, 2011 Author Share Posted March 16, 2011 no such user agent as contype, normally is Mozilla/5.0 (Windows NT 6.0; WOW32; rv:1.0) Gecko/20100101 Firefox/3.0 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 or different in sort of type. Try to remove code and see. Nope, won't work. Strange thing is that it works perfectly fine in my other shops. Any other suggestions? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.