Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Upload


Guest

Recommended Posts

Posted

Hello,

Everything was working fine until I moved all of my stuff out of catalog and put it in my main folder so that it would go straight to my shop when you go to the website page Now everything works because I I opened up chmod.php again. I also did a chmod 777 for the images folder. However, whenever I try to upload a product image it shows me the preview and the pictures are broken and it says at the top "Warning: No file uploaded". Any help would be great!

Thanks a lot,

John

Posted

Have you modify the 2 configure.php files? :)

Posted
Have you modify the 2 configure.php files? :)

Yup I modified both config files and removed the /catalog/shop (I think thats what it was but whatever it was I removed it)

Posted

Can you post your configure.php files? (Take out the usernames and password for security.)

Posted

An idea might be that when I'm doing this the url is: http://jfcreations.com//admin/categories.php? ... there are 2 slashes after jfcreations.com ?? here is the config file

 

ADMIN

 

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

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

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

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

define('DIR_FS_DOCUMENT_ROOT', '/www/j/f/jfcreations.com/htdocs/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/www/j/f/jfcreations.com/htdocs/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/www/j/f/jfcreations.com/htdocs/'); // 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/');

 

 

NORM

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'jfcreations.com');

define('HTTPS_COOKIE_DOMAIN', 'jfcreationscom.secure.powweb.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/');

 

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

define('DIR_FS_CATALOG', '/www/j/f/jfcreations.com/htdocs/');

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

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

Posted

Something may not have moved correctly, As I look through your store and try to get an item detail This Example there ase some errors:

 

At the top:

<%@language="vbscript"%> <% function GetAmtNStock(strPartNO) 'create instance of Microsoft.XMLHTTP set obj = server.CreateObject("Microsoft.XMLHTTP") 'connect to page that will perform the inventory lookup obj.Open "POST","http://www.pcimktg.com/dropship/InventoryCheck/Receiver.asp",false 'set the content-type parameter of the request header obj.SetRequestHeader "Content-type", "application/x-www-form-urlencoded" 'send the part number obj.send "ID=" & strPartNO 'return the quantity in stock GetAmtNStock = obj.responseXML.xml Set obj=nothing end function %>

 

At the bottom of the description:

<%=GetAmtNStock("")%>

 

This may or may not be the problem.

 

Bob G.

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Posted
An idea might be that when I'm doing this the url is: http://jfcreations.com//admin/categories.php? ... there are 2 slashes after jfcreations.com ?? here is the config file

 

ADMIN

 

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

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

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

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

  define('DIR_FS_DOCUMENT_ROOT', '/www/j/f/jfcreations.com/htdocs/'); // where the pages are located on the server

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

  define('DIR_FS_ADMIN', '/www/j/f/jfcreations.com/htdocs/admin/'); // absolute pate required

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

  define('DIR_FS_CATALOG', '/www/j/f/jfcreations.com/htdocs/'); // 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/');

NORM

 

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

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

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

  define('HTTP_COOKIE_DOMAIN', 'jfcreations.com');

  define('HTTPS_COOKIE_DOMAIN', 'jfcreationscom.secure.powweb.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/');

 

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

  define('DIR_FS_CATALOG', '/www/j/f/jfcreations.com/htdocs/');

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

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

 

 

 

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

 

remove the first /

Treasurer MFC

Posted

Yea that was something I was trying to workout, I can take that off and try it real fast. one sec.

Posted

Ok I fixed both of those problems and it is still not likin me.

Posted

I see. Get rid of the trailing '/' at the end. eg.

 

define('HTTP_SERVER', 'http://jfcreations.com/'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://jfcreations.com/');
?define('HTTPS_CATALOG_SERVER', 'https://jfcreations.com/');

to

 

define('HTTP_SERVER', 'http://jfcreations.com'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://jfcreations.com');
?define('HTTPS_CATALOG_SERVER', 'https://jfcreations.com');

 

Tell me, how you get on. :thumbsup:

Posted

Also change

 

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

back to

 

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

if not done already.

Posted

Ya I got that, it started tryin to go to jfcreations.comadmin hehe

Posted

This should be the result.

 

define('HTTP_SERVER', 'http://jfcreations.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://jfcreations.com');
 define('HTTPS_CATALOG_SERVER', 'https://jfcreations.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/www/j/f/jfcreations.com/htdocs/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/www/j/f/jfcreations.com/htdocs/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/www/j/f/jfcreations.com/htdocs/'); // 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/');

Posted

Yea, I have all of that. I'm beginning to think that it might not be related to the config file. 99% sure but I change the images folder by saying site chdmod 777 htdocs/images right? (Dreamweaver MX)

Posted

Also, when moving all the files from their original spot (in catalog) to my root folder, I only needed the files in catalog right? nothing in 'extras'

Posted

Can you tell us about this 'extras' folder? It is not a standard osCommerce folder.

 

When moving the store to the root folder, you usually move EVERYTHING from the catalog folder up to the root folder. Then the 2 configure.php have to be edited.

 

There shouldn't be any problem, unless some addons contributions have to be reconfigured as well. From here, we have only a vague idea of how many modifications you've made.

Posted

I moved everything and editted those config files. I have no addons and the extras folder came when I downloaded the osCommerce it is in the osCommerce folder with catalog and the INSTALL, FAQ, LICENSE, etc files. Inside of extras is button_template folder, mysql_diff folder, taxes folder, etc. (I dont think it has any relevance)

Posted

You only really need to upload the contents of the catalog folder, as most people do. Other folders & files are not really needed on the server, unless you want to use those extras. And no, the extras folder will not interfere with your application.

Archived

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

×
×
  • Create New...