Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    153
    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:
    153
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice