Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oh Dear God Please Help Me!


Guest

Recommended Posts

OK, so setting up e-commerce for my site is causing me such a giant headache and I have had no luck as of yet.

 

When I found out that I had an OSC module within my CPanel I could have jumped for joy! Two links were given to me once the installation was complete:

 

1. The location of my shop

http://psychictherapy.co.nz/osc/

 

2. The location of my shop's admin

http://psychictherapy.co.nz/osc/admin/

 

The first link works, and takes me to a dummy store, but the second does not and just takes me to a 'page not found' error.

 

Please please please could somebody offer me any solutions?

 

Thank you

 

Victoria :(

Link to comment
Share on other sites

LOL, love the title.

 

Check your admin / includes / configure.php file to ensure the Admin is called admin!

Or you can look at your file manager to see if a folder called admin is present, if so the error is elsewhere

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

OK, so setting up e-commerce for my site is causing me such a giant headache and I have had no luck as of yet.

 

When I found out that I had an OSC module within my CPanel I could have jumped for joy! Two links were given to me once the installation was complete:

 

1. The location of my shop

http://psychictherapy.co.nz/osc/

 

2. The location of my shop's admin

http://psychictherapy.co.nz/osc/admin/

 

The first link works, and takes me to a dummy store, but the second does not and just takes me to a 'page not found' error.

 

Please please please could somebody offer me any solutions?

 

Thank you

 

Victoria :(

I'm guessing the admin configure file needs some work. This link at least tries to connect to the database...with no luck.

 

http://www.psychictherapy.co.nz/catalog/admin/

 

Also take a look at http://psychictherapy.co.nz/catalog/

Link to comment
Share on other sites

This is example of admin configure file

 

CATALOG/ADMIN/INCLUDES/CONFIGURE.PHP

define('HTTP_SERVER', 'http://www.my-site.co.uk');

define('HTTP_CATALOG_SERVER', 'http://www.my-site.co.uk');

define('HTTPS_CATALOG_SERVER', 'http://www.my-site.co.uk');

define('DIR_WS_HTTP_CATALOG', '/servername/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/servername/catalog/');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/servername/public_html/catalog/');

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

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

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

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

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Thank you all for your replies. My admin/includes/configure file looks like this.

 

Can anybody tell if this is set up incorrectly?

 

<?php

define('HTTP_SERVER', 'http://psychictherapy.co.nz');

define('HTTP_CATALOG_SERVER', 'http://psychictherapy.co.nz');

define('HTTPS_CATALOG_SERVER', 'http://psychictherapy.co.nz');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/psychic/public_html/osc');

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

define('DIR_FS_ADMIN', '/home/psychic/public_html/osc/admin/');

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

define('DIR_FS_CATALOG', '/home/psychic/public_html/osc/');

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('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'psychic_osc1');

define('DB_SERVER_PASSWORD', '279q_C9DVD');

define('DB_DATABASE', 'psychic_osc1');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

Thank you all for your replies. My admin/includes/configure file looks like this.

 

Can anybody tell if this is set up incorrectly?

 

<?php

define('HTTP_SERVER', 'http://psychictherapy.co.nz');

define('HTTP_CATALOG_SERVER', 'http://psychictherapy.co.nz');

define('HTTPS_CATALOG_SERVER', 'http://psychictherapy.co.nz');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/psychic/public_html/osc');

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

define('DIR_FS_ADMIN', '/home/psychic/public_html/osc/admin/');

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

define('DIR_FS_CATALOG', '/home/psychic/public_html/osc/');

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('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'psychic_osc1');

define('DB_SERVER_PASSWORD', '279q_C9DVD');

define('DB_DATABASE', 'psychic_osc1');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

First thing you need to do (now!!!) is change your user name and password. Next time, xxxx those out if you post your configure code.

Link to comment
Share on other sites

Thanks for the advice, I am way too trusting I suppose!

 

But how does it look - are there any errors that you can spot that might be causing my problem? I just cannot figure it out and am on the verge of giving up altogether.

Link to comment
Share on other sites

Hi psychictherapyp,

 

From fellow kiwi, try putting a slash after osc in the code below:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/psychic/public_html/osc');

 

So it should then look like below

 

define('DIR_FS_DOCUMENT_ROOT', '/home/psychic/public_html/osc/');

 

And you need to change permission on the includes/configure.php

Link to comment
Share on other sites

This is example of admin configure file

 

CATALOG/ADMIN/INCLUDES/CONFIGURE.PHP

 

define('DIR_WS_HTTP_CATALOG', '/servername/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/servername/catalog/');

 

I'm pretty new to osC so not sure if it makes a difference but your are missing the above define entries in your file.

 

compare your file to the sample Sam posted above.

Link to comment
Share on other sites

I'm pretty new to osC so not sure if it makes a difference but your are missing the above define entries in your file.

 

compare your file to the sample Sam posted above.

 

OK, so I tried both things and still nothing works.

 

Does anybody else have any ideas before I lose all my hair?!

Link to comment
Share on other sites

OK, so I tried both things and still nothing works.

 

Does anybody else have any ideas before I lose all my hair?!

 

Okay PM me and I'll see how I can help you.

 

Regards.

Link to comment
Share on other sites

<br />Thanks so much Ivy - I have just sent you a message.<br />
<br /><br /><br />

 

For those who are following this story, the problem wasn't the config files. It was the htaccess file in admin that was blocking the admin folder. I replaced that with the default htaccess file that comes with oscommerce and viola everything works now. Hopefully someone may benefit from this.

 

Cheers.

Link to comment
Share on other sites

  • 2 weeks later...
<br /><br /><br />

 

For those who are following this story, the problem wasn't the config files. It was the htaccess file in admin that was blocking the admin folder. I replaced that with the default htaccess file that comes with oscommerce and viola everything works now. Hopefully someone may benefit from this.

 

Cheers.

 

Ivy - you truly are an angel!! Thank you so much for fixing this problem for me - I thank you for your time and effort and would be happy to extend you a free email tarot reading if you are into that sort of thing!!

:D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...