VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kittmaster on May 10, 2016, 17:36:48 PM

Title: Problem in padding.php popup > Adding extra / to the link
Post by: kittmaster on May 10, 2016, 17:36:48 PM
I've traced a problem back to link generation. There seems to be an extra slash put into the link causing errors when clicked. I can't see any issues but appears to be with the class "continue_link".

I've attached images to show what is happening.

Does anyone know where the extra slash is being created from or where to look at the function that deals with this?

Thanks.
Title: Re: Problem in padding.php popup > Adding extra / to the link
Post by: kittmaster on May 10, 2016, 17:41:50 PM
I actually just traced it back to helpers/vmview.php.

It has an extra slash there, I removed it and it fixes the link.....not sure what else will break as a result.

Can helpers be overridden?

Chris
Title: Re: Problem in padding.php popup > Adding extra / to the link
Post by: kittmaster on May 10, 2016, 17:42:42 PM
Line 132 is where it is found
Title: Re: Problem in padding.php popup > Adding extra / to the link
Post by: GJC Web Design on May 10, 2016, 17:55:37 PM
helpers can't be over ridden

as others don't see this problem can u trace further back?

an ove ride in padding.php otherwise

try $the_link = str_replace('//index','/index', $the_link);
Title: Re: Problem in padding.php popup > Adding extra / to the link
Post by: kittmaster on May 10, 2016, 19:31:54 PM
I found the solution now, I'm still on 3.0.10 and the latest is 3.0.14. The dev already fixed it, so its my own issue it seems. I have a lot of overrides in place and hate to update because I've hardcoded changes in the search routine which is not implemented in the current version.

So ultimately I think I'm ok, but updating is something I'll have to do when I have more time going forward.

Thanks for the possible solution.

Chris