This is a discussion on Hello i need help with my english.php file within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Whenever i try to view my site it says Parse error: parse error, unexpected T_STRING in /var/www/html/shopping/includes/languages/english.php on line 145 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Whenever i try to view my site it says Parse error: parse error, unexpected T_STRING in /var/www/html/shopping/includes/languages/english.php on line 145 and this is line 143-146 // javascript messages define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.n'); define('JS_REVIEW_RATING', '* You must rate the product for your review.n'); Someone please help my i was trying to remove the copy right and this is what happened to me please help. |
|
#2
| |||
| |||
| Just a pure guess here, as it's out of my pay grade, but I would try putting a \ or / (can't recall which direction), in front of the two apostrophe's around the 'Review Text' , so it would look like /'Review Text/' or \'Review Text\' It doesn't like apostrophe's, since they have meaning in PHP, and it appears that may be causing the problem. Putting the slashing in front of the apostrophe's tells it to ignore that as a normal command, and use it as "text" so to speak. Surely, someone with a brain can explain it, but that's my guess, and I stress "guess". |
|
#3
| |||
| |||
| Parse error: parse error, unexpected T_STRING in /var/www/html/shopping/includes/languages/english.php on line 147 // checkout procedure text define('CHECKOUT_BAR_DELIVERY', 'Delivery Information'); define('CHECKOUT_BAR_PAYMENT', 'Payment Information'); define('CHECKOUT_BAR_CONFIRMATION', 'Confirmation'); define('CHECKOUT_BAR_FINISHED', 'Finished!'); // pull down default text define('PULL_DOWN_DEFAULT', 'Please Select'); define('TYPE_BELOW', 'Type Below'); (this is line147) ->// javascript messages define('JS_ERROR', 'There are errors in its form! Please, makes the following correciones:nn'); define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.n'); define('JS_REVIEW_RATING', '* You must rate the product for your review.n'); define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.n'); define('JS_ERROR_SUBMITTED', 'This form has already been submitted. Please press Ok and wait for this process to be completed.'); define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Please select a payment method for your order.'); Im not sure what to do ive been looking at the code for 4 hours now someone please help the forward slashes didnt help thanks for the try though. |
|
#4
| ||||
| ||||
| Just restore the original and start over. The mistake could be anywhere...
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| Where can I get the original? |
|
#6
| ||||
| ||||
| In the download zip that you had to get to install osCMax in the first place, or the backup that you made before messing with your files (you did make a backup, right?)
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| Yes i did I got it working now thanks! |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I edit english.php? | ScaleCreep | osCommerce 2.2 Modification Help | 2 | 12-30-2004 04:56 AM |
| english.php crashes when saved by the built in file editor | Trinity | osCMax v1.7 Discussion | 1 | 09-22-2004 01:06 AM |
| Help, I screwed up english.php! | reid | osCMax v1.7 Discussion | 4 | 02-22-2004 10:43 AM |
| English only ? | Anonymous | osCMax v1.7 Discussion | 1 | 09-21-2003 08:01 AM |