Tony Awards Posted April 5, 2009 Posted April 5, 2009 I have been trying to set up osc with the German and Spanish versions. The data that I plug into the new product fields works fine, but when I attempt to insert copy into the home page, or shipping, privacy, or conditions pages, it crashes the site and nothing will show at all. Has anyone else had this issue? I have been very careful to insert the text into the correct spot, and everything looks right, so why could this be happening?
♥geoffreywalton Posted April 5, 2009 Posted April 5, 2009 Try putting xxxin the german privacy.php and see if it still crashes. If it does overwrite the german privacy.php with the english.php. Now you know if it is the text you are trying to use, the file being corrupt or the code. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Tony Awards Posted April 6, 2009 Author Posted April 6, 2009 I placed xxx in the German index.php page as you suggested, and no problem. It displays fine as xxx. So then I inserted the English version of the text in the German page file, and once again, no problem. English text on the German page. But when I use the German text (translated by Google, but it's all I've got) it crashed. I looked at the code in the text and all there is are <br/> and <strong></strong> tags. I even replaced those with plain old <br> and <b></b> tags, but it made no difference. Still crashes. And the text I am inserting is just plain text, coming from a Notepad++ file. Other translated text that I have in the same Notepad++ file and have used for product descriptions causes no trouble, so I don't think it's a corrupted text file, but... who knows?. The error message I keep getting is: Parse error: syntax error, unexpected T_STRING in /home/mysite/public_html/catalog/includes/languages/german/index.php on line 13 BTW, it's also doing it to the Spanish files, I've discovered. Index, privacy, shipping, conditions, as well as the German ones. All with the same error. Any ideas?
germ Posted April 7, 2009 Posted April 7, 2009 define('TEXT_MAIN', 'can\'t won\'t don\'t isn\'t'); Check your text for apostrophes and be sure they have a \ preceding them as shown above. Alternately, if you want the PHP parser to be oblivious of the apostrophes, this code is equivilant to the same code above: define('TEXT_MAIN', <<<END can't won't don't isn't END ); Just more "user friendly". ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Tony Awards Posted April 7, 2009 Author Posted April 7, 2009 I don't know why that was causing problems with the German and Spanish files, and not affecting the English pages, but I guess it was... That did it - all index and site data pages now work perfectly well. Thank you, germ - great fix.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.