Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cant access admin area? error


dares_uk

Recommended Posts

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /pub/home/dares79/Local-Image/catalog/admin/includes/configure.php on line 2

 

Parse error: syntax error, unexpected T_STRING in /pub/home/dares79/Local-Image/catalog/admin/includes/configure.php on line 2

 

thats the error i get when i go to go to my admin area.

ive changed nothing with the site, its been like that for ages,

just not got round to sorting it,

but seemed to off recieved a couple of orders recently and need access now. :P

 

can any one suggest whats wrong?

 

thanks

Link to comment
Share on other sites

There is something wrong with catalog/admin/includes/configure.php on line 2

 

Suggest you look in there.

 

Should be atleast 20 lines in it, normally ending with your db credentials and terminated

 

?>

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

yeh had a look in that file, but couldnt see anything wrong/out of place. ?? :s

 

 

<?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('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/pub/home/dares79/Local-Image/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/pub/home/dares79/Local-Image/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/pub/home/dares79/Local-Image/catalog/'); // 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

 

this is the first part of the code from admin/configure.php any one see whats wrong with that?

thanks

Link to comment
Share on other sites

  • 5 months later...

uploading a new one is not a practical idea.

it took me long enough to set it up,

and had to seek help to get it working properly

 

 

still getting this error.

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /pub/home/dares79/Local-Image/catalog/admin/includes/configure.php on line 2

 

Parse error: syntax error, unexpected T_STRING in /pub/home/dares79/Local-Image/catalog/admin/includes/configure.php on line 2

Link to comment
Share on other sites

Hi, Can you find the original file and try just pasting over the top few lines, seen as the error is saying line 2. I have looked at my files before and been unable to see a problem and this sorted it out - people are always talking about 'white space' whihc seems to mess things up.

Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...