Results 1 to 7 of 7

Thread: Hello i need help with my english.php file

  1. #1
    reysent
    Guest


    Default Hello i need help with my english.php file

    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. #2
    goaskmom
    Guest


    Default

    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. #3
    reysent
    Guest


    Default

    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. #4
    osCMax Developer


    Hello i need help with my english.php file

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,012
    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    594


    Default

    Just restore the original and start over. The mistake could be anywhere...
    Michael Sasek

    osCmax 2.5.4 is now available via auto-installation using Softaculous!

    Stay Up To Date with everything osCMax:
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    reysent
    Guest


    Default

    Where can I get the original?

  6. #6
    osCMax Developer


    Hello i need help with my english.php file

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,012
    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    594


    Default

    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 2.5.4 is now available via auto-installation using Softaculous!

    Stay Up To Date with everything osCMax:
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    reysent
    Guest


    Default

    Yes i did I got it working now thanks!

Similar Threads

  1. How do I edit english.php?
    By ScaleCreep in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-30-2004, 04:56 AM
  2. english.php crashes when saved by the built in file editor
    By Trinity in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-22-2004, 01:06 AM
  3. Help, I screwed up english.php!
    By reid in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 02-22-2004, 10:43 AM
  4. English only ?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-21-2003, 08:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •