Zen Cart Logo
Forums / General Questions / Blank page on deleting product

Blank page on deleting product

Views: 1,004

Results 1 to 8 of 8
4 Mar 2011, 3:37 PM
#1
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Blank page on deleting product

Hello,

When I want to delete a product i'm getting a blank page??

This is the debug log:

[04-Mar-2011 16:25:54] PHP Fatal error: Call to undefined function zen_get_products_type() in /var/www/vhosts/mysite/httpdocs/myadmin/product.php on line 35

And this is line 35 til 41 from the product.php:

  $product_type = zen_get_products_type($_POST['products_id']);
    if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/delete_product_confirm.php')) {
      require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/delete_product_confirm.php');
     } else {
      require(DIR_WS_MODULES . 'delete_product_confirm.php');
     }
    break;

Im using version : v1.3.9h

I hope somebody nows how to solve this otherwise I cant delete products

Thank you very much

4 Mar 2011, 3:54 PM
#2
everayla avatar

everayla

New Zenner

Join Date:
Feb 2011
Location:
Durango, CO
Posts:
21
Plugin Contributions:
0

Re: Blank page on deleting product

I am not very great with html or css but I can give you a second way of deleting an item.
If you go to your admin then tools and go down to easy populate. Then download complete or create complete if you have filezilla or similar. When that is done open it in excel and find the sku or model #'s you need to delete and delete everything else out of the spreadsheet. Once that is done you keep the sku, status, and eoreor on the items that need deleted and then in the status you change the 1 to 9 and then upload the spreadsheet using the easy populate area again. that will delete the item along with its image.
Does that help?

4 Mar 2011, 4:28 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank page on deleting product

dre:

[04-Mar-2011 16:25:54] PHP Fatal error: Call to undefined function zen_get_products_type() in ...
The zen_get_products_type function is defined in** /admin/includes/functions/general.php**
If you're getting that particular error message, then that means the file is damaged in some way, perhaps overwritten by an outdated version from an addon of some sort? or a bad FTP upload of the file?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Mar 2011, 7:48 AM
#4
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Blank page on deleting product

DrByte:

The zen_get_products_type function is defined in** /admin/includes/functions/general.php**
If you're getting that particular error message, then that means the file is damaged in some way, perhaps overwritten by an outdated version from an addon of some sort? or a bad FTP upload of the file?

I think the part below is doing it. With the /* and / ,admin is working but cant delete products and when i take out the / and */ ,admin is going blank totaly????

/*
function zen_get_products_type($product_id) {
global $db;

$check_products_type = $db->Execute("select products_type from " . TABLE_PRODUCTS . " where products_id='" . $product_id . "'");
return $check_products_type->fields['products_type'];

}

function zen_draw_admin_box($zf_header, $zf_content) {
$zp_boxes = '<li class="submenu"><a target="_top" href="' . $zf_header['link'] . '">' . $zf_header['text'] . '</a>';
$zp_boxes .= '<UL>' . "\n";
for ($i=0; $i<sizeof($zf_content); $i++) {
$zp_boxes .= '<li>';
$zp_boxes .= '<a href="' . $zf_content[$i]['link'] . '">' . $zf_content[$i]['text'] . '</a>';
$zp_boxes .= '</li>' . "\n";
}
$zp_boxes .= '</UL>' . "\n";
$zp_boxes .= '</li>' . "\n";
return $zp_boxes;
}

*/

5 Mar 2011, 10:02 AM
#5
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Blank page on deleting product

I know were the comment out function is coming from. Its from the Admin profiles ad on

7 Mar 2011, 9:21 AM
#6
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Blank page on deleting product

Nobody knows how to solve this problem.

Im afraid that i have to do a clean install all over again )-:

Best regards Andre

7 Mar 2011, 10:04 AM
#7
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Blank page on deleting product

Second strange thing. When I make a new categorie. I can delete this categorie but when i put in a product, both I can delete anymore

8 Mar 2011, 2:55 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank page on deleting product

It seems pretty clear that your site is broken, and probably a result of failed upload or not using the original official v1.3.9h english zip.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.