Guest Posted May 17, 2003 Posted May 17, 2003 just migrated our surver to a linux platform and now i am getting this error when trying to creat a new product catagory or a new item Fatal error: Cannot instantiate non-existent class: upload in /var/www/html/admin/categories.php on line 68 any clues to how i may fix it ? Thx, Mark
toolcrazy Posted May 17, 2003 Posted May 17, 2003 What version of OSC are you using IE date downloaded and which contribs have you installed? Steve -------------------------
Guest Posted May 17, 2003 Posted May 17, 2003 i am running a cvs from about 2 weeks ago, contribs are admin login, all prods, and (not sure of the name) header tags ??
Emmtee Posted May 17, 2003 Posted May 17, 2003 /var/www/html/admin/categories.php i could bet you forgot to adapt /var/www/html/admin/includes/configure.php to the correct linux paths .... or you're running a stone-aged linux :) http://www.oscommerce.com/community/contributions,1762
Guest Posted May 17, 2003 Posted May 17, 2003 actuly its redhat 9.0, the proper path for the file is /var/www/html/admin/categories.php all config files have been changed when i ty to add an item i get Fatal error: Cannot instantiate non-existent class: upload in /var/www/html/admin/categories.php on line 492 and when i try to ad a catagory i get Fatal error: Cannot instantiate non-existent class: upload in /var/www/html/admin/categories.php on line 68 it still creates the catagory but not the items... everything else seams to be working fine
Emmtee Posted May 17, 2003 Posted May 17, 2003 please show us your admin/include/config.php contents could not include means that the required file was not in include path, usually this means that either upload is disabled in php (probably see etc/php.ini) or the corresponding file to be included was not found in the include path... http://www.oscommerce.com/community/contributions,1762
Emmtee Posted May 17, 2003 Posted May 17, 2003 other option: incorrect permission settings -> ls -la <path> should be readable for everyone (chmod 644 for files, 755/777 for directories) http://www.oscommerce.com/community/contributions,1762
Guest Posted May 17, 2003 Posted May 17, 2003 -rwxr-xr-x 1 webadmin webadmin 58697 May 11 20:35 categories.php define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/var/www/html'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
Emmtee Posted May 17, 2003 Posted May 17, 2003 ok, include path seems right check the permissions for includes and check yor php-config (maybe post us some page with <? php_info(); ?> ) # grep -iC3 upload php.ini ;;;;;;;;;;;;;;;; ; File Uploads; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = ; Maximum allowed size for uploaded files. upload_max_filesize = 2M ;;;;;;;;;;;;;;;;;; http://www.oscommerce.com/community/contributions,1762
Emmtee Posted May 17, 2003 Posted May 17, 2003 correction: phpinfo(); http://www.oscommerce.com/community/contributions,1762
Guest Posted May 17, 2003 Posted May 17, 2003 ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = ; Maximum allowed size for uploaded files. upload_max_filesize = 2M ;;;;;;;;;;;;;;;;;; thats what i get for output so i asume thats ok you can see a php_info @ www.doughnutseeds.com/php.php
Emmtee Posted May 21, 2003 Posted May 21, 2003 did you patch your contribs in or did you replace whole files ? CVS has a changed uploads class (about 2 months ago now) and thus you could have overwritten the new code with the old (now unfunctional) one http://www.oscommerce.com/community/contributions,1762
Recommended Posts
Archived
This topic is now archived and is closed to further replies.