argy17 Posted August 3, 2005 Report Share Posted August 3, 2005 Hallo. Hab versucht den Shop auf nen Server zu laden und bekomme nun folgende Fehlermeldungen: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xtc_db_fetch_array(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/web136/html/xtcommerce/includes/modules/new_products.php on line 79 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xtc_db_fetch_array(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/web136/html/xtcommerce/inc/xtc_get_short_description.inc.php on line 24 Da sind noch mehr, aber dann wird die Liste zu lang... Kann mir jemand sagen was ich jetzt machen soll? Hier noch die jeweiligen Dateien: <?php /* ----------------------------------------------------------------------------------------- $Id: new_products.php,v 1.23 2004/06/05 11:36:20 matthias76 Exp $ XT-Commerce - community made shopping , 'NONSSL') . '"]' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $new_products['products_name'] . TEXT_NOW) . ''; } else { $buy_now=', 'NONSSL') . '"]' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $new_products['products_name'] . TEXT_NOW) . ''; } $image=''; if ($new_products['products_image']!='') $image=DIR_WS_THUMBNAIL_IMAGES . $new_products['products_image']; $module_content[]=array( 'PRODUCTS_NAME' => $new_products['products_name'], 'PRODUCTS_DESCRIPTION' => $new_products['products_short_description'], 'PRODUCTS_PRICE' => $xtPrice->xtcGetPrice($new_products['products_id'],$format=true,1,$new_products['products_tax_class_id'],$new_products['products_price']), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id'].$SEF_parameter), 'PRODUCTS_IMAGE' => $image, 'BUTTON_BUY_NOW'=>$buy_now); } else { $image=''; if ($new_products['products_image']!='') $image=DIR_WS_THUMBNAIL_IMAGES . $new_products['products_image']; $module_content[]=array( 'PRODUCTS_NAME' => $new_products['products_name'], 'PRODUCTS_DESCRIPTION' => $new_products['products_short_description'], 'PRODUCTS_PRICE' =>$xtPrice->xtcGetPrice($new_products['products_id'],$format=true,1,$new_products['products_tax_class_id'],$new_products['products_price']), 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id'].$SEF_parameter), 'PRODUCTS_IMAGE' => $image); } $row ++; } if (sizeof($module_content)>=1) { $module_smarty->assign('language', $_SESSION['language']); $module_smarty->assign('module_content',$module_content); // set cache ID if (USE_CACHE=='false') { $module_smarty->caching = 0; if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) { $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/new_products_default.html'); } else { $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/new_products.html'); } } else { $module_smarty->caching = 1; $module_smarty->cache_lifetime=CACHE_LIFETIME; $module_smarty->cache_modified_check=CACHE_CHECK; $cache_id = $new_products_category_id.$_SESSION['language'].$_SESSION['customers_status']['customers_status_name'].$_SESSION['currency']; if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) { $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/new_products_default.html',$cache_id); } else { $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/new_products.html',$cache_id); } } $default_smarty->assign('MODULE_new_products',$module); } ?> <?php /* ----------------------------------------------------------------------------------------- $Id: xtc_get_short_description.inc.php,v 1.1 2003/09/12 17:49:57 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright © 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: © 2000-2001 The Exchange Project (earlier name of osCommerce) © 2002-2003 osCommerce(general.php,v 1.225 2003/05/29); www.oscommerce.com © 2003 nextcommerce (xtc_get_products_name.inc.php,v 1.3 2003/08/13); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ function xtc_get_short_description($product_id, $language = '') { if (empty($language)) $language = $_SESSION['languages_id']; $product_query = "select products_short_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $product_id . "' and language_id = '" . $language . "'"; $product_query = xtDBquery($product_query); $product = xtc_db_fetch_array(&$product_query,true); return $product['products_short_description']; } ?> Wei? echt nich weiter. Hab Ihr ne Idee? Link to comment Share on other sites More sharing options...
nom Posted August 3, 2005 Report Share Posted August 3, 2005 new_products.php while ($new_products = xtc_db_fetch_array(&$new_products_query,true)) ?ndern in while ($new_products = xtc_db_fetch_array($new_products_query,true)) xtc_get_short_description.inc.php $product = xtc_db_fetch_array(&$product_query,true); ?ndern in $product = xtc_db_fetch_array($product_query,true); Link to comment Share on other sites More sharing options...
hp Posted August 4, 2005 Report Share Posted August 4, 2005 Hallo argy17 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xtc_db_fetch_array(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/web136/html/xtcommerce/includes/modules/new_products.php on line 79 Da sind noch mehr, aber dann wird die Liste zu lang... Kann mir jemand sagen was ich jetzt machen soll? In der php.ini deines Hosters ist allow_call_time_pass_reference auf off eingestellt. Du musst deinen Hoster kontaktieren der soll dies auf on umstellen oder dir mitteilen wie Du dies ev. selbst tun kannst. Gruss Hanspeter Link to comment Share on other sites More sharing options...
argy17 Posted August 5, 2005 Author Report Share Posted August 5, 2005 w?r das schlimm wenn ich das mit der php.ini nicht mache? was bewirkt diese call-time...? Die Fehlermeldungen hab ich behoben bekommen, aber jetzt hab ich schon wieder ein neues Problem: Wo kann ich einstellen auf welchen Pfad der Shop zugreifen soll? Mu? n?mlich den Pfad f?r den Tmp-Ordner ?ndern und auch noch paar andere. Zus?tzlich Hab ich noch das Problem, dass mir beim Shop folgende URL angezeigt wird: http://web136.rserv16.sitepush.net/xtcomme...x.php!!! Da soll aber meine RICHTIGE Url rein anstatt von dem web136...-Kram. Wo mu? ich das einstellen? Bitte um Hilfe, komm hier gar nich mehr klar. :sad: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.