Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2011
    Location
    Durango, CO
    Posts
    21
    Plugin Contributions
    0

    Default 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?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Blank page on deleting product

    Quote Originally Posted by dre View Post
    [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.

  4. #4
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Blank page on deleting product

    Quote Originally Posted by DrByte View Post
    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. #5
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Blank page on deleting product

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

  6. #6
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default 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. #7
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default 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. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

 

 

Similar Threads

  1. Replies: 9
    Last Post: 7 Jan 2016, 09:58 PM
  2. my shop is blank after deleting fr and es languages
    By kittycat in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Aug 2011, 11:30 PM
  3. blank screen on 1.3.9h after deleting init_sanitize.php
    By ray-the-otter in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 1 Nov 2010, 11:44 PM
  4. Blank Page problem adding product to product-music
    By Ishtar in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 23 Jan 2010, 04:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR