Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird parse error


vgrieco

Recommended Posts

I've searched but I can't find any help on this specific error:

 

When I try to access /mystore/admin I get this error:

 

Parse error: parse error, unexpected '/' in /www/a/mystore/htdocs/admin/includes/configure.php on line 36

 

Seems simple enough BUT... when I open /admin/includes/configure.php line 36 looks like this...

 

define('DB_SERVER_USERNAME', 'myusername');

 

I don't see any "unexpected /". Does anyone have any ideas?

 

PS. The username IS correct, by the way, although even if it weren't I still wouldn't expect this parse error.

 

Thank you in advance.

Link to comment
Share on other sites

I've searched but I can't find any help on this specific error:

 

When I try to access /mystore/admin I get this error:

 

Parse error: parse error, unexpected '/' in /www/a/mystore/htdocs/admin/includes/configure.php on line 36

 

Seems simple enough BUT... when I open /admin/includes/configure.php line 36 looks like this...

 

define('DB_SERVER_USERNAME', 'myusername');

 

I don't see any "unexpected /". Does anyone have any ideas?

 

PS. The username IS correct, by the way, although even if it weren't I still wouldn't expect this parse error.

 

Thank you in advance.

 

 

parsing basically means reading and php does that until it cannot stand it any longer so to speak. So the error is probably a little above from where php says it has enough.

Treasurer MFC

Link to comment
Share on other sites

I recently moved my store to the root directory and edited both configure.php files to remove the "catalog" references. That is no doubt what is causing the error but don't see any unexpected /. Here are the relevant lines of /admin/includes/configure.php with "catalog" removed:

 

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

define('HTTP_CATALOG_SERVER', 'http://www.mystore.com');

define('HTTPS_CATALOG_SERVER', 'https://mystore.secure.powweb.com');

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

define('DIR_FS_DOCUMENT_ROOT', '/www/m/s/mystore.com/htdocs/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/www/m/s/mystore.com/htdocs/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/www/m/s/mystore.com/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 . /www/m/s/mystore.com/htdocs/admin/backups/');

 

The ONLY change from my prior version is removing "/catalog" from 5 lines in the file. The home page of the store is fine, so I know I edited /includes/configure.php correctly. The problem is in /admin/etc.

Link to comment
Share on other sites

I recently moved my store to the root directory and edited both configure.php files to remove the "catalog" references. That is no doubt what is causing the error but don't see any unexpected /. Here are the relevant lines of /admin/includes/configure.php with "catalog" removed:

 

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

  define('HTTP_CATALOG_SERVER', 'http://www.mystore.com');

  define('HTTPS_CATALOG_SERVER', 'https://mystore.secure.powweb.com');

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

  define('DIR_FS_DOCUMENT_ROOT', '/www/m/s/mystore.com/htdocs/'); // where the pages are located on the server

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

  define('DIR_FS_ADMIN', '/www/m/s/mystore.com/htdocs/admin/'); // absolute pate required

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

  define('DIR_FS_CATALOG', '/www/m/s/mystore.com/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 . /www/m/s/mystore.com/htdocs/admin/backups/');

 

The ONLY change from my prior version is removing "/catalog" from 5 lines in the file. The home page of the store is fine, so I know I edited /includes/configure.php correctly. The problem is in /admin/etc.

 

 

you are missing a quote here

 

define('DIR_FS_BACKUP', DIR_FS_ADMIN . /www/m/s/mystore.com/htdocs/admin/backups/');

Treasurer MFC

Link to comment
Share on other sites

Sorry. That error came from editing the post... the line in the real file has the quote... it looks like this...

 

define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/www/m/s/mystore.com/htdocs/admin/backups/');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...