Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected T_STRING


bentnails

Recommended Posts

Parse error: syntax error, unexpected T_STRING in /home/ ............../includes/languages/english/shipping.php on line 25

 

Trying to upload text only into the "Shipping" page. Received the above error when I clicked on "Shipping" from the website. In researching problem, I found that this error occurs only when loading text that is "too long" for the first page of "shipping" box. Once you remove the text to point that is acceptable, then error disappears and the text shows on shipping page. Additional text will not post on "continue" page. When I loaded text into "Privacy" page for same site, all of the text was saved and all put on first page, and was not posted on "continue" page.

 

I did not mess with the code at all, only pasting into admin. Checked all text for unusual characters, only standard html found.

 

Any thoughts on how to have additional text entered on page. Are there maximum character counts for Shipping?

 

Thanks,

Bentnails

Link to comment
Share on other sites

You need to ensure you escape ALL apostrophe's in your text ... to escape them just use a backslash \

 

Go through your text you entered ... if you see an apostrophe add a backslash before it ... so if you have some text like so:

 

It's a wonderful day today. Let's start shopping

 

 

Change it to:

 

It\'s a wonderful day today. Let\'s start shopping

 

 

If that wasn't the issue - paste your shipping.php file so I can see where the error is

Link to comment
Share on other sites

Thanks much for your time. Took care of the (\') items and everything is working great.

 

Bentnails

 

 

 

 

You need to ensure you escape ALL apostrophe's in your text ... to escape them just use a backslash \

 

Go through your text you entered ... if you see an apostrophe add a backslash before it ... so if you have some text like so:

 

It's a wonderful day today. Let's start shopping

 

 

Change it to:

 

It\'s a wonderful day today. Let\'s start shopping

 

 

If that wasn't the issue - paste your shipping.php file so I can see where the error is

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...