Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extremely strange best sellers display problem VERY strange


sfatula

Recommended Posts

On the best sellers infobox, on the right hand side of the screen, the best sellers box calls classes/boxes.php to build an infobox. This ends up being displayed when build near the end of the tableBox function. The last thing this function does is:

 

$tableBox_string .= '</table> . "n";

if ($direct_output == true) echo $tableBox_string;

 

However, the first time on any given day I browse to my web site, the bottom of the screen is messed up. The number of displays for example normally at the bottom is now in the right hand column. Along with other stuff that is normally on the bottom. ANY subsequent visit to the same site with the same code works great.

 

If I view source for that page, I find:

 

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

</table>

</td>

</tr>

</ </td>

</tr>

<!-- best_sellers_eof //-->

 

The final </td> and </tr> come from best sellers. The final </ with a bunch if spaces SHOULD have been </table> and come from class boxes.php function tableBox as it displays it. There is no complexity to this code, it appends the </table> to the string and displays it on the next line, yet I do not get </table>!

 

This happens each day I visit my site, the first time. Lots of customers have been to the site during the day. I have done this from Win XP IE, and Win 98 IE. I have a test linux server at home at it also has this display problem the first time. Both my linux server and the hosting server use Apache, though different versions, and they have different versions of PHP.

 

I am totally lost as to how to proceed with figuring out if this is a coding error in osc, a php bug, an apache bug, a ie bug, something else? But, it is very reproduceable for me.

 

If you want to see if it happens for you, go to www.powersystemsdirect.com and see if the stuff is laid out improperly the first time.

 

What's even stranger is so far, and I've only tried twice, I have NOT had the problem with Netscape. But how could IE eat some of the code coming down from the server? Surely not?

Steve

Link to comment
Share on other sites

If you check admin :arrow: Tools :arrow: Server Info, does it say you are using PHP 4.2.something? Solution (upgrade php) and workarounds: www.oscommerce.com/community/bugs,1242

 

Hth,

Matt

Link to comment
Share on other sites

Hi Matt, good job, this is exactly the issue. Though the php bug says BSD only, it does affect Linux.

 

One suggested solution did work for me, forcing use_trans_sid to 0 in the .htaccess file got rid of the display problem. OSC doesn't use it anyway, so no big deal.

 

Another suggestion - forcing cookie usage, does not work. It still displays wrong.

 

Anyway, thanks for the tip, it is *very* useful to me as it looks bad when your web page doesn't display right!

Steve

Link to comment
Share on other sites

Though the php bug says BSD only, it does affect Linux.
I must have missed that.

 

The bug exists on PHP 4.2.x on every OS AFAIK. I have seen it personally with both Red Hat and MS Windows XP.

 

Glad it worked out for you.

 

Good luck,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...