Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help. I am completely stuck.


blueline

Recommended Posts

Hey everyone.

 

I am really grateful to all of those people who have helped me in the past. On my last posted topic I had a problem with the layout design. After finding a way to make that work, a new error popped up. Well, normally common sense would say, "Undo what you did, and do it another way." The problem is that this new error doesn't relate, even a little bit, to the changes that I made. All I did was change the layout of the tables in default.php, and all of a sudden I am getting this error on every page, even an error in the admin:

 

Warning: Cannot send session cookie - headers already sent by (output started at /home/blueline/public_html/shop/includes/configure.php:47) in /home/blueline/public_html/shop/includes/functions/sessions.php on line 67

 

Warning: Cannot send session cache limiter - headers already sent (output started at /home/blueline/public_html/shop/includes/configure.php:47) in /home/blueline/public_html/shop/includes/functions/sessions.php on line 67

 

 

Thanks everbody,

Chris

Chris Sullivan

Link to comment
Share on other sites

Hey everyone.

 

I am really grateful to all of those people who have helped me in the past. On my last posted topic I had a problem with the layout design. After finding a way to make that work, a new error popped up. Well, normally common sense would say, "Undo what you did, and do it another way." The problem is that this new error doesn't relate, even a little bit, to the changes that I made. All I did was change the layout of the tables in default.php, and all of a sudden I am getting this error on every page, even an error in the admin:

 

Warning: Cannot send session cookie - headers already sent by (output started at /home/blueline/public_html/shop/includes/configure.php:47) in /home/blueline/public_html/shop/includes/functions/sessions.php on line 67

 

Warning: Cannot send session cache limiter - headers already sent (output started at /home/blueline/public_html/shop/includes/configure.php:47) in /home/blueline/public_html/shop/includes/functions/sessions.php on line 67

 

 

Thanks everbody,

Chris

 

Can you include those sections of code from each?

 

Aodhan

Link to comment
Share on other sites

That's the thing, configure.php doesn't even have 47 lines. It only has 44.

 

Sessions.php is totally not making sense to me when relating to this problem, but here is the code "around" line 67.

 

 function tep_session_start() {

   return session_start();

 }

 

 function tep_session_register($variable) {

   return session_register($variable);

 }

 

 function tep_session_is_registered($variable) {

   return session_is_registered($variable);

 }

 

 function tep_session_unregister($variable) {

   return session_unregister($variable);

 }

 

 function tep_session_id($sessid = '') {

   if ($sessid != '') {

     return session_id($sessid);

   } else {

     return session_id();

   }

 }

 

 function tep_session_name($name = '') {

   if ($name != '') {

     return session_name($name);

   } else {

     return session_name();

   }

 }

 

 function tep_session_close() {

   if (function_exists('session_close')) {

     return session_close();

   }

 }

 

 function tep_session_destroy() {

   return session_destroy();

 }

 

 function tep_session_save_path($path = '') {

   if ($path != '') {

     return session_save_path($path);

   } else {

     return session_save_path();

   }

 }

?>

 

 

Thanks for the help,

-Chris

Chris Sullivan

Link to comment
Share on other sites

Also, when you try to add a product to the cart, you get these errors: (There aren't really ''s between 4 and 8 and ). If I typed it normal than an icon shows up in the forum:

 

Warning: Cannot send session cache limiter - headers already sent (output started at /home/blueline/public_html/shop/includes/configure.php:48) in /home/blueline/public_html/shop/includes/functions/sessions.php on line 67

 

Warning: Cannot add header information - headers already sent by (output started at /home/blueline/public_html/shop/includes/configure.php:48) in /home/blueline/public_html/shop/includes/functions/general.php on line 23

 

 

This is general.php line 23:

////

// Redirect to another page or site

 function tep_redirect($url) {

   header('Location: ' . $url);

   tep_exit();

 }

 

 

Thanks,

Chris

Chris Sullivan

Link to comment
Share on other sites

...if I only got a quarter every time for this answer... ;)

 

you have WHITESPACES / HARD RETURNS in home/blueline/public_html/shop/includes/configure.php

 

which means there is 'html output' BEFORE the cookie tries to set itself.

It is about the most common error in php scripts....

Check if there are 'extra' empty lines / spaces at the beginning or end of

home/blueline/public_html/shop/includes/configure.php

 

<?php

// no space before the <?php



blabla code

more code



more code



// no spaces AFTER ?> !!!

?>

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Mattice,

 

WOW! Thanks a bunch. I was a little skeptical at first, thinking, "no that's way too easy." It worked though. The only problem is that if you hit refresh I now get this error in the top left corner of the page.

 

Warning: fopen("/temporary/categories_box-english.cache", "w") - No such file or directory in /home/blueline/public_html/shop/includes/functions/cache.php on line 22

 

Warning: fopen("/temporary/manufacturers_box-english.cache", "w") - No such file or directory in /home/blueline/public_html/shop/includes/functions/cache.php on line 22

 

Thanks,

Chris

Chris Sullivan

Link to comment
Share on other sites

Mattice,

 

WOW! Thanks a bunch. I was a little skeptical at first, thinking, "no that's way too easy." It worked though. The only problem is that if you hit refresh I now get this error in the top left corner of the page.

 

Warning: fopen("/temporary/categories_box-english.cache", "w") - No such file or directory in /home/blueline/public_html/shop/includes/functions/cache.php on line 22

 

Warning: fopen("/temporary/manufacturers_box-english.cache", "w") - No such file or directory in /home/blueline/public_html/shop/includes/functions/cache.php on line 22

 

Thanks,

Chris

 

Well, the obvious one is to check and make sure that the /temporary/ directory exists where it is supposed to, and that the cache names are correct and that they exist in that directory.

 

Aodhan

Link to comment
Share on other sites

For the moment, I just disabled cache and that took care of the problem. I did have the right folder in the right place, but oh well.

 

I swear the errors never stop. Now that I got those errors to go away, I got a new one:

 

Warning: Cannot add header information - headers already sent by (output started at /home/blueline/public_html/shop/includes/application_top.php:463) in /home/blueline/public_html/shop/includes/functions/general.php on line 23

 

This is the code that general.php shows starting at line 23:

 

////

// Redirect to another page or site

 function tep_redirect($url) {

   header('Location: ' . $url);

   tep_exit();

 }

 

 

 

Any ideas?

 

Thanks everybody,

Chris

Chris Sullivan

Link to comment
Share on other sites

I know I know. Just when I thought it was all over. I am still stuck!

 

I am getting an error at the end of the checkout process, here is the error:

 

1054 - Unknown column 'orders_id' in 'field list'

 

insert into orders_total (orders_id, title, text, value, class, sort_order) values ('7', 'Sub-Total:', '$159.99', '159.99', 'ot_subtotal', '1')

 

[TEP STOP]

 

Thanks,

Chris

Chris Sullivan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...