bkellum Posted July 14, 2007 Share Posted July 14, 2007 Hi all, These forums have been an invaluable mine of information for me in setting up osC and STS, but I can't find the answer to this one... I'm having a problem in that STS is putting this: ï»¿ at the top of all catalog pages. When I view the html source of the page, these characters appear at the top before the document type declaration like this: ï»¿<!DOCTYPE HTML blah... It is not there if I change "Use Templates?" to "false" in Admin->modules->STS->Default. I've checked sts_template.html in /test/ (the one I'm using): there are no characters before the doctype there. I've also checked the files that I've most recently edited - replacing them with their original versions. No difference. I'm guessing that some so-called non-printable-characters have found there way into a php file somewhere, but I have no idea which files I should be checking... (I'm using the new osC v2.2 RC1 with the updated STS 4.5.3, and I've imported the database from my previous installation, adding the additional administrators table) Any ideas? Cheers, Matt. Matt,A couple of things could be causing your problem: Check to be sure your FTP client software is uploading the PHP files in the correct format (rare) Check to be sure your STS Templates have the proper document encoding (most likely your issue)This issue can be resolved by correctly stating the very first line in your STS Templates: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> The above is the default but this may not work for you. What browser are you using? Check the encoding settings on your browser. One of the things that you can try to help troubleshoot this issue is the following: Open your includes/classes/sts.php file and comment out the following line of code: $this->template['headcontent'] = $this->template['headcontent'].'<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">' . "\n"; Now view your store in your browser and see if you are still getting those errors. If not, then this is indeed an encoding issue. Send us a link so that we can see if this is a universal encoding problem with your site or just with your browser. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.