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: jdl777 on March 20, 2010, 16:46:17 pm

Title: Warning: stristr() [function.stristr]: Empty delimiter
Post by: jdl777 on March 20, 2010, 16:46:17 pm
Hello...

After installing the view cart mod, to show the cart on the right side of every page, I now get the following error in my cart and on every store page:

Warning: stristr() [function.stristr]: Empty delimiter in /home/duvitage/public_html/administrator/components/com_virtuemart/classes/ps_session.php on line 597


And here is what is on Line 597:

$url = (stristr($text, SECUREURL) ? SECUREURL : URL) . substr($url, $url[0] == '/' ? 1 : 0);

Any help would be appreciated.

Should I have my php warnings turned off?

Thanks, JD
Title: Re: Warning: stristr() [function.stristr]: Empty delimiter
Post by: jenkinhill on March 20, 2010, 17:38:37 pm
Turn down PHP error reporting level would have been the solution found from a forum search.

http://forum.virtuemart.net/index.php?topic=67783.0
Title: Re: Warning: stristr() [function.stristr]: Empty delimiter
Post by: jdl777 on March 20, 2010, 17:48:06 pm
Actually, I found a better solution that worked:

http://forum.virtuemart.net/index.php?topic=28959.0

I had already seen that thread and did a search of the forum. However I wanted to find an actual solution rather than just turning off the warning.

Thanks for the quick reply.