Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

errors when i first installed - ive fixed or have i


ctbhost

Recommended Posts

Posted

here is my configure.php file - you will notice i had to alter the define('DIR_WS_INCLUDES' line a little but that was the only way i could get it running.

 

its showing up but the buttons images are missing in all pages - if i right click on the image it shows a wierd url

 

http://user.com/home/user/public_html/cart...button_edit.gif

 

 

the correct url would be http://user.com/cart/admin/includes/langua...button_edit.gif

 

its like the local path has been inserted in the middle of the url

 

how is this url generated and how can i fix this

 

here is my configure.php

define('HTTP_SERVER', '');

 define('HTTP_CATALOG_SERVER', 'http://localhost');

 define('HTTPS_CATALOG_SERVER', 'https://localhost');

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

 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

 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', '/home/user/public_html/cart/admin/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/');

Thanks in advance

Posted

replace this line

define('DIR_WS_INCLUDES', '/home/user/public_html/cart/admin/includes/');

With this one

define('DIR_WS_INCLUDES', 'includes/');

that should solve you nightmare hopfully, if not let me know

The more you do, the more you learn

Posted

no that doesnt fix it

if i do that, this is what i get.

Warning: main(includes/functions/database.php) [function.main]: failed to create stream: No such file or directory in /home/user/public_html/cart/admin/includes/application_top.php on line 148



Fatal error: main() [function.main]: Failed opening required 'includes/functions/database.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/user/public_html/cart/admin/includes/application_top.php on line 148

Posted

i have set up an ipbased account on my server that anyone who wants to try and work out what is going wrong can do so

 

the store is at http://209.51.155.11/shop/

 

it is set up as it should and as you can see it doesnt work

 

i have set up FP extn's if you wnt to look at the files that way

 

login in all cases is shop

password in all cases is shop

 

i hope someone can help im pulling my hair out here

 

BTW i have also setup a copy of the whole shop directory so if you need to you can restore it to the original ( called shopbackup)

 

Thanks

Chris

Posted

ok made some changes to your files

just fill in the rest and it should work

Ps try not to publish your server info publicly that could be dangerous

any way if you get stock let me know i'll help you out

BTW the problem is with your FS paths you cant use document root,

your path sould be something like this

/home/controlpanelusername/public_html/shop

but it might be diffrent depending on the server

if you're doing it locally your path would be somthing like

c:/folder/folder/folder/....and so on

The more you do, the more you learn

Posted

i understand what your saying but changed the nessasary settings but still no go.

 

btw the user is shop

 

thanks for your assistance

Posted

can you tell me what your domain name is?

fo instance i have a demo shop at this address:

http://www.getsilver.com/tools/catalog/default.php

my /catalog/includes/configure.php looks like this:

  define('HTTP_SERVER', 'http://www.getsilver.com');

 define('HTTPS_SERVER', 'https://host41.ipowerweb.com/~getsilve');

 define('ENABLE_SSL', true);

 define('DIR_WS_CATALOG', '/tools/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', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/home/getsilve/public_html/tools');

 define('DIR_FS_CATALOG', '/home/getsilve/public_html/tools/catalog/');

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

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

 

and the /catalog/admin/includes/configure.php looks like this:

  define('HTTP_SERVER', 'http://www.getsilver.com');

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

 define('HTTPS_CATALOG_SERVER', 'https://host41.ipowerweb.com/~getsilve');

 define('ENABLE_SSL_CATALOG', 'true');

 define('DIR_FS_DOCUMENT_ROOT', '/home/getsilve/public_html/tools'); 

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

 define('DIR_FS_ADMIN', '/home/getsilve/public_html/tools/catalog/admin/');

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

 define('DIR_FS_CATALOG', '/home/getsilve/public_html/tools/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/');

i hope this helps

The more you do, the more you learn

Archived

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

×
×
  • Create New...