Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session Id messing up Static Pages


nafees

Recommended Posts

Posted

I am having a weird problem. Please help, its been days that i am trying to figure this out and now it is becoming really frustrating.

 

In my configure.php i have SSL enabled to 'true' for my paypal transactions. Paypal works fine.

 

When i click on 'My Account' osC somewhere internally generates a unique session id. My 'Welcome sign in' page is displayed. But at this point all my other static page links which i have hard coded with href start giving 404 error. Ex: Contact Us, FAQ, Privacy Policy etc. It seems that the SESSION ID is getting attached to the href code just like shown below. Why would it do so ?

 

CODE

 

<a href="/catalog/aboutus.php?osCsid=0208cd62f127180c67f51776d3e0ed57" class="FooterNavigation">About Us</a>

<a href="/catalog/shipping.php?osCsid=0208cd62f127180c67f51776d3e0ed57" class="FooterNavigation">Shipping & Returns</a>

<a href="/catalog/faq.php?osCsid=0208cd62f127180c67f51776d3e0ed57" class="FooterNavigation">FAQ</a>

<a href="/catalog/contact_us.php?osCsid=0208cd62f127180c67f51776d3e0ed57" class="FooterNavigation">Contact Us</a>

 

 

When i disable SSL in configure.php the error disappears but Paypal is then not secure. How can i have SSL enabled to true and still get rid of 404 Error.

 

Thanks.

Nafisa

Posted

Yahoooooooooooo !

 

Finally I got it working. Of course i am so excited that i immediately came to the forum to tell everyone that. I still have a zillion links with href to fix.

 

The problem was with my code. It took ages to figure out because of lack of php knowledge.

 

I had my code like

 

$info_box_contents[] = array('text' => '<a href="/catalog/artstore.php"> Prints & Posters</a>');

 

and i changed it to

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ARTSTORE) . '">' . BOX_INFORMATION_ARTSTORE . '</a>'

);

 

and it all came together. No more 404 Errors for static page links.

 

Now that i have figured it out, i am curious to know what is the difference between linking through just 'href' vs 'tep_href_link'. Can someone explain me this.

 

Nafisa

Nafisa

Archived

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

×
×
  • Create New...