Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to Upload Images


dolson_486

Recommended Posts

I am having a problem in which none of my sites are able to upload images to the server from the admin page. Each time I choose the Image Icon to choose a local file, all appears to be ok until I hit the Upload Button. I get an error file blabla.bla can not be created. My image directory and all subdirectories are sett to 777 for access permissions. I have looked at my admin/includes/configure.php file. I found the line DIR_FS_DOCUMENT_ROOT. It was set to the complete path of the docment root. I changed it to $DOCUMENT_ROOT but this had no effect and did not correct the problem. Any body have any ideas?

Link to comment
Share on other sites

I am having a problem in which none of my sites are able to upload images to the server from the admin page.  Each time I choose the Image Icon to choose a local file, all appears to be ok until I hit the Upload Button.  I get an error file blabla.bla can not be created. My image directory and all subdirectories are sett to 777 for access permissions.  I have looked at my admin/includes/configure.php file.  I found the line DIR_FS_DOCUMENT_ROOT.  It was set to the complete path of the docment root.  I changed it to $DOCUMENT_ROOT but this had no effect and did not correct the problem.  Any body have any ideas?

Can you post the includes/configure.php files for your catalog and admin and someone may be able to give you an answer. Please remember to blank out your database connection info.

Link to comment
Share on other sites

I have the same problem, but I uploaded my images to the image folder on the server (same place as the pics with the default at start up) then typed in the file name. Just the blank box with red X for no file!

 

Here is the configure file:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://i-zy.net'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://i-zy.net'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'i-zy.net');

define('HTTPS_COOKIE_DOMAIN', 'i-zy.net');

define('HTTP_COOKIE_PATH', '/oscart/');

define('HTTPS_COOKIE_PATH', '/oscart/');

define('DIR_WS_HTTP_CATALOG', '/oscart/');

define('DIR_WS_HTTPS_CATALOG', '/oscart/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/tmckenna/public_html/oscart/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', 'tmckenna_osc1');

define('DB_SERVER_PASSWORD', 'te73bMuUEWp1');

define('DB_DATABASE', 'tmckenna_osc1');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

Thanks to 241 for helping yeserday to put up the Japanese lang files.

This file upload prob has stumped me! Help appreciated.

Link to comment
Share on other sites

Can you post the includes/configure.php files for your catalog and admin and someone may be able to give you an answer.  Please remember to blank out your database connection info.

 

Here is the Includes Configure.php File

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.knickknacknitch.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.knickknacknitch.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.knickknacknitch.com');

define('HTTPS_COOKIE_DOMAIN', 'www.knickknacknitch.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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/');

 

//Added for BTS1.0

define('DIR_WS_TEMPLATES', 'templates/');

define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');

define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');

//End BTS1.0

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/e-smith/files/ibays/knickbay/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'Username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'database');

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

 

Here is the admin Config.php file

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.knickknacknitch.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.knickknacknitch.com');

define('HTTPS_CATALOG_SERVER', 'https://www.knickknacknitch.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/e-smith/files/ibays/knickbay/html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/e-smith/files/ibays/knickbay/html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/e-smith/files/ibays/knickbay/html/'); // 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/');

 

// Added for Templating

define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/');

define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/');

define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'Username');

define('DB_SERVER_PASSWORD', 'Password');

define('DB_DATABASE', 'Database');

define('USE_PCONNECT', 'true'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

I have also noticed that during the adnmin process the system continues to jump out of an ssl connection and back into a non secured page each time an update or button is pushed. Could this be causing a problem? :huh:

Link to comment
Share on other sites

Dane, if you want your admin area to be ssl, the top line http://whatever needs to be https://whatever . .

OK, I modified the top lines to force the SSL active. This cured the pages from going back to std http. However, this did not correct my problem. I have seen posts regarding this topic before but no solutions were presented.

 

The upload problem appears when in the admin/product page when the "Choose Image" button is pressed, a dialogue appears to allow files to be choosen on the local hard drive. When the upload button is pressed the message appears File "test.gif" could not be created. :huh:

Link to comment
Share on other sites

The upload problem appears when in the admin/product page when the "Choose Image" button is pressed, a dialogue appears to allow files to be choosen on the local hard drive.  When the upload button is pressed the message appears File "test.gif" could not be created.  :huh:

Is the image folder writeable? 755/777

Link to comment
Share on other sites

I have fixed the problem. I had maxxDVD installed along with WYSIWYG HTMLArea. I was using the html wysiwyg editor in the admin page to upload the images. There is a problem using both these contribs together. In the Admin page/WYSIWIG Editor 1.7, I disabled the use of the WYSIWYG HTML Area for the Product Discriptions. This turned off WYSIWYG for that part of the Product form, the browse button still works with the local hard drive browse and uploads the image correctly.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...