Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site Title Error


NydNyd

Recommended Posts

I have tried over and over and over.... and over again to change the site title. But when removing the osCommer from

 

// page title

define('TITLE', 'osCommerce');

 

all I receive is the following error and wind up having to restore the original file in order to gain access to the site

 

Parse error: parse error, unexpected T_STRING in /home/xixixi/public_html/catalog/includes/languages/english.php on line 79

 

 

Can anyone please help?!?!?! I'm desperate here... :'(

Link to comment
Share on other sites

I have tried over and over and over.... and over again to change the site title.  But when removing the osCommer from

 

// page title

define('TITLE', 'osCommerce');

 

all I receive is the following error and wind up having to restore the original file in order to gain access to the site

 

Parse error: parse error, unexpected T_STRING in /home/xixixi/public_html/catalog/includes/languages/english.php on line 79

Can anyone please help?!?!?!  I'm desperate here... :'(

Are you removing the define or changing it? Post some code.

Link to comment
Share on other sites

What's the URL?? How did you modify the file, on your local computer or on the server?? Post the code as modified (just the modified line).

 

 

After modifying the line from (catalog/includes/languages/english.php)

 

// page title

define('TITLE', 'osCommerce');

 

 

To...

 

 

//page title

define("TITLE', 'NydsGifts.com');

 

I click save (without errors). But when accessing the URL http://www.nydsgifts.com/catalog/index.php I receive

 

Parse error: parse error, unexpected T_STRING in /home/nydnyd/public_html/catalog/includes/languages/english.php on line 79

 

You won't see the error now because I've already replaced the english.php

Link to comment
Share on other sites

After modifying the line from  (catalog/includes/languages/english.php)

 

// page title

define('TITLE', 'osCommerce');

To...

//page title

define("TITLE', 'NydsGifts.com');

 

I click save (without errors).  But when accessing the URL  http://www.nydsgifts.com/catalog/index.php I receive

 

Parse error: parse error, unexpected T_STRING in /home/nydnyd/public_html/catalog/includes/languages/english.php on line 79

 

You won't see the error now because I've already replaced the english.php

What are you using to modify the file?

Link to comment
Share on other sites

Do not use the osCommerce File Manager to edit files - it causes parse errors. Download the file, take a backup, edit it in a plain text editor like Notepad, and then upload again. If there's a problem then restore it from the backup you made.

 

Vger

Link to comment
Share on other sites

Do not use the osCommerce File Manager to edit files - it causes parse errors.  Download the file, take a backup, edit it in a plain text editor like Notepad, and then upload again.  If there's a problem then restore it from the backup you made.

 

Vger

 

 

I was editing in osCommerse. Thank you both for your help. I will give it a try

Link to comment
Share on other sites

  • 3 weeks later...
It WORKED!!  Thanks sooooo much!  :thumbsup:

 

 

just wanted to show what was happening in case anyone else runs into this problem. I got the same error by the way and found the problem.

 

This is line 79 in the default english.php file.

 

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

 

when you use the admin editor in oscommerse, the editor reads this line incorrectly shown below:

 

define('BOX_HEADING_WHATS_NEW', 'What's New?');

 

Notice the forward slash is missing, causing the ' in the word What's to be viewed as an end text marker. I found this problem when using dreamweaver to edit my files.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...