The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with repeated PHP errors in Apache error_log

Discussion in 'EasyApache' started by WebHostDog, Mar 20, 2007.

  1. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello how can I get rid of this repeated PHP Error and Warnings in Apache error_log like:



    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461
    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461
    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461
    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461
    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461
    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461
    [Tue Mar 20 01:51:52 2007] [error] PHP Notice: Undefined property: allowpingbacks in /home/cslepage/public_html/inc/MODEL/dataobjects/_dataobject.class.php on line 461




    Thanks,
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Realistically, you need to fix the script that' generating them.
     
  3. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello chirpy,
    There is 200 scripts like this that producing errors I cannot fix them all so I am looking for the right solution to supress the log process.



    Thanks.
     
  4. mohakevin

    mohakevin Well-Known Member

    Joined:
    Jan 19, 2005
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    You can disable the error logging in php.ini in your system. Check this.
    Besides, i think you can establish that don´t log php´s notices, and only log errors.

    Regards
     
  5. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    If the 200 scripts are the same file as _dataobject.class.php on line 461, you can write a script to correct the syntax in that file. If they are different files, you have two options either to fix the scripts one by one, or stop logging the error.
     
Loading...

Share This Page