Results 1 to 3 of 3

Parse error with Birthday Contrib

This is a discussion on Parse error with Birthday Contrib within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I have made the necessary changes to the files and uploaded the birthday.php file, but get this error... Parse error: ...

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    239
    Rep Power
    10


    Default Parse error with Birthday Contrib

    I have made the necessary changes to the files and uploaded the birthday.php file, but get this error...

    Parse error: syntax error, unexpected ')' in /home/starreco/public_html/catalog/admin/includes/boxes/customers.php on line 34

    Below is what is in the original admin/customers.php, the install instructios for that part of it, and the finsihed changes to the OsMax file.

    Any help please. Tried a few things but all I do is get the error to another line.

    Original admin/includes/boxes/customers.php file

    //Admin begin
    // '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');
    tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .
    tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));
    //Admin end

    Instructions say..

    In admin/includes/boxes/customers.php

    FIND:
    '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');

    REPLACE with:
    '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' .
    '<a href="' . tep_href_link(FILENAME_BIRTHDAY, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_BIRTHDAY . '</a>');
    Resulting file...

    //Admin begin
    // '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
    //
    /* '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>'); */


    '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' .
    '<a href="' . tep_href_link(FILENAME_BIRTHDAY, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_BIRTHDAY . '</a>');

    tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .
    tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));
    //Admin end
    But I get this answer..

    Parse error: syntax error, unexpected ')' in /home/starreco/public_html/catalog/admin/includes/boxes/customers.php on line 34
    Line 34 is
    tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));


    Thanks

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default RE: Parse error with Birthday Contrib

    Line 34 is
    tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));

    S/B:
    tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS);

    YES - you DO have an unexpected ')' in /home/starreco/public_html/catalog/admin/includes/boxes/customers.php on line 34


    Simple typo error that is all!

    Good luck
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    239
    Rep Power
    10


    Default RE: Parse error with Birthday Contrib

    Thank you !

    You know, I thought I had tried that but obviously didn't.

    You're a charm thanks again!

    It's a cute little mod too!

    oz

Similar Threads

  1. Parse error: parse error, unexpected T_NEW, expecting ')'
    By oscnoob in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-02-2005, 02:27 PM
  2. Parse error help
    By brt in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 12-31-2004, 02:47 PM
  3. New Installation Parse error: parse error, unexpected T_STRI
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 07-09-2004, 07:06 AM
  4. Parse error: parse error for product_listing.php
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-16-2003, 02:21 PM
  5. Parse error: parse error, unexpected T_STRING? HELP...
    By hanool in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-10-2003, 11:38 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
  •