Author Topic: Warning: stristr() [function.stristr]: Empty delimiter  (Read 5918 times)

jdl777

  • Beginner
  • *
  • Posts: 24
Warning: stristr() [function.stristr]: Empty delimiter
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28324
  • Always on vacation
    • Jenkin Hill Internet
Re: Warning: stristr() [function.stristr]: Empty delimiter
« Reply #1 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

jdl777

  • Beginner
  • *
  • Posts: 24
Re: Warning: stristr() [function.stristr]: Empty delimiter
« Reply #2 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.