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.

PHP plugin/module debugging

Discussion in 'cPanel Developers' started by ashworth102680, Sep 15, 2015.

  1. ashworth102680

    ashworth102680 Active Member

    Joined:
    May 3, 2007
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    I'm building a plugin that I have a new idea for, and it'll be in PHP. I have basic PHP outputting in WHM right now, and it will run as root. I can see basic output, but if my larger application has a scripting error, I cannot visibly "see" the errors.

    I've tried the following, but no luck. Does this PHP run under a separate special PHP version with a different ini file or something? No idea how I'm actually supposed to debug this thing when it won't output errors when I want them to.

    error_reporting
    ini_set - display_errors


    Thanks for your help!
     
  2. ashworth102680

    ashworth102680 Active Member

    Joined:
    May 3, 2007
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    To further summarize, all I get when there's an error is a blank white page. No actual PHP errors output to the page (ever), which makes it difficult to debug and test the application.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page