VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Questions VM 1.1 ( the only active board for the old version) => Topic started by: deeptii on April 27, 2008, 06:42:48 am

Title: Checkout's last step brings back to index.php...
Post by: deeptii on April 27, 2008, 06:42:48 am
I have just installed a fresh Joomla 1.5.3 and Virtuemart 1.1.

Using the sample data that came with Virtuemart, in the checkout process's last step, after pressing the last checkout, it brings the user back to the index page and nothing happens!...

Can anyone tell me what's going on here?

test URL: http://www.ceintimates.com/
Title: Re: Checkout's last step brings back to index.php...
Post by: jenkinhill on April 27, 2008, 11:07:17 am
Is a valid SECUREURL set in VM's configuration? Is a single payment method set up or more than one?
Title: Re: Checkout's last step brings back to index.php...
Post by: deeptii on April 27, 2008, 15:16:18 pm
Hi,

I don't currently have HTTPS so I set the SECUREURL the same as normal: HTTP.

Currently I have enabled 4 payment methods.
Title: Re: Checkout's last step brings back to index.php...
Post by: deeptii on April 27, 2008, 15:25:35 pm
OK i found out why, in checkout.index.php, the form was built:

$basket_html .= '<form action="'. SECUREURL.basename($_SERVER['PHP_SELF']) .'" method="post" name="adminForm">

However, $_SERVER['PHP_SELF'] doesn't seem to return the full URL on my server, it returns only http://www.ceintimates.com/index.php.

After i pasted the whole thing (i.e. http://www.ceintimates.com/index.php?page=checkout.index&option=com_virtuemart&Itemid=1&redirected=1&Itemid=1) as form action everything works... is this a bug?
Title: Re: Checkout's last step brings back to index.php...
Post by: deeptii on April 27, 2008, 15:32:54 pm
After I changed the code to

$basket_html .= '<form action="'. SECUREURL.basename($_SERVER['REQUEST_URI']) .'" method="post" name="adminForm">

Things work now.

My platform was Apache 2, PHP 5