Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    39
    Plugin Contributions
    0

    bug Parse error-reinstalled and still have it

    Hello,

    Brand new to Zen cart and so far I love it. It is certainly a learning experience. I installed the Debug Error Logging Utility after half of my page stopped appearing. It keeps telling me the following:

    [08-Jan-2008 16:20:51] PHP Parse error: parse error, unexpected $ in /homepages/12/d225534588/htdocs/includes/modules/sideboxes/information.php on line 60

    I cannot figure out where the error is. Any help is greatly appreciated as I am just sick thinking about having to scratch all that I have done and start over. I am hoping this is the only problem I am having.

    Thanks to anyone that can help me shed some light on this!

    Ben

    The code is as follows:
    PHP Code:
    <?php
    /**
     * information sidebox - displays list of general info links, as defined in this file
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: information.php 4132 2006-08-14 00:36:39Z drbyte $
     */

      
    unset($information);

      if (
    DEFINE_ORDER_STATUS <= 1) {
       
      if (
    DEFINE_SHIPPINGINFO_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_SHIPPING) . '">' BOX_INFORMATION_SHIPPING '</a>';
      }
      if (
    DEFINE_PRIVACY_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_PRIVACY) . '">' BOX_INFORMATION_PRIVACY '</a>';
      }
      if (
    DEFINE_CONDITIONS_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_CONDITIONS) . '">' BOX_INFORMATION_CONDITIONS '</a>';
      }
      if (
    DEFINE_CONTACT_US_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_CONTACT_US) . '">' BOX_INFORMATION_CONTACT '</a>';
      }

    // Forum (phpBB) link:
      
    if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
        
    $information[] = '<a href="' zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX'''NONSSL'false''true) . '" target="_blank">' BOX_BBINDEX '</a>';
    // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
      
    }

      if (
    DEFINE_SITE_MAP_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_SITE_MAP) . '">' BOX_INFORMATION_SITE_MAP '</a>';
      }

      
    // only show GV FAQ when installed
      
    if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
        
    $information[] = '<a href="' zen_href_link(FILENAME_GV_FAQ) . '">' BOX_INFORMATION_GV '</a>';
      }
      
    // only show Discount Coupon FAQ when installed
      
    if (DEFINE_DISCOUNT_COUPON_STATUS <= && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
        
    $information[] = '<a href="' zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' BOX_INFORMATION_DISCOUNT_COUPONS '</a>';
      }
      if (
    SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
        
    $information[] = '<a href="' zen_href_link(FILENAME_UNSUBSCRIBE) . '">' BOX_INFORMATION_UNSUBSCRIBE '</a>';
      }

      require(
    $template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_information.php');

      
    $title =  BOX_HEADING_INFORMATION;
      
    $title_link false;

      require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
    ?>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Parse error-reinstalled and still have it

    You edited the file and added something on line 14 or removed something from lines 15 and 16.

    You left this:
    Code:
      if (DEFINE_ORDER_STATUS <= 1) {
    But, you left a syntax problem ... an open condition with no close.
    Hence the error.
    .
    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
    Jan 2008
    Posts
    39
    Plugin Contributions
    0

    Default Re: Parse error-reinstalled and still have it

    Thank you so much! File fixed and my sight is back up. You saved a lot of heartburn for me tonight. I can't thank you enough!!

    Ben

 

 

Similar Threads

  1. Reinstalled - Configuration link links still blank
    By Seal948 in forum General Questions
    Replies: 7
    Last Post: 25 Mar 2011, 09:36 PM
  2. Added SSL, Now have Parse Error when trying to use ADMIN
    By minson in forum General Questions
    Replies: 2
    Last Post: 22 Mar 2007, 02:05 AM
  3. Reinstalled Zen, have some questions...
    By jemenvy in forum General Questions
    Replies: 6
    Last Post: 18 Mar 2007, 04:39 AM

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