Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP.....Parse error in includes/configure.php


muses3

Recommended Posts

Hi

 

Like most here, i'm new to the whole php thing and i haven't a clue as to why this is not working.

 

From my admin page when i click on view your site i get the following;

 

 

Parse error: syntax error, unexpected T_STRING in /home/loginname/public_html/sitename/includes/configure.php on line 18

 

line 18 has the following;

 

define('HTTP_SERVER', 'http://www.sitename.co.uk/');

 

The shop is an addon domain, i'm not sure if that makes a difference to the above define line?!

 

what have i done wrong??

Link to comment
Share on other sites

That line looks OK, what is on the 2 lines before and after.

 

(Don't send passwords or user names)

 

e.g.

 

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

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

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

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

That line looks OK, what is on the 2 lines before and after.

 

(Don't send passwords or user names)

 

e.g.

 

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

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

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

 

Thanks for the quick response :)

 

I only have the following;

 

define('DB_SERVER_USERNAME', 'Iusername');

define('DB_SERVER_PASSWORD', 'pw');

define('DB_DATABASE', 'dbname');

define('DIR_FS_CATALOG', '/home/loginname/public_html/foldername/');

define('DIR_FS_IMAGES', 'home/loginname/public_html/foldername/images')

define('HTTP_SERVER', 'http://www.mysite.co.uk/');

define('HTTP_COOKIE_DOMAIN', '.mysite.co.uk');

 

so i need all the other bits you have othe then what's in mine?

 

thank you :)

Link to comment
Share on other sites

This line:

 

define('DIR_FS_IMAGES', 'home/loginname/public_html/foldername/images')

Is missing a SEMI-COLON at the end:

 

define('DIR_FS_IMAGES', 'home/loginname/public_html/foldername/images');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

This line:

 

define('DIR_FS_IMAGES', 'home/loginname/public_html/foldername/images')

Is missing a SEMI-COLON at the end:

 

define('DIR_FS_IMAGES', 'home/loginname/public_html/foldername/images');

 

 

Thank you soooo much, typical for it to be something so simple. :rolleyes:

 

take care x

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...