Author |
Message |
sak
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/0cddf1ff43222768be81b.jpg)
Joined: Jul 06, 2005
Posts: 172
|
Posted:
Wed Nov 04, 2009 10:35 am |
|
I installed NOScart 2, and after debugging a few bugs, everything looked OK (store and admin worked).
HOWEVER, whenever a user clicks Add to Cart, they are immediately taken to an empty shopping cart every time. No products can ever be added to the cart - the cart always appears empty. Interestingly enough, the saved shopping cart feature in admin fills up with the items that I add (so it is on some level recognizing that I am adding things). I just can't get them to show up in my cart
I've been searching all over and alien has been helping me, but we haven't come to any conclusions yet.
Apache version 2.0.63
PHP version 5.2.10
MySQL version 5.0.81-community
Here are the changes I had to make per aliens instruction to get rid of errors (don’t mind that the lines are commented out – I do that in my change-tracking files):
Code:First 31 lines of modules/catalog/index.php had to be commented out (all lines before line 12 already were commented out):
//$resultcat = sql_query("select categories_id,categories_name from categories_description where //categories_id='$categories_id'", $dbi);
//while(list($categories_id,$categories_name) = sql_fetch_row($resultcat, $dbi)) {
//}
//$result = sql_query("select manufacturers_id, manufacturers_name from manufacturers where //manufacturers_id='$manufacturers_id'", $dbi);
//while(list($manufacturers_id,$manufacturers_name) = sql_fetch_row($result, $dbi)) {
//if($manufacturers_name==""){
//$pagetitle = " - Product Catalog";
//}else{
//$pagetitle = " - Manufacturer - $manufacturers_name";
////////}
//}
//
//}
//
|
Code:Modules/catalog/includes/application_top.php
///This is an oscommerce issue not Noscart
///
navigation history
if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory;
$navigation->unserialize($broken_navigation);
}
} else {
tep_session_register('navigation');
$navigation = new navigationHistory;
}
$navigation->add_current_page();
change to
navigation history
if (tep_session_is_registered('navigation')) { if (PHP_VERSION < 4) { $broken_navigation = $navigation; $navigation = new navigationHistory; $navigation->unserialize($broken_navigation);
} else {
$navigation = new navigationHistory;
}
} else {
tep_session_register('navigation');
$navigation = new navigationHistory;
}
$navigation->add_current_page();
|
Code:Modules/catalog/admin/includes/classes/upload.php
change $this in line 31 to $thisxx
|
|
_________________ www.ICarry.org
www.GunOwnersFellowship.com |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Wed Nov 04, 2009 11:00 am |
|
Your $dbi needs to be converted to $db like so.
Code:$resultcat = $db->sql_query("select categories_id,categories_name from categories_description where categories_id='$categories_id'");
while(list($categories_id,$categories_name) = $db->sql_fetchrow($resultcat)) {
}
$result = $db->sql_query("select manufacturers_id, manufacturers_name from manufacturers where manufacturers_id='$manufacturers_id'");
while(list($manufacturers_id,$manufacturers_name) = $db->sql_fetchrow($result)) {
|
|
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 18, 2004
Posts: 579
|
Posted:
Wed Nov 04, 2009 11:25 am |
|
i assume it's a cookie and path problem.
btw this code looks like oscommerce |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 04, 2009 12:05 pm |
|
yes, NOScart 2 is oscommerce ported to nuke.
I updated the db layer. Didn't resolve this problem, but at least that code doesn't have to be commented out anymore.
I thought the same, whitehat. ive been racking my brain trying to get it to work, changing the cookie domains to every combination I can think of. I'm so lost. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 04, 2009 12:28 pm |
|
Have you turned on error reporting to see if any errors are being generated? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 04, 2009 3:20 pm |
|
I tried error reporting again after doing a fresh install. No errors on any pages that I can find. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 05, 2009 11:48 am |
|
do you have the problem on your localhost or on your live site?
If it is your localhost , do you run php 5xx? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bdmdesign
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/5c753ecf4a7161090c367.jpg)
Joined: May 11, 2009
Posts: 154
Location: Winsen/Luhe; Germany
|
Posted:
Fri Nov 06, 2009 4:49 am |
|
Wich Raven Nuke Version do you use ??
This problem i know only too well.
If you use Ravennuke 2.4 please have a look in your mainfile:
Search:Code:
if ($phpver >= '4.0.4pl1' && isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'],'compatible')) {
if (extension_loaded('zlib')) {
@ob_end_clean();
ob_start('ob_gzhandler');
}
} elseif ($phpver > '4.0' && isset($_SERVER
|
Now go to line 62 and change the code on this line to:
Code:
//ob_start('ob_gzhandler');
ini_set("zlib.output_compression", '6');
|
Now you must have it so:
Code:
if ($phpver >= '4.0.4pl1' && isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'],'compatible')) {
if (extension_loaded('zlib')) {
@ob_end_clean();
//ob_start('ob_gzhandler');
ini_set("zlib.output_compression", '6');
}
} elseif ($phpver > '4.0' && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
|
Backup your Mainfile before change the code.
I hope its works for NOScart 2, too.
@ wHiTeHaT: He use PHP version 5.2.10, thats not the problem.
Best Regards
Peter |
_________________ CMS-Version: pragmaMx 1.12.3.1.33.4.14 :: PHP-Version: 5.3.14 :: MySQL-Version: 5.5.23-log :: Server-Version: Apache/2.2.21 (Linux/SUSE)
Projekt: osc4pragmaMx- 2.3.2 in development |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 06, 2009 1:27 pm |
|
you're like an angel, bdm
I applied this fix and still no luck, however I'd like to try a few different settings in the config file first before giving up on this.
Did you have this same empty shopping cart problem with osc2nuke? And this change fixed it for you? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 06, 2009 2:18 pm |
|
I'm running RavenNuke 2.4. I've tried everything imaginable to get Noscart2 to work. No luck. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bdmdesign
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 06, 2009 4:32 pm |
|
Ok. osc2nuke dont works with RN 2.4 without changes in the Codes.
Have a look in this tread: http://www.ravenphpscripts.com/posts17138-start-25.html
If you need a working Shop Modul write me a PM please.
This fixe works with RN 2.3 and 2.4 but osc2nuke need more changes to get it works.
Best Regards
Peter |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 07, 2009 5:41 am |
|
sak... do you run noscart on your localhost? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 08, 2009 3:39 pm |
|
My site runs off a professionally administrated server -- I don't run my own server. Is that what you mean? Noscart is running on the same server and account as nuke is, same database and all that stuff. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kenno
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/Cartoons/Cartoons_-_Pink_Panther.gif)
Joined: Jul 26, 2009
Posts: 117
Location: Scunthorpe, UK
|
Posted:
Sun May 29, 2011 1:27 pm |
|
Sak
Are you still using this NOScart?
Is it ok to use, any issues, does anyone have a download for this anywhere ?
Thanks Mark |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon May 30, 2011 2:27 pm |
|
Keep in mind this thread is 2 years old. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|