Skip to main content

Turn off error logging for cPanel core PHP

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! Can you let us know what specific changes you've made that lead to the broken RPM notifications? That is likely the critical issue here.
    0
  • fokakmeny
    Hey there! Can you let us know what specific changes you've made that lead to the broken RPM notifications? That is likely the critical issue here.

    For this error as an example: PHP Warning: Use of undefined constant CURLAUTH_NEGOTIATE - assumed 'CURLAUTH_NEGOTIATE' (this will throw an Error in a future version of PHP) in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/vendor/mstilkerich/carddavclient/src/HttpClientAdapterGuzzle.php on line 106
    I modifed CURLAUTH_NEGOTIATE to CURLAUTH_GSSNEGOTIATE in line 106, the carddav works fine with this modification and error doesn't appear. But I believe I get the email notification for the file being modified regardless it's working or not. I don't remember other errors right now, when they appear again I will update the thread. However I remember one was about array index that wasn't quoted with "" or '' and assumed constant. I added quotes and the notice disappeared. The last one was about function waiting for Datetime object but received string instead. All these notices were related to roundCube itself or cardDav roundCube plugin. Best Regards
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. I'm guessing the answer from the team will be "these changes aren't supported" but I've reached out and I'll let you know what they have to say.
    0
  • cPRex Jurassic Moderator
    I talked to the team about this and they confirmed that we don't support those types of changes. If you'd like to see an option to disable the logging that part could make a good feature request. If you'd like to get that submitted I'll bring it up during next weeks' meeting.
    0
  • fokakmeny
    I talked to the team about this and they confirmed that we don't support those types of changes. If you'd like to see an option to disable the logging that part could make a good feature request. If you'd like to get that submitted I'll bring it up during next weeks' meeting.

    Thank you for your reply. I really appreciate that you'll bring my subject up. Turning off these logs will be feature, but I'd rather keeping it on it since I wouldn't notice these unless it was available. However, the most important thing is to change their saving path outside users accounts since it's directly related to cPanel core functions and user is already helpless regarding such functions. Best Regards
    0
  • cPRex Jurassic Moderator
    You're very welcome! If you get that feature request submitted I'll be sure to bring it up with the team.
    0
  • fokakmeny
    You're very welcome! If you get that feature request submitted I'll be sure to bring it up with the team.

    I appreciate your effort, thank you. I have submitted new feature request here:
    0
  • cPRex Jurassic Moderator
    I did see that request come in and I've got that approved. We'll talk about it next week and then go from there, but one of the product owners will comment on the case once there is a plan.
    0

Please sign in to leave a comment.