Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with configure.php


Guest

Recommended Posts

I never imagined that I woule be humiliated by a simple piece of code. Yet here I am. Maybe its because I have been staring at my stupid computer screen for roughly three days strait, who knows. But I cannot solve this one admittedly very, very simple error I keep getting on admin/configure.php. I mean, I know what it is, I know what it means, I have solved this one more times that I can count on other projects, but I just can't see it here. Could I get a pair of fresh eyes please?

 

Parse error: parse error, unexpected $end in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\admin\includes\configure.php on line 53

 

CODE FOLLOWS (I could not get my editor to grab the line numbers, since this error is at the end I am sending without fixing - sorry):

 

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

define('HTTPS_SERVER','');

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

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

define('HTTPS_CATALOG_SERVER',");

define('HTTP_COOKIE_DOMAIN','localhost');

define('HTTPS_COOKIE_DOMAIN','');

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

define('HTTPS_COOKIE_PATH','');

define('HTTPS_COOKIE_PATH','');

define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/admin/'); // absolute pate required

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

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

define('DIR_WS_HTTPS_CATALOG','');

define('DIR_FS_CATALOG', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/'); // 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, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'yalisma');

define('DB_DATABASE', 'yalisma');

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

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

?>

Link to comment
Share on other sites

change:

define('HTTPS_CATALOG_SERVER',");

to

define('HTTPS_CATALOG_SERVER','');

 

It can get frustrating. You need a program that points these errors out. I use kate for linux. I am not sure what zend studio is like?

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Link to comment
Share on other sites

I never imagined that I woule be humiliated by a simple piece of code. Yet here I am. Maybe its because I have been staring at my stupid computer screen for roughly three days strait, who knows. But I cannot solve this one admittedly very, very simple error I keep getting on admin/configure.php. I mean, I know what it is, I know what it means, I have solved this one more times that I can count on other projects, but I just can't see it here. Could I get a pair of fresh eyes please?

 

Parse error: parse error, unexpected $end in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\admin\includes\configure.php on line 53

 

CODE FOLLOWS (I could not get my editor to grab the line numbers, since this error is at the end I am sending without fixing - sorry):

 

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

define('HTTPS_SERVER','');

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

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

define('HTTPS_CATALOG_SERVER',");

define('HTTP_COOKIE_DOMAIN','localhost');

define('HTTPS_COOKIE_DOMAIN','');

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

define('HTTPS_COOKIE_PATH','');

define('HTTPS_COOKIE_PATH','');

define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/admin/'); // absolute pate required

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

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

define('DIR_WS_HTTPS_CATALOG','');

define('DIR_FS_CATALOG', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/'); // 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, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'yalisma');

define('DB_DATABASE', 'yalisma');

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

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

?>

 

First, although it's too late, NEVER post your configure file with your server info intact. See if you can change, at least, the password now or ask your ISP if they can change it, and then change it in your two configure.php files.

 

Second, make sure that there are no blank lines or spaces after the > at the end of the file. That MAY be causing your problem. The > should be the last character in the file.

 

HTH,

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

change:

 

to

It can get frustrating. You need a program that points these errors out. I use kate for linux. I am not sure what zend studio is like?

 

 

Thank you,

 

Zend studio is supposed to be an amazing (and it should be given the cost) integrated development environment. I'm sure I haven't checked the one of a trillion boxes that would enable it to highlight these types of errors. I had not used it until last night/today and am fairly dissapointed in it. But we'll see.

 

Thanks again for taking the time to help me with such a trivial error.

 

Best,

Link to comment
Share on other sites

First, although it's too late, NEVER post your configure file with your server info intact. See if you can change, at least, the password now or ask your ISP if they can change it, and then change it in your two configure.php files.

 

Second, make sure that there are no blank lines or spaces after the > at the end of the file. That MAY be causing your problem. The > should be the last character in the file.

 

HTH,

 

Richard

 

 

I should have explained, this is strictly running on a development machine that does not have access to the outside world, poor thing. Everything will be changed when it moves to our live server. That said, it is good that you replied. I didn't even think about it as I have never posted on a board anywhere before and if this were the real thing, well, I'd be pretty screwed.

 

Best,

Link to comment
Share on other sites

I had an issue with the configure.php file, i made changes to the local file before downloading the remote file...i re-entered most of the information and got the site back up in catalog and admin only now my products dont show. when im in admin there is a message at the top stating:

Error: Catalog images directory does not exist: /usr/services/vux/apache/htdocs/catalog/images/

 

does anyone kknow how to fix this?

Link to comment
Share on other sites

I should have explained, this is strictly running on a development machine that does not have access to the outside world, poor thing. Everything will be changed when it moves to our live server. That said, it is good that you replied. I didn't even think about it as I have never posted on a board anywhere before and if this were the real thing, well, I'd be pretty screwed.

 

Best,

 

Yes, and not in a GOOD way LMAO

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

I had an issue with the configure.php file, i made changes to the local file before downloading the remote file...i re-entered most of the information and got the site back up in catalog and admin only now my products dont show. when im in admin there is a message at the top stating:

 

Error: Catalog images directory does not exist: /usr/services/vux/apache/htdocs/catalog/images/

 

does anyone know how to fix this?

 

1) DOES the directory catalog/images exist?

 

2) If there are placeholders for the images showing up in the store (squares with red Xs in them), right click on one and go down to properties and it should give you a URL of where the program is trying to find the files. If it's not catalog/images, what is it?

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

does anyone know how to fix this?

1) DOES the directory catalog/images exist?

 

2) If there are placeholders for the images showing up in the store (squares with red Xs in them), right click on one and go down to properties and it should give you a URL of where the program is trying to find the files. If it's not catalog/images, what is it?

 

The folder does exist. it is fetching the images from the folder where they DO exist, but it is not displaying them. in the area where the photos should be (on the website) it says "Error: File path incorrect check configure.php

 

I believe it is a problem with the databse link to the website, but I don't knwo how to fix it.

Link to comment
Share on other sites

the error is here:

define('HTTPS_CATALOG_SERVER',");

you have a quote mark after the comma instead of tic marks!

it should be

define('HTTPS_CATALOG_SERVER','');

 

I found this using ZDE. mine colors the strings green and I could see where the coloring changed.

Don't feel badly, every nerd has been hassled by punctuation errors at one time or another; I could you horror stories!

Link to comment
Share on other sites

..oh, and just because the parser tells you the error is at the end of the file, that doesn't mean that's where it is. In this case it was looking for the other quote mark and never found it so it thinks it needs a quote before the end of file <_< .

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...