Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default product updATE ERROR WHEN PRVIEW new_product_preview.php error

    Fatal error: Class 'upload' not found in /home2/hallowe3/public_html/XXXADMINXXX/includes/modules/new_product_preview.php on line 14

    Heres the file.
    <?php
    /**
    * @package admin
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: new_product_preview.php 3009 2006-02-11 15:41:10Z wilt $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    // copy image only if modified
    if (!isset($_GET['read']) || $_GET['read'] == 'only') {
    $products_image = new upload('products_image');
    $products_image->set_destination(DIR_FS_CATALOG_IMAGES . $_POST['img_dir']);
    if ($products_image->parse() && $products_image->save($_POST['overwrite'])) {
    $products_image_name = $_POST['img_dir'] . $products_image->filename;
    } else {
    $products_image_name = (isset($_POST['products_previous_image']) ? $_POST['products_previous_image'] : '');
    }
    }
    ?>

  2. #2
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: product updATE ERROR WHEN PRVIEW new_product_preview.php error

    sorry forgot to list this was after the upgrade from 1.3.8a to 1.3.9f

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: product updATE ERROR WHEN PRVIEW new_product_preview.php error

    Recheck the files on the server and ensure that you have upgraded all of the files ...

    The upload class for the Admin is in:
    /admin/includes/classes/upload.php

    But if this one is giving you a problem, I would recommend checking all of the files again to make sure others are not bad, missing or otherwise corrupt ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: product updATE ERROR WHEN PRVIEW new_product_preview.php error

    That did it. the file was corrupt but being i use a store manager to edit my stock i never ran across the issue until i was playing with the mod to add product fields.

    then i came across the error.

    well now at least others will know.

    thanks for the help.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: product updATE ERROR WHEN PRVIEW new_product_preview.php error

    Thanks for the update that the problem was due to a corrupt file and that reloading it to the server was able to fix it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 6
    Last Post: 15 Oct 2013, 08:33 PM
  2. v151 options_name_manager.php Error when trying to setup product attributes
    By Pickman in forum Basic Configuration
    Replies: 7
    Last Post: 6 Oct 2012, 11:45 PM
  3. product_music.php error when adding new product
    By opengrave in forum General Questions
    Replies: 1
    Last Post: 19 Jan 2010, 06:56 PM
  4. Parse error when didn't update the file lately?
    By usone123 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Aug 2006, 04:18 AM

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