Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

quick question re: that line 67 error


Guest

Recommended Posts

Hi all,

 

I have read previous topics, like

http://www.oscommerce.com/forums/lofiversion/i...hp/t154775.html

 

and the knowledge base http://www.oscommerce.info/docs/english/e_...ready_sent.html

 

and I am still confused.

 

I am getting the following error messages on my oscommerce admin page (viewed through xampp). I am not getting any error messages on the catalogue page.

 

Warning: session_start() [function.session-start]: open(\tmp\sess_fa03d55299e06db6cd0409158cb1ee6c, O_RDWR) failed: No such file or directory (2) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php:67) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php:67) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67

 

 

As per the links that I read above, I have set

 

define('STORE_SESSIONS', 'mysql'

 

in

 

includes/configure.php

and admin/includes/configure.php

 

my php.ini file reads

 

session.save_handler = files

session.save_path = "\tmp"

 

(i have tried the session save path as :

 

tmp

/tmp

and C:\Program Files\xampp\tmp

 

to no avail)

 

I have checked the admin/index.php file. It does not finish with ?>

 

it finishes with the following:

 

?>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><font color="#008080">

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</font></td>

</tr>

</table></td>

</tr>

</table>

 

</body>

 

</html>

 

 

Am I meant to delete the html code there? I tried deleting that code but it didn't make much difference - it displaced some further error messages from beneath the admin panel to inside it!

 

Can someone please set me straight here - I am sure it is not a biggie. I will be eternally grateful!

 

Thanks!

Link to comment
Share on other sites

I'm not real familiar with this problem. I do commend you for doing some homework though :thumbsup:

 

The html at the bottom of admin/index.php is normal. That's just the footer, and it's all html so it's outside of that php tag.

 

I'm sure this was just a typo, right :huh:

 

define('STORE_SESSIONS', 'mysql'); (the end parentheses and the semi colon)

 

Hopefully some better help will come along. Good luck!

 

Hi all,

 

I have read previous topics, like

http://www.oscommerce.com/forums/lofiversion/i...hp/t154775.html

 

and the knowledge base http://www.oscommerce.info/docs/english/e_...ready_sent.html

 

and I am still confused.

 

I am getting the following error messages on my oscommerce admin page (viewed through xampp). I am not getting any error messages on the catalogue page.

 

Warning: session_start() [function.session-start]: open(\tmp\sess_fa03d55299e06db6cd0409158cb1ee6c, O_RDWR) failed: No such file or directory (2) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php:67) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php:67) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67

As per the links that I read above, I have set

 

define('STORE_SESSIONS', 'mysql'

 

in

 

includes/configure.php

and admin/includes/configure.php

 

my php.ini file reads

 

session.save_handler = files

session.save_path = "\tmp"

 

(i have tried the session save path as :

 

tmp

/tmp

and C:\Program Files\xampp\tmp

 

to no avail)

 

I have checked the admin/index.php file. It does not finish with ?>

 

it finishes with the following:

 

?>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><font color="#008080">

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</font></td>

</tr>

</table></td>

</tr>

</table>

 

</body>

 

</html>

Am I meant to delete the html code there? I tried deleting that code but it didn't make much difference - it displaced some further error messages from beneath the admin panel to inside it!

 

Can someone please set me straight here - I am sure it is not a biggie. I will be eternally grateful!

 

Thanks!

Link to comment
Share on other sites

thanks choosa

 

yes - that was a typo. I do have the ); in the script.

 

and yes - i hope someone else can also help.

 

that reminds me - do you know which php.ini file should i be using?

 

i have 3 which show up on windows explorer in the php directory as

 

php (configuration file)

php (INI-DIST file)

php (INI-RECOMMENDED file)

 

???

Link to comment
Share on other sites

still waiting... can anyone help me with this error message?? please

 

 

Warning: session_start() [function.session-start]: open(\tmp\sess_fa03d55299e06db6cd0409158cb1ee6c, O_RDWR) failed: No such file or directory (2) in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 67
Link to comment
Share on other sites

Go to osC admin --> Configuration --> Sessions and change Session Save Path to just tmp with no slash before or after tmp.

 

If that does not work then look in your php.ini file and see if you are running PHP in Safe Mode (no need to do this).

 

Vger

Link to comment
Share on other sites

Thanks Vger,

 

no luck with either of those. Safe mode is off in the php.ini.

if i try admin > configure > sessions and switch it to tmp without a slash it kind of gets worse - i get the same error messages all over the screen, but the admin panel disappears!

 

Still need to know:

 

if i have defined store sessions as 'mysql' in includes/configure and admin/includes/configure

 

then what should my session.save_path read in php.ini?

 

and should

 

session.save_handler = files

 

still work - or is it supposed to say session.save_handler = database or something like that?

 

Can anybody help?

 

(thanks everyone for making and using oscommerce)

Link to comment
Share on other sites

I still need help with this! Can anybody help????

 

The line 67 on my sessions.php reads:

 

66: function tep_session_start() {

 

67: global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS;

 

69: $sane_session_id = true;

 

if (isset($HTTP_GET_VARS[tep_session_name()])) {

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

unset($HTTP_GET_VARS[tep_session_name()]);

 

$sane_session_id = false;

}

} elseif (isset($HTTP_POST_VARS[tep_session_name()])) {

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

unset($HTTP_POST_VARS[tep_session_name()]);

 

$sane_session_id = false;

}

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

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

$session_data = session_get_cookie_params();

 

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

 

$sane_session_id = false;

}

Link to comment
Share on other sites

OOOOPPPPPPSSSSS!

 

I just gave the code for my catalog/includes/functions/sessions.php

 

Meant to give the code for catalog/admin/includes/functions/sessions.php

 

66: function tep_session_start() {

67: return session_start();

 

I am sorry this post is getting so long!!!

 

Won't it be great when i fix it and we can forget the whole hting?

Link to comment
Share on other sites

ohmigod finally fixed it. This was a fluke - i must have angels on my side.

 

I went to admin/includes/configure.php

 

and at the very bottom, changed:

 

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

 

to

 

define('STORE_SESSIONS', 'mysql')

 

- I vaguely remembered changing those things to mysql when I installed xampp but i must have done it in includes/configure.php and forgotten to do it in admin/includes/configure.php

 

YAY!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...