Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    12
    Plugin Contributions
    0

    Default Helppppppppppppppppppp!!!

    Hi newbie here!!!!!

    I modified my shipping module and now this comes up.

    Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/mystica2/public_html/katownsend/store/includes/modules/shipping/zones.php on line 3

    I have looked for an extra ; , can't find one and I didn't even put one in. All I changed was a number,

    // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 3;

    to

    // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 4;

    help needed please, before I destroy my computer!!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Helppppppppppppppppppp!!!

    What's on lines 1-4 of the file mentioned in the error message?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    12
    Plugin Contributions
    0

    Default Re: Helppppppppppppppppppp!!!

    <?php
    /** *
    @package shippingMethod * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: zones.php 4805 2006-10-22 02:32:33Z ajeh $ *//* USAGE By default, the module comes with support for 3 zones. This can be easily changed by editing the line below in the zones

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Helppppppppppppppppppp!!!

    Whatever software you used to edit the file has removed all the carriage-returns at the end of all the lines.

    You'll need to go back to a copy of that file before you edited it, and redo your edit using a different editor that is more friendly to editing text files.

    If you are using Windows and need a good free editor, try Notepad++ at http://notepad-plus.sf.net
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    12
    Plugin Contributions
    0

    Default Re: Helppppppppppppppppppp!!!

    Unfortunately I don't have a copy of it before I edited it...silly me didn't save one!!!!! aaaahhhhh

    how do I get out of this one?

    I downloaded another editor.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Helppppppppppppppppppp!!!

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    12
    Plugin Contributions
    0

    Default Re: Helppppppppppppppppppp!!!

    Thank you so much for your help

 

 

Posting Permissions

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