Results 1 to 7 of 7
  1. #1
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    25
    Plugin Contributions
    0

    Default Warning: mb_strstr()

    i don't know what the definition of a bug is, but i have a big problem...

    Yesterday I posted the following on another thread:

    Today, I was uploading images and thought I understood the protocol but perhaps I should have been using some underscores where I hadn't. anyway, somewhere in all of this, i suddenly generated:

    Warning: mb_strstr()

    on http://www.animalvegetablemineral.net.au/shop/
    i then deleted all of the photos uploaded - no luck
    i then deleted all of the images files i had played with - no luck
    i then uploaded my back up images file - no luck

    i then, based on the error messages i was getting in both /shop/admin and the live shop, uploaded backups of my includes/functions files and my admin files - no luck

    so, i have since, downloaded a new version of zen cart
    http://www.animalvegetablemineral.net.au/order/ to see if i could identify what was wrong, and as you can see, this version also has a problem.

    can anybody help?


    I received the following response from chuckle:
    quote
    It is bug in PHP 5.2 to do with mb_str multibyte functions, allegedly fixed, but maybe not on your server?

    A suggested fix is to add
    php_flag mbstring.func_overload 0
    to you .htaccess file.

    unquote

    the saga continues however, over night i deleted all the sql database from my cpanel. this morning i downloaded a new zen cart and then was able to ftp my custom folders over and all was looking good again.

    BUT now, the same error messages are back this afternoon!!!

    I am using zencart 1.3.7 the PHP on my cpanel is 5.2 and i personally am on an ibook (mac) connecting through the i'net on adsl broadband.

    if anyone can explain (and preferrably in plain english as i am green) what i need to do to fix this problem i would appreciate it very much

  2. #2
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    25
    Plugin Contributions
    0

    Default Re: Warning: mb_strstr()

    more information of what i have done to try and resolve

    per the tutorial posting on Warning: Headers already sent...

    i have checked the syntax error and have got:

    Warning: Cannot modify header information - headers already sent by (output started at /home/animalve/public_html/zencart/admin/includes/init_includes/init_file_db_names.php:20) in /home/animalve/public_html/zencart/admin/includes/init_includes/init_templates.php on line 36


    /admin/includes/init_includes/init_file_db_names.php line 20 is

    $request_type = (strtolower($_SERVER['HTTPS']) == 'on' || $_SERVER['HTTPS'] == '1' || strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_BY']),'SSL') || strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']),'SSL')) ? 'SSL' : 'NONSSL';
    (// set the type of request (secure or not))

    I have not installed SSL certificate to date as I am not collecting credit card details.

    I have no idea why this is an issue all of a sudden.

    I have also checked zencart/admin/includes/init_includes/init_templates.php on line 36 and deleted any spaces between the last code and the ?>

    the URL i am now using is animalvegetablemineral.net.au/zencart
    Last edited by kmh; 23 May 2007 at 08:10 AM. Reason: forgot to quote url

  3. #3
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    25
    Plugin Contributions
    0

    Default Re: Warning: mb_strstr()

    in case anyone ever experiences this, it was resolved by:
    recognising that the php issue came from SSL look up (as per my previous)
    I had not installed SSL as I was not collecting ccard info

    however the credit card info under admin/configuration said i accepted visa and m/card (have changed that) and under admin/modules/payment i disabled any credit card options.

    voila - it was working again. I don't understand why this happened now and not 3 weeks ago, but there you go. it appears to have been a problem.

    why - i have no idea.

  4. #4
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    25
    Plugin Contributions
    0

    Default Re: Warning: mb_strstr()

    cannot believe it, but the problem has reappeared overnight!
    it seems to have something to do with the product listing and css interaction but i have no idea really. it happens on some subcategories and not others...
    i have no idea what to do.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Warning: mb_strstr()

    Something intermittent like that is likely a problem on your server.
    You should be reporting the problem to your hosting company.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    25
    Plugin Contributions
    0

    Default Re: Warning: mb_strstr()

    thank you SOOOOOOO much for responding

    it has gone again (several hours later) although i did go through all of my items and ensure that they had a model number, and then went through all of my categories and made sure they all had product types assigned to them.

    re hosting co. do i just send them the error message or something else?

    thanks again,
    k

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Warning: mb_strstr()

    This may have become a problem because your host is trying to upgrade their servers to PHP 5.2 (I don't know that, I'm speculating). It may go away because they have problems and back it out. It may go away because they try again.

    We can't advise you how best to approach your ISP, that's between you and them. But when you do contact them, I'd tell them about the warning message - a known bug in PHP 5.2 and explain to them the actions that you have already taken to implement Chuckl's recommended workaround, and how it didn't work in your hosted environment and ask what solutions or workarounds they would recommend or are planning.

    I wouldn't complicate the conversation by getting into the headers already sent message, that's almost certainly a consequence of the earlier warning, which is the real problem to be resolved.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Replies: 10
    Last Post: 31 Oct 2015, 08:09 PM
  2. Replies: 8
    Last Post: 19 Sep 2012, 03:37 AM
  3. Replies: 1
    Last Post: 10 Dec 2010, 09:48 PM
  4. Replies: 1
    Last Post: 12 Dec 2008, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg