A PHP Error was encountered

Discussion in 'PHP' started by ToP_Designer, Nov 6, 2008.

  1. #1
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter'
    
    Filename: libraries/Output.php
    
    Line Number: 202
    
    Code (markup):
    sometimes it shows and sometimes is vanishes.....
    i hope someone can help

    if not
    ..... i remember there was a trick to make this error silent :rolleyes:

    maybe using # :confused:

    looking forward
     
    ToP_Designer, Nov 6, 2008 IP
  2. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could put "php_flag display_errors off" in a .htaccess file, or place "error_reporting(0);" in the PHP script, on the first line or where you want it to hide errors.

    How often does the error come up? Maybe diagnosing it would be better than hiding from it!
     
    diligenthost, Nov 6, 2008 IP
  3. ToP_Designer

    ToP_Designer Peon

    Messages:
    496
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    50 -50 :rolleyes:

    also your code didn't worked :eek:
     
    ToP_Designer, Nov 6, 2008 IP
  4. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Either one of them? Try this in an .htaccess then
    If that doesn't work, try:
    If that doesn't work, your host might have disabled the changing of these functions. You could ask them if they can give you a custom php.ini with error reporting disabled.
     
    diligenthost, Nov 6, 2008 IP