What causes this?

Discussion in 'PHP' started by schmidte, Mar 20, 2009.

  1. #1
    schmidte, Mar 20, 2009 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    The level of error-messages setting in you php.ini does that.

    You could stop if from happening by either editing your php.ini, or, if you are on some shared hosting, add the following lines to your header or index-file (depending on the setup on the site):
    error_reporting(0);

    The reason why this shows up is because a variable in the class-function is undefined - it's a notice error, and not critical, so the mentioned error_reporting-setting will turn off these warnings.
     
    PoPSiCLe, Mar 20, 2009 IP
  3. schmidte

    schmidte Peon

    Messages:
    345
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks PoPSiCLe, I found error_reporting(E_ALL); in the youtube.class.php file and switched it to error_reporting(0);....fixed it.
    ed
     
    schmidte, Mar 21, 2009 IP