Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    83
    Plugin Contributions
    0

    Default syntax error!! help please

    I have installed back in stock notification mod.
    The file tpl_account_default.php of that mod send the following error:
    [19-ott-2009 13:42:20] PHP Parse error: syntax error, unexpected $end in /home1/egamesev/public_html/includes/templates/egame74/templates/tpl_account_default.php on line 126


    Here is the file:

    Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=account.<br />
     * Displays previous orders and options to change various Customer Account settings
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 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: tpl_account_default.php 4086 2006-08-07 02:06:18Z ajeh $
     */
    ?>
    
    <div class="centerColumn" id="accountDefault">
    
    <h1 id="accountDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php if ($messageStack->size('account') > 0) echo $messageStack->output('account'); ?>
    
    <?php
        if (zen_count_customer_orders() > 0) {
      ?>
    <p class="forward"><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . OVERVIEW_SHOW_ALL_ORDERS . '</a>'; ?></p>
    <br class="clearBoth" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="prevOrders">
    <caption><h2><?php echo OVERVIEW_PREVIOUS_ORDERS; ?></h2></caption>
        <tr class="tableHeading">
        <th scope="col"><?php echo TABLE_HEADING_DATE; ?></th>
        <th scope="col"><?php echo TABLE_HEADING_ORDER_NUMBER; ?></th>
        <th scope="col"><?php echo TABLE_HEADING_SHIPPED_TO; ?></th>
        <th scope="col"><?php echo TABLE_HEADING_STATUS; ?></th>
        <th scope="col"><?php echo TABLE_HEADING_TOTAL; ?></th>
        <th scope="col"><?php echo TABLE_HEADING_VIEW; ?></th>
      </tr>
    <?php
      foreach($ordersArray as $orders) {
    ?>
      <tr>
        <td width="70px"><?php echo zen_date_short($orders['date_purchased']); ?></td>
        <td width="30px"><?php echo TEXT_NUMBER_SYMBOL . $orders['orders_id']; ?></td>
        <td><address><?php echo zen_output_string_protected($orders['order_name']) . '<br />' . $orders['order_country']; ?></address></td>
        <td width="70px"><?php echo $orders['orders_status_name']; ?></td>
        <td width="70px" align="right"><?php echo $orders['order_total']; ?></td>
        <td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>'; ?></td>
      </tr>
    
    <?php
      }
    ?>
    </table>
    <?php
      }
    ?>
    <br class="clearBoth" />
    <div id="accountLinksWrapper" class="back">
    <h2><?php echo MY_ACCOUNT_TITLE; ?></h2>
    <ul id="myAccountGen" class="list">
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li>
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></li>
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li>
    </ul>
    
    
    <?php
    // BEGIN BACK_IN_STOCK_NOTIFICATIONS 1 of 3
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0' ||
        BACK_IN_STOCK_NOTIFICATION_ENABLED == 1) {
    /*
    // END BACK_IN_STOCK_NOTIFICATIONS 1 of 3
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    // BEGIN BACK_IN_STOCK_NOTIFICATIONS 2 of 3
    */
    // END BACK_IN_STOCK_NOTIFICATIONS 2 of 3
    ?>
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
    <ul id="myAccountNotify" class="list">
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') {
    ?>
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
    <?php } //endif newsletter unsubscribe ?>
    <?php
    
    // BEGIN BACK_IN_STOCK_NOTIFICATIONS 3 of 3
      if (BACK_IN_STOCK_NOTIFICATION_ENABLED == 1) {
          if ($subscribed_to_notification_lists) {
              echo '<li><a href="' . zen_href_link(FILENAME_ACCOUNT_BACK_IN_STOCK_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_BACK_IN_STOCK_NOTIFICATIONS . '</a></li>';
          } else {
              echo '<li>' . EMAIL_NOTIFICATIONS_NO_BACK_IN_STOCK_NOTIFICATIONS . '</li>';
          }
      }
    // END BACK_IN_STOCK_NOTIFICATIONS 3 of 3
    
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    ?>
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
    <ul id="myAccountNotify" class="list">
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') {
    ?>
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
    <?php } //endif newsletter unsubscribe ?>
    <?php
      if (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1') {
    ?>
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></li>
    
    <?php } //endif product notification ?>
    </ul>
    
    <?php } // endif don't show unsubscribe or notification ?>
    </div>
    
    <?php
    // only show when there is a GV balance
      if ($customer_has_gv_balance ) {
    ?>
    <div id="sendSpendWrapper">
    <?php require($template->get_template_dir('tpl_modules_send_or_spend.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_send_or_spend.php'); ?>
    </div>
    <?php
      }
    ?>
    <br class="clearBoth" />
    </div>
    Can someone help me?
    TY in advance
    www.egame74.com console accessories

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: syntax error!! help please

    The opening curly bracket on line 68 is missing a closing curly bracket.

    PHP Code:
    if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0' ||
        
    BACK_IN_STOCK_NOTIFICATION_ENABLED == 1) { 

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    83
    Plugin Contributions
    0

    Default Re: syntax error!! help please

    Quote Originally Posted by Steven300 View Post
    The opening curly bracket on line 68 is missing a closing curly bracket.

    PHP Code:
    if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0' ||
        
    BACK_IN_STOCK_NOTIFICATION_ENABLED == 1) { 
    Can you tell me how to fix it?
    www.egame74.com console accessories

  4. #4
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: syntax error!! help please

    Sorry, I'm not familiar with the mod. Try asking the mod's author, Conor, in the mod's support thread:

    http://www.zen-cart.com/forum/showthread.php?t=102159

  5. #5
    Join Date
    May 2008
    Location
    Italy
    Posts
    83
    Plugin Contributions
    0

    Default Re: syntax error!! help please

    Quote Originally Posted by Steven300 View Post
    Sorry, I'm not familiar with the mod. Try asking the mod's author, Conor, in the mod's support thread:

    http://www.zen-cart.com/forum/showthread.php?t=102159
    So...if you have find the curly bruket missing why dont you tell me how to fix it?
    www.egame74.com console accessories

  6. #6
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: syntax error!! help please

    It's not obvious where the closing bracket is meant to go.

    I would tell you if I knew.

 

 

Similar Threads

  1. PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'
    By mfsuchta in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Aug 2008, 02:16 AM
  2. Help with PHP syntax please?
    By sunflowertami in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jun 2008, 11:48 AM
  3. Please help! php syntax needed to call images!
    By Vood in forum General Questions
    Replies: 3
    Last Post: 31 Oct 2007, 09:59 PM
  4. Easy PHP syntax question -- help please?
    By magicpants in forum General Questions
    Replies: 2
    Last Post: 17 Jan 2007, 02:31 PM

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