Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected $end in /home/newag5/public_html/admin/includes/configure.php on line 45


murphy779

Recommended Posts

I purchased an ssl certificate and found instructions that I was supposed to change http to https in my configuration files so my site will be secure and then someone said not to do that. Here is what my file looks like. I was wondering if anyone could look at this and tell me what is wrong. I haven't been able to update my products in over a week. I made changes around line 16 and 17. I did not do anything to line 45, so I don't know what is wrong.

 

<?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', 'https://www.newageproducts.org'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'https://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',");

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

define('DIR_FS_DOCUMENT_ROOT', '/home/newag5/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/newag5/public_html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/newag5/public_html/'); // absolute path required

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', 'localhost'); // eg, https://localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'newag5_shop2');

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

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

?>

Link to comment
Share on other sites

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

define('HTTP_CATALOG_SERVER', 'http://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

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

 

 

Try this

Link to comment
Share on other sites

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

define('HTTP_CATALOG_SERVER', 'http://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

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

Try this

 

Thank you for replying. It still says that there is an error on line 45.

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'newag5_shop2');

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

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

?>

 

Line 45 is the 2nd line in this selection. I don't see what could be wrong.

Link to comment
Share on other sites

Thank you for replying. It still says that there is an error on line 45.

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'newag5_shop2');

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

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

?>

 

Line 45 is the 2nd line in this selection. I don't see what could be wrong.

************************************

Hi Murphy: The reason you are getting an error is that you have to replace username and password with the username/password that you define for your MySQL database.

 

Question: My business partner and I are having trouble with the SSL being turned off when one logs into a Customer Account. I am wondering where you picked up the lines:

define('HTTP_CATALOG_SERVER', 'http://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

Link to comment
Share on other sites

Thank you for replying. It still says that there is an error on line 45.

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'newag5_shop2');

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

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

?>

 

Line 45 is the 2nd line in this selection. I don't see what could be wrong.

************************************

Hi Murphy: The reason you are getting an error is that you have to replace username and password with the username/password that you define for your MySQL database.

 

Question: My business partner and I are having trouble with the SSL being turned off when one logs into a Customer Account. I am wondering where you picked up the following lines?

define('HTTP_CATALOG_SERVER', 'http://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

 

We don't have them in our configure.php file. We downloaded our copy March 1, 2006.

 

Thanks for your response! :D

 

Regards,

MyrnaW

Link to comment
Share on other sites

************************************

Hi Murphy: The reason you are getting an error is that you have to replace username and password with the username/password that you define for your MySQL database.

 

Question: My business partner and I are having trouble with the SSL being turned off when one logs into a Customer Account. I am wondering where you picked up the following lines?

define('HTTP_CATALOG_SERVER', 'http://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

 

We don't have them in our configure.php file. We downloaded our copy March 1, 2006.

 

Thanks for your response! :D

 

Regards,

MyrnaW

I see a couple of other things

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

should this be

define('HTTPS_CATALOG_SERVER',https://www.newageproducts.org');

 

 

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

check with your host to be sure this is correct for your DB server

Mine for example is

mysql55.blabla.net

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

************************************

Hi Murphy: The reason you are getting an error is that you have to replace username and password with the username/password that you define for your MySQL database.

 

Question: My business partner and I are having trouble with the SSL being turned off when one logs into a Customer Account. I am wondering where you picked up the following lines?

define('HTTP_CATALOG_SERVER', 'http://www.newageproducts.org');

define('HTTPS_CATALOG_SERVER',https://www.newproducts.org');

 

We don't have them in our configure.php file. We downloaded our copy March 1, 2006.

 

Thanks for your response! :D

 

Regards,

MyrnaW

 

I put username/password on this site so that nobody sees my actual password or username. I tried to get into my website last night and for some reason it worked all of a sudden. I did not change anything. I have been having a hard time with this ssl certificate. Now, my new problem is that when I access my admin page - that shows up as a secure site and my actual website that customers use shows a privacy policy but no padlock icon.

 

I purchased my website from a company that pre-built it. Everything was done already, I just had to figure out how to make it look the way I wanted and add my own products, logo, backround, etc. They won't help you with configuration, but it was a pretty good deal. Not that expensive either.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...