Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php left aligned on first visit


Guest

Recommended Posts

Hi

 

I'm not uber-technical .... I've managed to tailor oscommerce so it's 750 pixels wide and centred on screen.

 

Except .... when it initially loads ... it left justifies for the body ... but not the header and footer ... therafter it reverts to centred ....

 

It seems to do it when it's hyperlinked rather than directly accessed.

 

http://www.firstfoot.com

 

and click on the shop graphic to see ...

 

any help would be good....

 

And ... how do I restore the oscommerce footer ?

Link to comment
Share on other sites

Searching for footer in right column would probably find a link to www.oscommerce.com/community/bugs,1242

 

You can download the original copy of includes/footer.php with a fresh copy of MS2. Note: IMO, you have to put back the osCommerce copyright, as you are still using the default osCommerce layout (albeit with some image and color changes, plus centering).

 

Hth,

Matt

Link to comment
Share on other sites

No ... that took me to a .htaccess problem ... which only made matters worse ....

 

Footer ... thanks i'll restore the original footer.php and see what happens

 

What puzzles me is why it happens in the original load of index.php and not subsequents ...

 

 

HELP ???

Link to comment
Share on other sites

Hi,

I've got the same problem.

 

When linking to the /catalog/index.php there seems to be an errant table tag. In I.E. when I click on the catalog hyperlink in the menu bar sometimes the page loads correctly, other times it doesn't.

 

Have you looked at your site in Netscape? The top banner and the menu bar comes up but nothing underneath? Until you click the catalog hyperlink in the menu bar.

 

If something different is happening on the first access ... could this be a session problem? Once you're within the OScommerce php pages a session is assigned?

 

Linda.

Link to comment
Share on other sites

No ... that took me to a .htaccess problem ... which only made matters worse ....
How so? What kind of problem?

 

Linda, if you read the link that I posted (especially the URLs Jan listed), you will see that that involves a session problem as you surmise. I can't guarantee that that is the problem, but the bug manifests exactly as described.

 

Hth,

Matt

Link to comment
Share on other sites

Isn't this problem mentioned somewhere in a faq yet? I see exactly this same question almost every day now at these forums.

 

I would upgrade, or ask your provider to upgrade, the PHP because there are more nasty problems with PHP4.3.1 .

Link to comment
Share on other sites

The suggested fix to application_top.php - adding the line below, at the top of the include worked for me:

 

ini_set ( 'session.use_trans_sid', 0);

 

Thanks for posting the link. As I think a lot of us newbies/non technical folk get to "hair tearing out" time when we reach the limiy of our ability (usually tooo quickly).

 

Working now .... :-)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...