Plugin Development: Fatal Error

Discussion in 'WordPress' started by stephan2307, Oct 15, 2010.

  1. #1
    Hi,

    I am just developing a plugin. Upon activation I am getting a Fatal Error message. How can I figure out what that Fatal error is?
     
    stephan2307, Oct 15, 2010 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #2
    If you are developing a plug in, shouldn't you know more about that than us? Can't you see what the error say's and fix the problem?
    How are you coding a plug in, but don't know how to figure out how to make it work?

    I suggest you read the codex:
    http://codex.wordpress.org/Writing_a_Plugin
     
    hmansfield, Oct 15, 2010 IP
  3. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #3
    This is my first plugin I am making. And no I can't see what the error says otherwise I would be able to fix it.

    Not everyone is as smart as you
     
    stephan2307, Oct 15, 2010 IP
  4. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Well then let me bring you up to speed. If you don't know what the error is, then neither do we. There are 1000's of possibilities and there is no way that we can guess which one applies to your error. Normally they have a message, or number to the error.

    You need to go back to basics and make sure that you have done all that you need to , to make it compatible with the latest version of wordpress. The error is obviously in the coding somewhere.

    Also try to run it alone, without anything else running, to rule out incompatibilities with other plug ins.
    Bottom line is, "I have an error message, how do I fix it?" is not enough information for anyone to help you.

    A good start would be to at least show your work so that anyone with knowledge can hopefully see what mistakes you are making that could be causing the error.
     
    hmansfield, Oct 15, 2010 IP
  5. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #5
    Well all I got was the Fatal Error message , no file or line details as you do normally. I tried to do the usual echoing debug text and exiting the script but that wasn't working either. For some reason the exit statement gets completely ignored. So how can I get more details if it doesn't give me details?
     
    stephan2307, Oct 15, 2010 IP
  6. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #6
    No worries mate. Sorted it. :p
     
    stephan2307, Oct 15, 2010 IP
  7. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #7
    I don't know enough to help you, but I do know that if you want someone else to, you are going to have to show them what you are talking about. No one can guess where you made programming or incompatibility errors without seeing the work.

    If you are asking if there is some script where you can input the code and it will just tell you what's wrong...I don't think so.
     
    hmansfield, Oct 15, 2010 IP
  8. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #8
    Good for you.
    You could help others by explaining what the problem was and how you fixed it because we still don't know what you were talking about.
     
    hmansfield, Oct 15, 2010 IP
  9. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #9
    I missed a ; :(
     
    stephan2307, Oct 15, 2010 IP
  10. djarotstudio

    djarotstudio Member

    Messages:
    200
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #10
    Error messages always tell you where the error part is.
    next time you ran into the same problem and decided to ask it out - paste the error message. That should gave others a hint or two of what might goes wrong.

    Congrats on sorting it out.
     
    djarotstudio, Oct 19, 2010 IP