Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images prolems on OSC running on winxp


brewtzaff

Recommended Posts

Hello to all,

as I'm new here, let me first thank all the people involvbed in OSC.

 

So, now my problem:

 

I try to add some pictures to my site in order to change the demo status to an onlie osc status, but, I'm unable to add pics to my products.

 

As Itried many things I've fond on this forum, I ask you for help. ThX.

 

So, here is my config.php which reside in admin/includes:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.ltps.lu/oscom/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '/catalog');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', $document_root); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', 'admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

 

// define our database connection

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', 'xxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxx');

define('DB_DATABASE', 'xxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

My Server resides @ www.ltps.lu/oscom/catalog/ but the real 1st page is @ www.ltps.lu/oscom/.

 

As I work on a demo site (at least for the moment) I'll be very happy an all constructive answer. :-)

 

Futhermore, as I said, my server is running xampp on xp pro (so no chmod available)

 

heers

 

Brewtzaff

Link to comment
Share on other sites

I would change those first two. The rest of it looks OK. On second though, I don't really like using $DOCUMENT_ROOT with windows. I've had better luck with the full path , i.e. C:/program files/xampp/htdocs/

 

 

define('HTTP_SERVER', 'http://www.ltps.lu/oscom/'); 
define('HTTP_CATALOG_SERVER', 'http://www.ltps.lu/oscom/catalog/');

 

Also, this one...make it caps...don't know if that's critical, but better safe than sorry.

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

Link to comment
Share on other sites

Sorry, the enter key on my keyboard must have stuck...I had to edit that in a hurry to get it to where it made any sense at all.

 

The part about $DOCUMENT_ROOT... first I saw you had it in small letters, which may not be a problem...but caps would be better. Then I remembered you said you are running on XP. I have had better luck using somehthing like this for "document root"

 

define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/xampp/htdocs/');

 

Can you see any images on the catalog side, or you just can't add any?

 

I understand the difficulty setting "permissions" in the traditional way. ....but is it giving you any errors? Such as "images directory does not exist" ...or are the images just broken?

 

In either case, might need to post the includes/configure.php also...unless your catalog side is working fine and everything is viewable, don't worry about it.

Link to comment
Share on other sites

Hi,

thanks for your fast answer.

2 things to add:

1) I've got this message at the top of the admin product part: Catalog images directory does not exist: D:/web/xampp/htdocs/catalog/images/

but this folder exit

 

2) I use fckeditor, and when I use it to upload an image, it nearly works, as I have to edit manually the link to the image. This is ok for me, but I'm not quit sure the guy I do the job for will be able to do it....

 

After editing, the image is available in the catalog but not in the admin part. I also put the image at the root of the /images folder

 

Thanks

Brewtzaff

Link to comment
Share on other sites

When it gives you the error, it's saying

 

D:/web/xampp/htdocs/catalog/images/

 

does not exist.

 

Shouldn't it be

 

D:/web/xampp/htdocs/oscom/catalog/images/

 

?

 

----------------

 

Something is not right with your paths somewhere. I think putting the absolute path in:

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

will help and/or fix it.

 

 

-------------------

 

even if it exists, it's not finding this:

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

 

It's getting that by putting images/' at the end of what it has for DIR_FS_CATALOG

 

For DIR_FS_CATALOG you have

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG)

 

So that's DIR_FS_DOCUMENT_ROOT with DIR_WS_CATALOG tacked on the end

 

DIR_WS_CATALOG is

 

define('DIR_WS_CATALOG', '/catalog/')

 

I may be missing something. The part about the oscom directory is kind of confusing, but I think that's the root of the problem. It's not realizing that the oscom folder is there.

Link to comment
Share on other sites

When it gives you the error, it's saying

 

D:/web/xampp/htdocs/catalog/images/

 

does not exist.

 

Shouldn't it be

 

D:/web/xampp/htdocs/oscom/catalog/images/

 

?

 

Hi

 

Correct, but there is still something wrong, even if i don't get the error.... In the preview (still admin) of a picture, I get this source: http://www.ltps.lu/oscom/catalog/admin/cat.../cv01_small.jpg

 

So, there are 2 errors in: catalog/admin/catalog + images//

 

I'll try a little, but it's not really clear what to change in the configure.php, it could be a idea to comment this a little more

 

Cheers

brewtzaff

Link to comment
Share on other sites

Hi, and thanks,

so here is the non-admin config.

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.ltps.lu');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/oscom/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/oscom/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', 'D:/web/xampp/htdocs/oscom/catalog/');

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

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

 

And here the admin one:

 

define('HTTP_SERVER', 'http://www.ltps.lu/oscom/catalog/');

define('HTTP_CATALOG_SERVER', 'http://www.ltps.lu/oscom');

define('HTTPS_CATALOG_SERVER', '');

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

//define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

define('DIR_FS_DOCUMENT_ROOT', 'D:/web/xampp/htdocs/oscom/');

define('DIR_WS_ADMIN', 'admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

 

Many thanks

 

brewtzaff

Link to comment
Share on other sites

I think the catalog/includes (non-admin) one is fine.

 

I see a couple of things on the admin one, though. And I changed my mind about what I said about document root, kind of. Keep a copy of what you have and try this...

 

And here the admin one:

 

define('HTTP_SERVER', 'http://www.ltps.lu');

define('HTTP_CATALOG_SERVER', 'http://www.ltps.lu');

define('HTTPS_CATALOG_SERVER', '');

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

//define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

define('DIR_FS_DOCUMENT_ROOT', 'D:/web/xampp/htdocs/');

define('DIR_WS_ADMIN', 'oscom/catalog/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', 'oscom/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

Link to comment
Share on other sites

I think the catalog/includes (non-admin) one is fine.

 

I see a couple of things on the admin one, though. And I changed my mind about what I said about document root, kind of. Keep a copy of what you have and try this...

 

Thanks a lot choosealogin, I just needed to add 2 / in front of

 

define('DIR_WS_ADMIN', '/oscom/catalog/admin/');

 

define('DIR_WS_CATALOG', '/oscom/catalog/');

 

and it works fine.

 

Just, if I use FCKeditor to manage my products, it creates a folder 'image' in my folder 'images', but it's ok for me.

 

Thanks again

 

brewtzaff

Link to comment
Share on other sites

I'm not familiar w/FCKeditor, but I think if you change your image directory to 'images/image' ...that might work.

 

There would be 3 places to do that, 2 in the admin - configuration.php and 1 in the non-admin configuration.php.

 

Anyway, I'm glad it's working now :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...