osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-18-2003, 01:31 AM
New Member
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
humbags
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
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 07-18-2003, 06:40 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,243
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Parse error: parse error, unexpected T_NEW, expecting ')' oscnoob osCMax v1.7 Discussion 0 04-02-2005 02:27 PM
New Installation Parse error: parse error, unexpected T_STRI Anonymous osCMax v1.7 Installation 5 07-09-2004 06:06 AM
Parse Error? JJH35 osCommerce 2.2 Installation Help 1 04-06-2004 01:14 PM
Parse error: parse error for product_listing.php midwestwebsites osCMax v1.7 Discussion 1 09-16-2003 01:21 PM
Parse error: parse error, unexpected T_STRING? HELP... hanool osCommerce 2.2 Modification Help 1 09-10-2003 10:38 AM


All times are GMT -8. The time now is 07:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax