Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error when trying to access my catalog site


Guest

Recommended Posts

Posted

Help! I'm new to the program, and I'm not sure what I did, but I can't access my catalog site anymore. I can get to the admin page, but when I try to view my online catalog, I get this error message:

 

Parse error: parse error, unexpected T_STRING in /home/just4gur/public_html/osCommerce/catalog/includes/languages/english/index.php on line 19

 

Can anyone tell me what this means and what I need to do to fix it?

 

 

 

 

I'm also having trouble figuring out how to link my store into Front Page 2002.....if anyone has any suggestions on that, I'd be glad to hear them!

 

Thanks so much!

Posted

Edits were made to the catalog/includes/languages/english/index.php file on or around line 19 that created an error.

 

The text most likely contains a single quote (apostrophe) that needs to be escaped by preceeding it with a backslash (e.g. \' ).

 

Don't use FrontPage. There are plenty of free editors that are much better than FP that are easily available.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

PLEASE HELP THIS AMATEUR!

 

I have the same problem:

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /vhosts/yapbozma.com/http/catalog/includes/configure.php on line 2

 

Parse error: parse error, unexpected T_STRING in /vhosts/yapbozma.com/http/catalog/includes/configure.php on line 2

 

-----------

 

My codes at "configure.php":

 

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

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

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

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

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', '*****');

define('DB_SERVER_PASSWORD', '*****');

define('DB_DATABASE', '*****');

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

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

?>

Posted

Please edit your post and remove the database informaiton contained at the bottom. *Never* post that information if you are ever asked for your includes/configure.php file for security reasons.

 

I'm not sure about the parse error but you need to make the following changes:

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

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted
I'm not sure about the parse error but you need to make the following changes:

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

 

Nothing changed!

:(

Archived

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

×
×
  • Create New...