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


  • Beginner
  • *
  • Posts: 24
Warning: stristr() [function.stristr]: Empty delimiter
« on: March 20, 2010, 16:46:17 pm »

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


  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28602
  • 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.

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.22 10858  J 3.10.11 PHP 8.0.27


  • 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:

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.