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
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?
Re: Blank page on deleting product
Quote:
Originally Posted by
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?
Re: Blank page on deleting product
Quote:
Originally Posted by
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;
}
*/
Re: Blank page on deleting product
I know were the comment out function is coming from. Its from the Admin profiles ad on
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
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
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.