Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    15
    Plugin Contributions
    0

    Default Warnig message ...help please

    Hi, i keep getting this warning when i try go to Categories / Products.

    Warning: mb_strstr() [function.mb-strstr]: Empty haystack in /home/mysite/public_html/admin/includes/init_includes/init_file_db_names.php on line 20

    Warning: mb_strstr() [function.mb-strstr]: Empty haystack in /home/mysite/public_html/admin/includes/init_includes/init_file_db_names.php on line 20

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/admin/includes/init_includes/init_file_db_names.php:20) in /home/mysite/public_html/includes/functions/sessions.php on line 108

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

    The warnings don't show everytime but are showing more regular.

    Any ideas?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Warnig message ...help please

    Is this a stock install or what mods have you installed?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Warnig message ...help please

    the site has been up and running fo ra while ..BUT from what i can remember
    it has the how did you hear about us 1.3.7 mod and i have recently tried using the define pages generator . And also i have Nochex setup as a payment option .

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Warnig message ...help please

    Try using the developers tool kit and search for mb_strstr() to find the file this is in...

    I checked a stock install and got no hits and why I asked what mods you had
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Warnig message ...help please

    tried dev toolkit .......
    it found nothing

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Warnig message ...help please

    did you enter in last/bottom left box and select all files catalog & admin?
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jul 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Warnig message ...help please

    Quote Originally Posted by JayNT View Post
    Hi, i keep getting this warning when i try go to Categories / Products.

    Warning: mb_strstr() [function.mb-strstr]: Empty haystack in /home/mysite/public_html/admin/includes/init_includes/init_file_db_names.php on line 20

    Warning: mb_strstr() [function.mb-strstr]: Empty haystack in /home/mysite/public_html/admin/includes/init_includes/init_file_db_names.php on line 20

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/admin/includes/init_includes/init_file_db_names.php:20) in /home/mysite/public_html/includes/functions/sessions.php on line 108

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

    The warnings don't show everytime but are showing more regular.

    Any ideas?


    This warning is now showing when i try and log into zen cart?

    Help !!

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Warnig message ...help please

    Determine what mod added mb_strstr if this was a mod and back it out
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Apr 2007
    Location
    Manchester, NH
    Posts
    52
    Plugin Contributions
    0

    Default Re: Warnig message ...help please

    I know this is old but I am seeing it today, and have 2 cents to add.

    mb_strstr isn't called by anyone, it's an internal function to strstr.

    In this admin/includes/init_includes/init_file_db_names.php file line 20, the $_SERVER['HTTPS'] and $_SERVER['HTTP_X_FORWARDED_BY'] are empty, hence the haystack is empty to the internal strstr function mb_strstr.

    $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';



    This is a mis-configuration on the hosting side that is not passing these two variables.

 

 

Similar Threads

  1. Warning message on checkout - please help
    By lightup in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 9 Sep 2011, 05:12 AM
  2. Help Please!!!.....Warning Message
    By atjhza in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 12 Dec 2007, 08:48 PM
  3. Warning Message, please help me
    By naturesi in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 4 Sep 2007, 10:06 PM
  4. dual pricing warnig message: error
    By blainbci in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 9 Feb 2007, 02:43 PM

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