Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing anything in index.php causes error


Ragtop1968

Recommended Posts

Posted

I am using Commerce Pro through Netfirms.

 

After editing the index.php, I can not get it to run again.

 

Going to site returns following error:

 

---------------------------

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /mnt/web_r/d30/s39/b021a930/www/videostore/nfoscomm/catalog/includes/languages/english/index.php on line 33

---------------------------

I tried to turn

define('HEADING_TITLE', 'Let's See What We Have Here');

to

define('HEADING_TITLE', 'Video List');

 

Even when I set it back to the old value, it still returns the same error. Originally it worked.

Posted
I am using Commerce Pro through Netfirms.

 

After editing the index.php, I can not get it to run again.

 

Going to site returns following error:

 

---------------------------

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /mnt/web_r/d30/s39/b021a930/www/videostore/nfoscomm/catalog/includes/languages/english/index.php on line 33

---------------------------

I tried to turn

define('HEADING_TITLE', 'Let's See What We Have Here');

to

define('HEADING_TITLE', 'Video List');

 

Even when I set it back to the old value, it still returns the same error. Originally it worked.

Originally it was written like 'Let\'s See What We Have Here'

If you use any ' in your text you must escape it, means write like \', otherwiste you get errors. Never change file with the built in file manager from osCommerce as it contains a bug which causes the \ to dissapear. There is an update available which cures this.

Out of curiosity: what does the footer of your admin read in the Netfirms Commerce Pro ?

Posted
Originally it was written like 'Let\'s See What We Have Here'

If you use any ' in your text you must escape it, means write like \', otherwiste you get errors. Never change file with the built in file manager from osCommerce as it contains a bug which causes the \ to dissapear. There is an update available which cures this.

Out of curiosity: what does the footer of your admin read in the Netfirms Commerce Pro ?

 

Thank you. Thank you. Thank you.

 

I thought some of the defines had extra ' in them but thought it must be ok in PHP cause it worked originally.

Now I know Oscommerce was hiding the / .........argh.

 

 

The footer:

 

E-Commerce Engine Copyright ? 2003 osCommerce

osCommerce provides no warranty and is redistributable under the GNU General Public License

 

Powered by osCommerce

Posted
The footer:

 

E-Commerce Engine Copyright ? 2003 osCommerce

osCommerce provides no warranty and is redistributable under the GNU General Public License

 

Powered by osCommerce

Thanks :thumbsup:

Archived

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

×
×
  • Create New...