VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: prokops on March 15, 2016, 11:23:50 AM

Title: VM 3.0.14 error message: Warning: strpos(): Offset not contained in string
Post by: prokops on March 15, 2016, 11:23:50 AM
Hi!

I just updated my test VM site with 3.0.14 and now I get the following error:

QuoteWarning: strpos(): Offset not contained in string in x:\Test\x.com\administrator\components\com_virtuemart\plugins\vmpsplugin.php on line 778

Can you advise how to amend this?

Cheers,
Title: Re: VM 3.0.14 error message: Warning: strpos(): Offset not contained in string
Post by: Milbo on March 15, 2016, 18:07:00 PM
strange, I really wonder how that happened.


if(strpos($t,'/',$t!==FALSE)){


Should be

if(strpos($t,'/')!==FALSE){
Title: Re: VM 3.0.14 error message: Warning: strpos(): Offset not contained in string
Post by: Mike J on April 09, 2016, 07:02:25 AM
I just got the same error with Joomla! 3.5.1 /VirtueMart 3.0.14 - Milbo's tweak fixed it!
Title: Re: VM 3.0.14 error message: Warning: strpos(): Offset not contained in string
Post by: chivitli on April 13, 2016, 09:20:53 AM
This bug is still present in the VM 3.0.16 pre-release.
Title: Re: VM 3.0.14 error message: Warning: strpos(): Offset not contained in string
Post by: Milbo on April 14, 2016, 08:38:32 AM
Damn