Author Topic: Webpage has Expired after clicking "back" in search results  (Read 6345 times)

2CJ

  • Beginner
  • *
  • Posts: 8
Webpage has Expired after clicking "back" in search results
« on: November 10, 2008, 21:10:34 pm »
I have tried many things to solve this problem. When a user hits the back button after viewing a product in the advanced Search results, they get a message stating the "Webpage has expired". It is a pain to have to refresh the page. Does someone have a solution for this problem? I am using Virtuemart 1.2 and Joomla 1.5.

2CJ

  • Beginner
  • *
  • Posts: 8
Re: Webpage has Expired after clicking "back" in search results
« Reply #1 on: November 11, 2008, 00:25:55 am »
PROBLEM SOLVED!!! This is what worked for me:
You have to change 2 simple things.
1. Modify this file:
modules>mod_vm_advanced_search>mod_vm_advanced_search.php
Search for the word "post" and change it to "get"
(When you re-upload this file via your ftp, make sure it is in binary mode.

2. Modify this file:
administrator>components>com_virtuemart>html>shop.search.php
Search for the word "post" and change it to "get"

That's it! Hope it works for you too.

TimU

  • Beginner
  • *
  • Posts: 29
Re: Webpage has Expired after clicking "back" in search results
« Reply #2 on: August 04, 2010, 16:18:59 pm »
Just a short note of thanks for this, this hack still works in VM 1.1.5, but you only have to modify the mod_virtuemart_search.php file now.

/administrator/components/com_virtuemart/html/shop.search.php is already set to "GET" by default.

change mod_virtuemart_search.php from:
Code: [Select]
<!--BEGIN Search Box -->
<form action="<?php $sess->purl$mm_action_url."index.php?page=shop.browse" ?>" method="post">
to
Code: [Select]
<!--BEGIN Search Box -->
<form action="<?php $sess->purl$mm_action_url."index.php?page=shop.browse" ?>" method="get">

Thanks again!
Tim
www.Invitations2Impress.com
Personalised Invitations For Every Occasion

We custom design event invitations using your own photos to give an extra personal touch that your guests will love!
All our designs can be made to suit ANY occasion!