Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create account and check out errors


mblessed

Recommended Posts

Posted

Hello,

 

I have installed a second cart on my site and everything is running correctly on the first cart and the second one works fine until I cannot set up and account or go to the check out.

 

When I try to create an account I get the error message:

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/simpl11/public_html/account.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/simpl11/public_html/account.php on line 13

 

Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/simpl11/public_html/account.php on line 13

 

 

When I try to go into the check out the error message is :

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/simpl11/public_html/checkout_shipping.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/simpl11/public_html/checkout_shipping.php on line 13

 

Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/simpl11/public_html/checkout_shipping.php on line 13

 

Can someone give me some suggestions on how to fix this?

Posted

I do have a application_top.php in both stores. They are all alike and the old store is working fine it is the new one that has the errors.

Posted

Your config file has a bug.

Paste that.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

this is my includes/configure of my second store.

 

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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://cashacreations.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

define('HTTPS_COOKIE_DOMAIN', 'simplyuniquegiftsonline.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', '/home/simpl11/public_html/cashacreations/');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'osc4');

define('DB_SERVER_PASSWORD', '{');

define('DB_DATABASE', 'osc4');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Posted

change these to your domain

 

 

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

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

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

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

define('HTTPS_COOKIE_DOMAIN', 'cashacreations.com');

 

These should not be empty

 

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

Posted

I made those changes and I still get the same error messages as above when trying to create account, go into my account or click on the checkout button.

Posted

this is the incorrect path

 

define('DIR_FS_CATALOG', '/home/simpl11/public_html/cashacreations/');

 

This it the path of your old site.

 

Often the only way to find this path is to run an installer as oscommerce will find the path. If you choose this way you would have needed a backup copy of your sql and once the installer has finished you would then need to restore from that backup.

 

or contact your hosting sevice and ask them what the absolute path to your site is. If your site in then in a folder within your site that folder name will need to be added to the end on that path.

 

 

 

 

I made those changes and I still get the same error messages as above when trying to create account, go into my account or click on the checkout button.
Posted

I talked to them with no luck. My site is within the public_html but I have another store in there too. The first one is working fine it is the second one that I cannot get to set up accounts. The error is in my home/simpl11/public_html/account.php and login.php and checkout_shipping.php. I am afraid if I make any changes in those I will mess up the site that is working correctly. Should I create a new directory for this site. my directory currently is public_html

Posted

This code here cannot be the same code as for simplyuniquegiftsonline.com

 

define('DIR_FS_CATALOG', '/home/simpl11/public_html/cashacreations/');

 

You cannot run one domain with the ssl part being on another domain entirely.

 

Vger

Posted

Thank you for the information. However you are talking to a newby and I am not sure how to correct this. Could you give me some suggestions on how to make this work?

Posted

I emailed my webhost this time and their reply is below. I am new at this and I have to be honest that I do not understand how to do this. Could someone give me direction on how to do this.

 

 

 

 

Due to limitations with shared hosting, we are only able to add one

dedicated

ip to an account, so we are only able to add one certificate per

account.

 

If you add the ssl certificate to your main or primary domain, you can

still

access it with your addon domain, you would need to change the url for

secure

pages to a path using the primary domain, as an example:

 

http://addondomain.com/page.htm

 

for ssl secured pages would change to:

 

https://primarydomain.com/addondomainfolder/page.htm

 

This method would be secure, without a mismatch error. You would only

need to

change the url for a secure connection, regular pages would remain

using your

addon domain name path.

Archived

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

×
×
  • Create New...