VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hkymre on July 06, 2012, 12:40:40 PM

Title: Edit Payment method not working
Post by: hkymre on July 06, 2012, 12:40:40 PM
J1.5.26 VM 2.0.6 - migrated from VM1

If I try & edit the payment method at the check out the following error appears:-

[06-Jul-2012 11:36:05] PHP Warning:  Wrong parameter count for preg_replace() in /home/sitename/public_html/administrator/components/com_virtuemart/helpers/vmfilter.php on line 778

I'm then thrown back to the home page so can't complete the order.

*update*
Realised I had acesef enabled, so disabled it

Got the following error

500 - View not found [name, type, prefix]: cart,html,contentView

Disabled SEO completely and this link works - index.php?view=cart&task=editpayment&option=com_virtuemart



Title: Re: Edit Payment method not working
Post by: hkymre on July 06, 2012, 18:18:37 PM
looks like it was acesef causing this issue.

cleared cache and edit payment method working fine now (with acesef disabled)
Title: Re: Edit Payment method not working
Post by: jack19 on October 23, 2012, 15:33:38 PM
Quote from: hkymre on July 06, 2012, 18:18:37 PM
looks like it was acesef causing this issue.

cleared cache and edit payment method working fine now (with acesef disabled)
Hi,
Same problem with AceSEF.
My workaround:
edit default_pricelist.php around line 344 replace
echo JHTML::_ ('link', JRoute::_ ('index.php?view=cart&task=editpayment', $this->useXHTML, $this->useSSL), $this->select_payment_text, 'class=""');
with this
echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=cart&task=editpayment', $this->useXHTML, $this->useSSL), $this->select_payment_text, 'class=""');
In AceSEF Extensions: disable only extension com_virtuemart or use AceSEF basic router.
:D