Guest Posted August 30, 2005 Share Posted August 30, 2005 Help!!!! I carefully installed oscommerce and several contributions, verifying everything ofter each install. Everything worked fine. Next day customer had problem, and I ran it and came up with same thing. As guest, everything works fine, and you can register an account and log into it with no problems. But here is where the problems start, in viewing the catalog everything is fine on catagory pages but minute you open a product page you get Fatal error. Can not pass parameter 3 by reference in ....includes/modules/product_listing.php on line 13 , here is the code that it is refering to $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); other problem which showed first was is if you click on a product to add to the cart then click to the cart, it didn't show in cart and if you clicked on continue, it put you back on the homepage and logged you off. Any help or suggestions would be greatly appreciated Link to comment Share on other sites More sharing options...
♥Vger Posted August 30, 2005 Share Posted August 30, 2005 I'm guessing that you installed the contributions and checked that they worked, but didn't check to make sure all of your website functions still worked. I think you need to go back over any/all contributions you installed very carefully to find out where the error crept in. Vger Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 I'm guessing that you installed the contributions and checked that they worked, but didn't check to make sure all of your website functions still worked. I think you need to go back over any/all contributions you installed very carefully to find out where the error crept in. Vger <{POST_SNAPBACK}> Hi, thanks you are right, but its not the contributions its the actual osCommerce. I went back, set up a new database, installed osCommerce in a new directory and tried doing a purchase from the default set-up and same thing happens. No errors appear, when I'm setting up the account it goes to https and creates an account fine, but when I go to the catalog it goes back to http and select an item it says shopping cart empty and when I click continue it takes me back to main page. If I log in, it allows and recognizes the login, if I select a product it shows in the cart but when I click on checkout, it seems to clear the cart and takes me back to login. :huh: Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 could be a problem you have with your configure.php, post it here, without the database info. Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 could be a problem you have with your configure.php, post it here, without the database info. <{POST_SNAPBACK}> ok, here is my configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://fhceramics.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://fhceramics.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'fhceramics.com'); define('HTTPS_COOKIE_DOMAIN', 'fhceramics.com'); define('HTTP_COOKIE_PATH', '/fhcstore/catalog/'); define('HTTPS_COOKIE_PATH', '/fhcstore/catalog/'); define('DIR_WS_HTTP_CATALOG', '/fhcstore/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/fhcstore/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/www/f/h/fhceramics.com/htdocs/fhcstore/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Hope this helps Link to comment Share on other sites More sharing options...
AlanR Posted August 31, 2005 Share Posted August 31, 2005 You're trying to set it as if you have your own certificate when you don't. You'll have to set the https server to use the shared ssl url. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2005 Share Posted September 1, 2005 You're trying to set it as if you have your own certificate when you don't. You'll have to set the https server to use the shared ssl url. <{POST_SNAPBACK}> I have tried both of the https servers that powweb lists, and I get the same thing. Setting it up like shown in the config was a last ditch attempt to get it to work Link to comment Share on other sites More sharing options...
AlanR Posted September 1, 2005 Share Posted September 1, 2005 I have tried both of the https servers that powweb lists, and I get the same thing. Setting it up like shown in the config was a last ditch attempt to get it to work <{POST_SNAPBACK}> Set it up with the powerweb proxy server again and post again after you've done it. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2005 Share Posted September 1, 2005 Set it up with the powerweb proxy server again and post again after you've done it. <{POST_SNAPBACK}> Here is the config from the new install, and the problem still exists. I am totally lost as to what to do!! // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://fhceramics.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://fhceramicscom.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'fhceramics.com'); define('HTTPS_COOKIE_DOMAIN', 'fhceramicscom.secure.powweb.com'); define('HTTP_COOKIE_PATH', '/Store/catalog/'); define('HTTPS_COOKIE_PATH', '/Store/catalog/'); define('DIR_WS_HTTP_CATALOG', '/Store/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/Store/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/www/f/h/fhceramics.com/htdocs/Store/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I tried doing the install without SSL // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://fhceramics.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'fhceramics.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/osCommerce/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/www/f/h/fhceramics.com/htdocs/osCommerce/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); to see if the SSL was the problem and when I click on an item, the shopping cart pops up showing the item but when I check on checkout the screen reverts back to the cart page but says nothing is in the cart. Now I'm extremely confused as I did not touch anything other then to create a customer account. Link to comment Share on other sites More sharing options...
AlanR Posted September 1, 2005 Share Posted September 1, 2005 How is this line define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' set? Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
♥Vger Posted September 1, 2005 Share Posted September 1, 2005 Your 'Add To Cart' function is not working at all. I had problems before with a customer who wanted mods added to a site hosted by PowWeb, and because of the way they run php, as a cgi executable with calls to the cgi bin in the header of every file it was a nightmare. Moving hosts solved all of the problems. By the way, you can't do a manual install, or use the osCommerce installer with PowWeb. You have to use their automated install. Vger Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2005 Share Posted September 1, 2005 How is this line define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' set? <{POST_SNAPBACK}> The store sessions is currently mysql but had tried leaving it blank, neither made a difference Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2005 Share Posted September 1, 2005 Your 'Add To Cart' function is not working at all. I had problems before with a customer who wanted mods added to a site hosted by PowWeb, and because of the way they run php, as a cgi executable with calls to the cgi bin in the header of every file it was a nightmare.? Moving hosts solved all of the problems. By the way, you can't do a manual install, or use the osCommerce installer with PowWeb.? You have to use their automated install. Vger <{POST_SNAPBACK}> Thanks for the info, have contacted POWWEB for their assistance. Being this is a problem, am trying to install on my own computer using XAMPP. After doing the oscommerce install the admin section appears fine but get these errors on catalog main page Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created. Warning: session_write_close() [function.session-write-close]: open(/tmp\sess_75e78d9c62668c4ebe0a0824dda39841, O_RDWR) failed: No such file or directory (2) in C:\Program Files\xampp\htdocs\catalog\includes\functions\sessions.php on line 106 Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in C:\Program Files\xampp\htdocs\catalog\includes\functions\sessions.php on line 106 I have created tmp directories with chmod settings of 777 in htdocs, catalog, catalog/includes, catalog/admin, and catalog/admin/includes but still get same errors. Here are the lines of code from line 106 ?function tep_session_close() { ? ?if (PHP_VERSION >= '4.0.4') { ? ? ?return session_write_close(); ? ?} elseif (function_exists('session_close')) { ? ? ?return session_close(); I desperately need to get this working and can not afford to change providers at this time. Link to comment Share on other sites More sharing options...
♥Vger Posted September 1, 2005 Share Posted September 1, 2005 Correcting the first error will also cure the next two. On the last line of both configure.php files make it read 'mysql' where indicated - thus storing files in the database and not in a 'tmp' folder. Vger Link to comment Share on other sites More sharing options...
Guest Posted September 2, 2005 Share Posted September 2, 2005 Correcting the first error will also cure the next two. On the last line of both configure.php files make it read 'mysql' where indicated - thus storing files in the database and not in a 'tmp' folder. Vger <{POST_SNAPBACK}> Thanks Vger, you are a great help and definitely an asset to these forums and to us web users that are inexperienced in programming. And thanks to the rest of you who helped and offered suggestions. Link to comment Share on other sites More sharing options...
Guest Posted September 4, 2005 Share Posted September 4, 2005 Help!!!! Everything worked fine.now this error is showing up again. Here is where the problems start, in viewing the catalog everything is fine on catagory pages but minute you open a product page you get Fatal error. ?Can not pass parameter 3 by reference in ....includes/modules/product_listing.php on line 13 , here is the code that it is refering to <?php /* $Id: product_listing.php,v 1.44 2003/06/09 22:49:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ [U] $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');[/U] if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; // EZier New Fields added case 'PRODUCT_LIST_RETAIL_PRICE': $lc_text = TABLE_HEADING_RETAIL_PRICE; $lc_align = 'right'; break; // End EZier New Fields added case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; // EZier New Fields added case 'PRODUCT_LIST_SAVE': $lc_text = TABLE_HEADING_SAVE; $lc_align = 'right'; break; // End EZier New Fields added case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') && ($column_list[$col] != 'PRODUCT_LIST_SAVE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($listing_query)) { $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; // EZier New Fields added case 'PRODUCT_LIST_RETAIL_PRICE': $lc_align = 'right'; if ((tep_not_null($listing['products_retail_price'])) && ($listing['products_retail_price']) > 0) { $lc_text = '<font color="#55508a">' . $currencies->display_price($listing['products_retail_price'], tep_get_tax_rate($listing['products_tax_class_id'])); } else { $lc_text = ' '; } break; // End EZier New Fields added case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; // EZier New Fields added case 'PRODUCT_LIST_SAVE': $lc_align = 'right'; if ((tep_not_null($listing['products_retail_price'])) && ($listing['products_retail_price']) > 0) { $lc_save = round(100 - (( $listing['products_price'] / $listing['products_retail_price'] ) * 100 )); $lc_text = '<font color="red"> ' . $lc_save . '% </font>'; } else { $lc_text = ' '; } break; // End EZier New Fields added case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing['products_weight'] . ' '; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } ?> Any help or suggestions would be greatly appreciated Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.