Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin configure.php question


jgarite

Recommended Posts

I was having troubles initially with the image upload for a product, after i configured the configure.php file below, it was working...that was nice for a while. Now i am trying to use the Additional Images Module and I'm getting the following error:

Error Image ../imagesdiamond_in_the_ruff_c-shape_bed_with_Chelsea.jpg was not uploaded. Please check your folder permissions.

Error Image ../imagesdiamond_in_the_ruff_c-shape_bed_with_Chelsea.jpg was not uploaded. Please check your folder permissions.

Error Image ../imagesdiamond_in_the_ruff_c-shape_bed_with_Chelsea.jpg was not uploaded. Please check your folder permissions.

 

There is no such folder as that is a merge of the foldername and the filename...there is already a slash after the images name in the config...

 

Can anyone help me out?

here is my configure.php in the admin area:

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'https://www.domain.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.domain.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.domain.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_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', '../');
 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', 'backups/');

// define our database connection
 define('DB_SERVER', 'XXX');
 define('DB_SERVER_USERNAME', 'XXX');
 define('DB_SERVER_PASSWORD', 'XXX');
 define('DB_DATABASE', 'XXX');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

Link to comment
Share on other sites

try adding a / to the end of images on the on the following line

 

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

 

to give

 

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

Link to comment
Share on other sites

try adding a / to the end of images on the on the following line

 

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

 

to give

 

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

Thanks...cant believe I missed that :ph34r:

Link to comment
Share on other sites

Thanks...cant believe I missed that :ph34r:

 

Stare at a piece of coding giving you grief for hours on end, and its amazing what you can miss :thumbsup:

Link to comment
Share on other sites

Another newbie here with linking problems. None of the links work for my categories or pictures that are linked. I tried following the list in the pinned or sticky section, but they still do not work.

 

Do I need the catalog/ after the domain name or /catalog/ before some of the other sources if the store in in the catalog directory under the main part of the site?

 

Also, where can you change the colors of the solid lines, like right under the header? What file is that in?

 

Thanks,

 

Rob

 

 

<?php

/*

$Id: configure.php,v 1.3.26.1 2006/06/07 15:05:45 mdima Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

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

define('HTTPS_CATALOG_SERVER', 'http://www.mysite.com/catalog/');

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', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

Link to comment
Share on other sites

OK, I added that and the links do not work. Is there a better thread detailing the changes I need to make to this? What about the database at the bottom? I am sure it's not stopping the links, but what do I do with it?

 

The store index is under the "catalog" folder. I'll read anything, I just can not find out what to read on here. Also, what the best PHP book for a beginner?

 

<?php
/*
 $Id: configure.php,v 1.3.26.1 2006/06/07 15:05:45 mdima Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.mysite.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com/catalog/');
 define('HTTPS_CATALOG_SERVER', 'http://www.mysite.com/catalog/');
 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/');

[b]// define our database connection[/b]
 define('DB_SERVER', '');
 define('DB_SERVER_USERNAME', 'mysql');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', '');
?>

Link to comment
Share on other sites

// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.mysite.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 

Try removing the trailing / to give

 

// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

Link to comment
Share on other sites

change the following two lines

 

 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com/catalog/');
 define('HTTPS_CATALOG_SERVER', 'http://www.mysite.com/catalog/');

 

to

 

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

Link to comment
Share on other sites

admin/includes/configure.php

 

This is a direct paste from the file after I changed it like you said, except for the mysite change. The links do not work. Is there something else to try?

 

  define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');
 define('HTTPS_CATALOG_SERVER', 'http://www.mysite');

Link to comment
Share on other sites

admin/includes/configure.php

 

This is a direct paste from the file after I changed it like you said, except for the mysite change. The links do not work. Is there something else to try?

 

  define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');
 define('HTTPS_CATALOG_SERVER', 'http://www.mysite');

 

if you are changing admin/includes/configure.php you are changing the wrong file ;)

 

you need to make the changes in include/configure.php

Link to comment
Share on other sites

I actually have my self setup as a customer and says page not found when I log in, the search function does not work. Nothing works.

 

Do I need newer downloads, start over? The links never worked from the beginning after i deleted the old catagories for the demo store.

Link to comment
Share on other sites

<?php
/*
 $Id: configure.php,v 1.4.26.1 2006/06/07 15:05:45 mdima Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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.mysite.com'); // 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', 'http://www.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', 'http://www.mysite.com');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', 'http://www.mysite.com');
 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

 

You know it's nice they provide all this to you, but a little directions on how to configure it would be nice. IXwebhosting and osCommerce both drop it in front of you and say "there is is" and I am just supposed to know. A little tutorial would be nice. I usually don't search things and I did on this and found nothing. The one pinned directions I did find had some wrongs paths in it too, making the frustration set in faster.

Link to comment
Share on other sites

Change to the following

 

 

<?php
/*
 $Id: configure.php,v 1.4.26.1 2006/06/07 15:05:45 mdima Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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.mysite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'http://www.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', 'http://www.mysite.com');
 define('HTTP_COOKIE_PATH', '/catalog/);
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/);
 define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

You know it's nice they provide all this to you, but a little directions on how to configure it would be nice. IXwebhosting and osCommerce both drop it in front of you and say "there is is" and I am just supposed to know. A little tutorial would be nice. I usually don't search things and I did on this and found nothing. The one pinned directions I did find had some wrongs paths in it too, making the frustration set in faster.

Perhaps you could post in The one pinned directions to point out the errors?

Link to comment
Share on other sites

Change to the following

 

I did that and it's still all screwed up. I deleted the temporary categories they had from the admin panel and they never worked after that when I created the new ones. I figured I would learn PHP, some, and it would all be easy later. Now nothing works the categories, member login, search function. I know I'm new at this but I did not change much at all.

 

I am considering saving the changes to my header file to a word document and uploading the blank files from the beginning and starting over

Link to comment
Share on other sites

I did that and it's still all screwed up. I deleted the temporary categories they had from the admin panel and they never worked after that when I created the new ones. I figured I would learn PHP, some, and it would all be easy later. Now nothing works the categories, member login, search function. I know I'm new at this but I did not change much at all.

 

I am considering saving the changes to my header file to a word document and uploading the blank files from the beginning and starting over

 

Right just tried your site again, and if you enter the url as normal with ? & = etc the pages display, so try turning the search engine friendly urls of and see if that cures it.

Link to comment
Share on other sites

Right just tried your site again, and if you enter the url as normal with ? & = etc the pages display, so try turning the search engine friendly urls of and see if that cures it.

 

I don't know how to do that. :blush:

 

Is there a file I can reload to fix the categories? Then edit that? Once I deleted the first ones and made new ones they never worked again.

 

Is there a user manual some where that covers most of this? I don't mind reading them. I just feel like a damn lost kid.

Link to comment
Share on other sites

I don't know how to do that. :blush:

 

Is there a file I can reload to fix the categories? Then edit that? Once I deleted the first ones and made new ones they never worked again.

 

Is there a user manual some where that covers most of this? I don't mind reading them. I just feel like a damn lost kid.

 

Log into admin system, goto configuration->my store and about half way down the page, look for

 

Use Search-Engine Safe URLs (still in development)

 

click on this, then select edit, and set to false

 

then try store again.

Link to comment
Share on other sites

Log into admin system, goto configuration->my store and about half way down the page, look for

 

Use Search-Engine Safe URLs (still in development)

 

click on this, then select edit, and set to false

 

then try store again.

 

 

DUDE, That worked!!! Have a beer on me. :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...