stephen1959 Posted September 10, 2005 Share Posted September 10, 2005 HI can some one help me I?m a new member and I?ve got a couple of thing?s that I need some help with the first one is this error in the index page in the English folder. Parse error: parse error, unexpected '<' in /home/mansford/public_html/ourshop/includes/languages/english/index.php on line 13 The other problem is I?ve been a bit silly and got my self in a bit confused with the index files and now I can?t get to my admin through my browser I?ve down loaded new files and tried renewing the new file but there is a error. Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mansford/public_html/ourshop/admin/includes/languages/english/index.php on line 13 Please can some one help me as I?m thinking of down loading the osCommerce files on to my server and starting from scratch so if there is some one out there how could help Many thanks Stephen :'( Stephen Belcher Link to comment Share on other sites More sharing options...
GraphicsGuy Posted September 11, 2005 Share Posted September 11, 2005 Can you post line 13 of both files here? Besure that what you post is from the language files, not the main index.php pages. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
stephen1959 Posted September 12, 2005 Author Share Posted September 12, 2005 HI can some one help me I?m a new member and I?ve got a couple of thing?s that I need some help with the first one is this error in the index page in the English folder. Parse error: parse error, unexpected '<' in /home/mansford/public_html/ourshop/includes/languages/english/index.php on line 13 The other problem is I?ve been a bit silly and got my self in a bit confused with the index files and now I can?t get to my admin through my browser I?ve down loaded new files and tried renewing the new file but there is a error. Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mansford/public_html/ourshop/admin/includes/languages/english/index.php on line 13 Please can some one help me as I?m thinking of down loading the osCommerce files on to my server and starting from scratch so if there is some one out there how could help Many thanks Stephen :'( <{POST_SNAPBACK}> HI GraphicsGuy here is the code for line 13 from the english file <?phpInclude "TexT_main.htm";?> thanks for your help GraphicsGuy Stephen Belcher Link to comment Share on other sites More sharing options...
stephen1959 Posted September 12, 2005 Author Share Posted September 12, 2005 Can you post line 13 of both files here? Besure that what you post is from the language files, not the main index.php pages. <{POST_SNAPBACK}> GraphicsGuy i`ve sorted the admin index page thanks put still having problems with index in the language files still trying to sort it out at the moment thanks stephen :thumbsup: Stephen Belcher Link to comment Share on other sites More sharing options...
GraphicsGuy Posted September 12, 2005 Share Posted September 12, 2005 That is a problem. It appears that you are attempting to install a template system or at least replace the body content with an html file. It would be better if someone familiar with doing that answers. But line 13 of that file originally contains the definintion of TEXT_MAIN. I am quite certain that replacing the entire define with an include would not work. For one thing, the php tag is already open and that is generating the first error. Just guessing, but I suspect that line was supposed to replace the content of the TEXT_MAIN definition. I am not sure that would work (I've never seen an include inside a define statement, but you might givie it a try. define('TEXT_MAIN', '<?php include "TexT_main.htm"; ?>'); Then make sure that the campitalization of the html file name matches the way you have it in the include. Again, I am stepping outside of my experience on this and hopefully someone with experience in replacing the body content with html will comment. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
stephen1959 Posted September 12, 2005 Author Share Posted September 12, 2005 thanks again i,ll give it a try many thanks stephen :thumbsup: That is a problem. It appears that you are attempting to install a template system or at least replace the body content with an html file. It would be better if someone familiar with doing that answers. But line 13 of that file originally contains the definintion of TEXT_MAIN. I am quite certain that replacing the entire define with an include would not work. For one thing, the php tag is already open and that is generating the first error. Just guessing, but I suspect that line was supposed to replace the content of the TEXT_MAIN definition. I am not sure that would work (I've never seen an include inside a define statement, but you might givie it a try. define('TEXT_MAIN', '<?php include "TexT_main.htm"; ?>'); Then make sure that the campitalization of the html file name matches the way you have it in the include. Again, I am stepping outside of my experience on this and hopefully someone with experience in replacing the body content with html will comment. <{POST_SNAPBACK}> Stephen Belcher Link to comment Share on other sites More sharing options...
stephen1959 Posted September 12, 2005 Author Share Posted September 12, 2005 <{POST_SNAPBACK}> thanks GraphicsGuy for your help, i,ve sorted both problems now so thank you very much and ill speak to you again. best wishes stephen1959 :thumbsup: Stephen Belcher Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.