Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP!!!!!


ladyamalthea

Recommended Posts

Posted

I tried to edit the text for my index.php page and I don't know what happened. I did it like the knowledge base stated but when I go to load my page I get

Parse error: parse error, unexpected T_STRING in /home/username/public_html/cart/includes/languages/english/index.php on line 13

How do I fix it? Or is there a code for the index.php that I could copy and paste to put back in? I can't delete my cart because I already uploaded all my images? Please help ASAP

 

[email protected]

Posted

If you just started or have a fresh install, probably best to re-instate the index.php file and start over. Sounds like a bracket or something has come out of the script somewhere along the line. Best place to change the text is in catalog/includes/languages/index.php

 

hth, best wishes :P

Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem....

Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums.....

if (stumped == true) {

return(square_one($start_over)

} else {

$random_query = tep_fetch_answer($forum_query)

}

Posted

if you have ftp, just open your catalog folder, and drag the index.php from your pc into the ftp window. If you do not have ftp, go to Admin->Tools->File Manager and click on index.php. Click edit, highlight the whole lot. Now in a new window, open the index.php on your computer from when you downloaded the software. Highlight the whole lot, Copy it using your right mouse button. Go back to the original window, right click and paste the version from your PC over the version on your site. Click save, and your old file is restored. If the changes you made were in catalog/includes/languages/english/index.php then do as above, but on that file instead! If you are still stuck, yell me on msn and i'll try and talk you through.

Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem....

Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums.....

if (stumped == true) {

return(square_one($start_over)

} else {

$random_query = tep_fetch_answer($forum_query)

}

Posted
if you have ftp, just open your catalog folder, and drag the index.php from your pc into the ftp window. If you do not have ftp, go to Admin->Tools->File Manager and click on index.php. Click edit, highlight the whole lot. Now in a new window, open the index.php on your computer from when you downloaded the software. Highlight the whole lot, Copy it using your right mouse button. Go back to the original window, right click and paste the version from your PC over the version on your site. Click save, and your old file is restored. If the changes you made were in catalog/includes/languages/english/index.php then do as above, but on that file instead! If you are still stuck, yell me on msn and i'll try and talk you through.

You really shouldn't be using the File Manager to modify your PHP files as it can create whitespace, which can actually create the error mentioned in the initial post.

Posted

Ok, I tried to upload the index.php file and got the following error message

Fatal error: Call to undefined function: tep_get_languages() in /home/username/public_html/cart/index.php on line 58

 

Any suggestions on what to do now to restore my index.php. I am assuming initially the problem was from using file manager like the last poster stated. Also, from the download, it looks like there are several index.php. One under catalog, one under catalog/admin. Did I use the wrong one maybe? Please feel free to email me

Posted

I just restored it.

Now how do I chane the text on the front page so I don't run into the same problem?

The page reads:

Editing Page Texts

 

The text shown here can be modified in the following file, on each language basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules.

 

The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');

 

The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:

 

define('TEXT_MAIN', '');

 

Also how do I correct the following warning:

Warning: I am able to write to the configuration file: /home/username/public_html/cart/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

Posted

Right, fistly the configuration file. You need to get an ftp programme. There are loads of free ones out there that are half decent, try a search on Google for "free ftp software" or something similar. Until you have a decent ftp programme, your site development is going to be an extremely bumpy ride!

 

When you have the software, you can change the config file so that it is read only - look for an option called "chmod" - normally if you select the file config.php and right click a menu will come up with chmod as an option. What changing this does is to prevent anyone else on the web from changing the settings of your site, so the message on your site is there to remind you that your site settings are not secure.

 

You will also find that with the ftp software, you will be able to whip through the text changes you want to do. You will need to go to the catalog directory of your site, into the includes directory, into the languages directory, into the english directory and then edit the file you wish to change. (in this case index.php"). Then edit this file, look for the bit which says

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');
and change the bit which says This is a default setting of the osCommerce project to text of your choice. Make sure the ' is at each end of your text, otherwise you will get another error - also avoid using ' in your text itself - i.e. don't put the ' in dont as it will confuse the programme! Again, if you still have problems, email or instant message me on msn - I am online most of the time and will try and get you up and running if I can!! :blink:

Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem....

Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums.....

if (stumped == true) {

return(square_one($start_over)

} else {

$random_query = tep_fetch_answer($forum_query)

}

Archived

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

×
×
  • Create New...