Page 1 of 1

cant find whitespace

Posted: Sat Mar 05, 2005 11:53 pm
by fleart1
I have this credit card and am adding another to my form. The code below is both the original code that worked fine and the added code that is causing the error., its in RED. I cant fint the whitespace error and I didnt touch the sessions form. Can anybody please tell me what I am doing wrong.

Code: Select all

<tr>
          <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new&#1111;'products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new&#1111;'products_image'], $products_new&#1111;'products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td>
            <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new&#1111;'products_id']) . '"><b><u>' . $products_new&#1111;'products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new&#1111;'products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new&#1111;'manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>
            <td align="right" valign="middle" class="main">
            <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new&#1111;'products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td>
          </tr>
          <tr>
            <td align="right" valign="middle" class="main">
            <form target='_parent' action='https://www.ikobo.com/merchant/view_cart.php?item_id=87355&poid=VJ380357US' method='post'><input type='hidden' name='cmd' value='add_cart'><input type='image' src='https://www.ikobo.com/merchant/buttons/VJ380357US165559pay.jpg' border='0' name='submit' alt='Make payments with iKobo - it's fast, free and secure!'></form></td>
           </tr>
Get this error on this URL
http://heavensentcheesecakes.com/produc ... php?page=2

Code: Select all

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/sent/public_html/products_new.php:4) in /home/sent/public_html/includes/functions/sessions.php on line 67
>
Here is the code in the sessions.php line 66-67:

Code: Select all

function tep_session_start() &#123;
    return session_start();
[ Added code-tags so you actually can read the post. -- JAM ]

Posted: Sun Mar 06, 2005 7:03 am
by JAM
I personally cant see enough code to judge what might be wrong with this code.

Somewhere, the pages tries to call a session_start(), after something is outputed to the screen. session_start() needs (without interference with ob_start() and other buffering techniques that is) to be at the very top of the script(s), before any output is made.

You should debug your script to see what happens before the tep_session_start() is called.

Posted: Sun Mar 06, 2005 7:23 am
by feyd
viewtopic.php?t=1157

output started in products_new.php on line 4.

Posted: Sun Mar 06, 2005 11:57 am
by fleart1
it works fine until I add the code below to it. when I remove the code and try it as it was originally I still get the same error. somehow something changes somewhere in sessions and i have to upload a fresh copy of the script. Thats why I thought it was a whitespace

Code: Select all

<tr>
            <td align="right" valign="middle" class="main">
            <form target='_parent' action='https://www.ikobo.com/merchant/view_cart.php?item_id=87355&poid=VJ380357US' method='post'><input type='hidden' name='cmd' value='add_cart'><input type='image' src='https://www.ikobo.com/merchant/buttons/VJ380357US165559pay.jpg' border='0' name='submit' alt='Make payments with iKobo - it's fast, free and secure!'></form></td>
           </tr>
PHENOM | PLEASE USE

Code: Select all

TAGS[/color]

Posted: Sun Mar 06, 2005 5:05 pm
by fleart1
Mabye I didnt understand you. By starting session..
you mean have this
<?php echo
well it was there onliine 8 and ran just fine before I added my code. with the new <td> record.
I am brand new to php and probably dont understand you. work with HTMl alot but not this until now