Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Uploaded store cant access admin page


Guest

Recommended Posts

Posted

I set up my first store about 1 month ago and after some reading and late nights i got it to the point that i decided i could make it work (eventually). I uploaded to a hosting company, and after some line changes in /includes.configure.php and /admin/includes/configure.php i got the store online.

I have 2 issues.

1. when i launch the admin page like so <http://ofspiritandsage.com/admin/login.php> i get the page with errors and cant log in.

Errors;

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /homepages/28/d272820928/htdocs/admin/includes/configure.php:34) in /homepages/28/d272820928/htdocs/admin/includes/functions/sessions.php on line 102

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/28/d272820928/htdocs/admin/includes/configure.php:34) in /homepages/28/d272820928/htdocs/admin/includes/functions/sessions.php on line 102

 

Here is a clip from the admin/includes/functions/sessions.php file

85

86 $sane_session_id = false;

87 }

88 } elseif (isset($HTTP_COOKIE_VARS[tep_session_name()])) {

89 if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_COOKIE_VARS[tep_session_name()]) == false) {

90 $session_data = session_get_cookie_params();

91

92 setcookie(tep_session_name(), '', time()-42000, $session_data['path'], $session_data['domain']);

93

94 $sane_session_id = false;

95 }

96 }

97

98 if ($sane_session_id == false) {

99 tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));

100 }

101

102 return session_start();

103 }

104

105 function tep_session_register($variable) {

106 if (PHP_VERSION < 4.3) {

107 return session_register($variable);

108 } else {

109 if (isset($GLOBALS[$variable])) {

110 $_SESSION[$variable] =& $GLOBALS[$variable];

111 } else {

112 $_SESSION[$variable] = null;

113 }

114 }

115

116 return false;

117 }

 

Hopefully i included the useful information as i dont really understand this too well.

 

 

My other problem is that i have to type

http://ofspiritandsage.com/index.php

and not just

http://ofspiritandsage.com

 

I did drop all of the files and folders inside my catalog into the /htdocs folder, not the whole catalog folder.

 

Thanks,

Dave

Posted

Anybody see anything wrong here??? It's making me nuts.

 

 

Here is /htdocs/admin/includes/configure.php

 

<?php

define('HTTP_SERVER', 'http://ofspiritandsage.com');

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

define('HTTPS_CATALOG_SERVER', 'http://ofspiritandsage.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/kunden/homepages/28/d272820928/htdocs/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', '/kunden/homepages/28/d272820928/htdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/kunden/homepages/28/d272820928/htdocs/');

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('DB_SERVER', 'servername');

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'pwd');

define('DB_DATABASE', 'db');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

"configure.php" 33L, 1624C written

 

 

And here is /htdocs/includes/configure.php

<?php

define('HTTP_SERVER', 'http://ofspiritandsage.com');

define('HTTPS_SERVER', 'http://ofspiritandsage.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'http://ofspiritandsage.com');

define('HTTPS_COOKIE_DOMAIN', 'http://ofspiritandsage.com');

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', '/kunden/homepages/28/d272820928/htdocs/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'servername');

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'pwd');

define('DB_DATABASE', 'db');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

~

Posted

Headers Already Sent

 

Click the link above for an explanation.

 

The problem is in /admin/includes/configure.php (line 34)

 

Most likely "whitespace(s)" at the end.

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 >

Posted

I swear i looked at those files 1000 times last night because i saw it was a common issue with white space. I looked again after your reply, although i did hit delete at the end of the file, threre didnt seem to any white space to delete, but my issue is now fixed. So, either there was space (dont think so) or i had to wait for a service to restart on my hosting site.

But, bottom line is Thanks for your help. always appreciated.

Archived

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

×
×
  • Create New...