Php Error, Help Greatly Appreciated

Discussion in 'PHP' started by theblurr5495, May 17, 2010.

  1. #1
    I made some edits to my php and I got this error message:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bonus_header' was given in /home3/thecomq3/public_html/wp-includes/plugin.php on line 339

    The website still shows normally, only the message shows.

    Can anyone look at my Php?
     
    theblurr5495, May 17, 2010 IP
  2. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #2
    I hope you remove the function or not yet assigned the function named add_action()
     
    roopajyothi, May 17, 2010 IP
  3. theblurr5495

    theblurr5495 Active Member

    Messages:
    436
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    What do you mean, the function points somewhere.
     
    theblurr5495, May 19, 2010 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    the function add_action() is not yet initialized in the page.. meaning the function is not yet included.
     
    bartolay13, May 19, 2010 IP
  5. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #5
    this is self-explanatory warning, this is either you ignore this by placing "@" besides the function calling this line or fix the first argument of this function,
    this callback is showing because the first parameter AGAIN is not initialized in the page, thus, the call_user_func_array() doesnt recognize your user defined function
     
    bartolay13, May 19, 2010 IP
  6. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #6
    See the OP'S the page it will give the error as

    URL: http://completesoccerguide.com/wp-content/themes/thesis_17/custom/custom_functions.php
     
    roopajyothi, May 20, 2010 IP
  7. theblurr5495

    theblurr5495 Active Member

    Messages:
    436
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #7
    So if I correct that error will the other once be fixed? And how do I go about fixing that error?
     
    theblurr5495, May 20, 2010 IP