Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin index file error


stephen1959

Recommended Posts

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

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

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

:'(

 

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

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.

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

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

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.

Stephen Belcher

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...