Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart 4.6.1 released

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #51  
Old 02-17-2014, 09:18 PM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: X-Cart 4.6.1 released

Quote:
Originally Posted by elmirage001
When module "Product Options" is turned off and I try to delete a product the product deletes and then I go to a blank screen and the following error
Line 869 in Red
Code:
// Product options module if (func_is_defined_module_sql_tbl('Product_Options', 'class_options')) { $classes = func_query_column("SELECT classid FROM $sql_tbl[classes] WHERE productid='$productid'"); db_query("DELETE FROM $sql_tbl[classes] WHERE productid='$productid'"); if (!empty($classes)) { $options = func_query_column("SELECT optionid FROM $sql_tbl[class_options] WHERE classid IN ('".implode("','", $classes)."')"); db_query("DELETE FROM $sql_tbl[class_lng] WHERE classid IN ('".implode("','", $classes)."')"); if (!empty($options)) { db_query("DELETE FROM $sql_tbl[class_options] WHERE classid IN ('".implode("','", $classes)."')"); db_query("DELETE FROM $sql_tbl[product_options_lng] WHERE optionid IN ('".implode("','", $options)."')"); db_query("DELETE FROM $sql_tbl[product_options_ex] WHERE optionid IN ('".implode("','", $options)."')"); db_query("DELETE FROM $sql_tbl[variant_items] WHERE optionid IN ('".implode("','", $options)."')"); db_query("DELETE FROM $sql_tbl[variant_backups] WHERE optionid IN ('".implode("','", $options)."')"); } } db_query("DELETE FROM $sql_tbl[product_options_js] WHERE productid='$productid'"); $vids = db_query("SELECT variantid FROM $sql_tbl[variants] WHERE productid='$productid' AND " . XCVariantsSQL::isVariantRow($productid)); if ($vids) { while ($row = db_fetch_array($vids)) { func_delete_image($row['variantid'], "W"); } db_free_result($vids); } db_query("DELETE FROM $sql_tbl[variants] WHERE productid='$productid'"); }
If I turn "Product Options" back on and I delete a product everything works fine.

I don't know if this happens on a stock 4.6.1 or not as I upgraded my database from 4.4.5 to 4.6.1

I reported on bug tracker but maybe someone else would like to test also. Thanks!

Paul

The fix_fatal_error_on_product_delete.diff patch has been attached
Attached Files
File Type: diff fix_fatal_error_on_product_delete.diff (539 Bytes, 7 views)
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote

The following user thanks aim for this useful post:
elmirage001 (02-17-2014)
  #52  
Old 02-17-2014, 09:44 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default Re: X-Cart 4.6.1 released

Wow was that quick! I was just about to post your fix but you beat me to it Thank you so much! Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
aim (02-18-2014)
  #53  
Old 02-17-2014, 11:59 PM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default Re: X-Cart 4.6.1 released

If we setup a fresh install of 4.6.1. How can we bring all the mods and customization to this version?

Of course the mods can be re-installed and hopefully will use the data from the database but what happens to all the customizations?
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
Reply
   X-Cart forums > News and Announcements



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:59 AM.

   

 
X-Cart forums © 2001-2020