Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php


facasplaca

Recommended Posts

Posted

HI everyone,

I tried to change index.php and for testing purposes I deleted only one word from text, and now I have this error:

 

Parse error: parse error in /catalog/includes/languages/english/index.php on line 13

 

I tried like 10 different ways, and whatever I do I get always this error.

 

Please help, because I cannot customize first page, and I don't know what to do....

Posted

Make sure that you have not inadvertently changed one of the characters that controls the php code

define('TEXT_MAIN', 'This shop is based on <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

There must be a single quote in front and behind the define name and the entire define entry, with a comma separating them, as well as an opening and closing paren followed by a semicolon. Additionally, if there is any php within the define, it needs to be separated from the html with an opening [' .] and a closing [. '] as in the above example.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Posted

Thanks, I tried like everything, and always is the same error, and this is what I only get:

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

TEXT_MAIN

 

 

Whatever I do after TEXT_MAIN, no change...

 

I even uploaded index.php again, deleted only one word from deafult text, ( just one word ! ) and still I am getting same error and same text....

 

Any other ideas ?

Posted

could be possible that your editing the wrong file?

 

Since i understand your questions fully, but yet at the same time have a hard time seeing why one installation from another of the same version would have diffuculties. Besides there be many updates posted on a weekly basis or some sort.

Posted

The file you want to change for the main text on your homepage is this one:

 

...catalog/includes/languages/english/index.php

 

assuming you are using an english version.

 

It can be confusing because there are two "index.php" files in the store structure. At least two. There may be more that I haven't found yet.

 

Hope this helps.

 

TLC

I realize this may sound like a dumb question, but consider the source.

Posted

Hi, i was looking for the same thing but the file you need in in the catalog/languages/english/default.php

 

it can be changed there.....

Posted

Hello, where can I go and change these lines: Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

I tried in includes/languages/english/default.php but it is not there.. please help!!!!

Posted

Try looking in

 

includes/languages/english.php

Posted

I'm having the same problem. I took out one word just to see if it worked, and I got the error mentioned above.

 

I've done a search on this topic and everyone says to modify this file:

 

...catalog/includes/languages/english/index.php

 

I don't HAVE this file!!! I have one at the same location called default.php which has the text shown on the main page. I make one lousy tiny little change and I get an error. I'm not a PHP expert, but I run a vBulletin message board and have hacked those files to pieces and everything works great. Why can't I figure this out??? :blink:

 

Is the file structure and naming completely different for each version or something? How confusing!!!

 

Help!!!

Posted

Ok, I was able to modify the default.php file to get the text on the front page to be my own. The problem was that I had used apostrophes. When I took them out...voila! It worked.

Archived

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

×
×
  • Create New...