osCmax v2.5 User Manual
Results 1 to 2 of 2

Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^

This is a discussion on Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^ within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I been reading the boards and realise this parse evil has been around too for many of oscommerce newbies trying ...

      
  1. #1
    New Member
    Join Date
    Jul 2003
    Posts
    7
    Rep Power
    0


    Default Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^



    I been reading the boards and realise this parse evil has been around too for many of oscommerce newbies trying to edit...

    I keep getting parse error while tryign to edit my product_info.php.

    I'm wondering if any of you can help here. I am using dreamweaver MX and i get this parse error...i deleted the line it says with error and made sure theres no line or space there. But still it gives me that error. Then I copied the code to notepad to try too but still it gives mi that error!

    I am trying to modify product_info so to give me a customised look for the layout. I wanted to take away the customers also bought this php so I took out the codes of

    <?php
    if ((USE_CACHE == 'true') && empty($SID)) {
    echo tep_cache_also_purchased(3600);
    } else {
    include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
    }
    ?>

    but then it will give me a parse error there.

    Please help and to those who did so successfully edit the codes, what software did you use? And is it theres a certani number of space to maintain or watch before and after the <?php and the ?>

    Im' a newbie to php so any help will be greatly appreciated...thanks
    }

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Just leave the code in place and comment out the include so it looks like this:

    Code:
    <?php
        if ( (USE_CACHE == 'true') && !defined('SID')) {
          echo tep_cache_also_purchased(3600);
        } else {
          //include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
        }
      }
    ?>
    Problem solved
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

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, 01:27 PM
  2. New Installation Parse error: parse error, unexpected T_STRI
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 07-09-2004, 06:06 AM
  3. Parse Error?
    By JJH35 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 04-06-2004, 01:14 PM
  4. Parse error: parse error for product_listing.php
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-16-2003, 01: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, 10: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
  •