Skip to main content

CPANEL-40314 - Round cube mass PHP deprecated warnings in PHP Error Log

Comments

25 comments

  • cPRex Jurassic Moderator
    Hey there! I couldn't reproduce this issue on a test system, although that machine didn't likely have much email or calendar activity. Would you be able to submit a ticket to our team so we can check this out? If you can get that ticket submitted, please post the number here so I can follow along and make sure this thread gets updated.
    0
  • The Old Man
    Hi @cPRex Thanks, no problem, but I thought I better check first and it looks like it stopped for some reason at 12:57 14/02/22. It started and began repeating at 09:19 14/02/22. I rarely use Roundcube either. Never the calendar. Is it still worth a ticket?
    0
  • cPRex Jurassic Moderator
    We can always check to see if there is any evidence of something odd, although if it's no longer happening I can't say for certain we'd find much. It never hurts to put in a ticket though if you want!
    0
  • speckados
    I've reopened tis post, because I've get same error (and others) with roundcube Server running latest version on WHM /CPANEL 102.0.8 on Centos 7 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356 [29-Mar-2022 09:33:50 Europe/Madrid] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356
    0
  • cPRex Jurassic Moderator
    @speckados - can you make a ticket so we can see an affected system? I'm still not able to reproduce this on a test machine when I tried just now.
    0
  • aUserName
    This is really, very straight forward. No need to even test an affected system. It is a PHP Deprecation notice and the problem is spelled out in the message. Still want to test it? Do this: Ensure WHM/cPanel version is 102. major version. Copy the file path from the error message posted and navigate to your Terminal in WHM. Open the php file in any text editor. Navigate to the line given in the message (line 356) and you will see a long string of code that uses the now Deprecated syntax the error is talking about. Why is this happening? Put simply, cPanel updated the PHP version that runs cpanel core services, and had not updated all of the existing PHP code to comply with new deprecation warnings. Deprecation doesn't mean "it's broken" just that in the future it may become broken. How do we fix this? 1.) Users of WHM/cPanel can effectively do nothing to fix it, just wait for an update. Alternatively, if you're comfy with PHP, and have the time to spare, you can edit the file and correct the minor syntax issue. 2.) WHM/cPanel devs need to update the 3rd-party app to address the deprecation issues. Which really means they should update PHPCS or whatever other CI checks they use to inform them of Deprecation notices and ensure those are sent to up-stream maintainers to be addressed before they push such updates. Does this break anything? No. Nothing is broken by these notices. Functionality remains the same. Performance impacts vary by system and I/O limits, but should not be noticeable from this notice being issued.
    0
  • cPRex Jurassic Moderator
    @aUserName - thanks for that - let me do some more testing on my end.
    0
  • cPRex Jurassic Moderator
    I actually see our developers have a case created for this just over the weekend - CPANEL-40314 - so we're on it!
    0
  • leandrokohler
    Hello, i've the same problem here. Is there any prevision from cPanel to launch a fix for this?
    0
  • cPRex Jurassic Moderator
    @leandrokohler - did you see my last post?
    0
  • Brinkley Hassebrock
    I'm having this too. Did you guys figure it out?
    0
  • cPRex Jurassic Moderator
    I don't have any updates on my end just yet, but the team is hoping to have this fixed in version 104.
    0
  • Kent Brockman
    Hello guys, still happenning... And the logs are adding up in every server...
    0
  • cPRex Jurassic Moderator
    @Kent Brockman - I'll be sure to post an update once I have one.
    0
  • digmlabs
    I am facing the same issue. Two logs generating every minute.
    0
  • cPRex Jurassic Moderator
    Let me reach out to the team and see where we're at with this issue. I'll report back soon!
    0
  • cPRex Jurassic Moderator
    I've spoken with the crew that handles Webmail and this issue is coming up at the planning meeting this week, so there should be some updates happening soon. I'll be sure to post as I hear more.
    0
  • Kent Brockman
    Dont forget to post updates of this issue. Thanks!
    0
  • digmlabs
    I've spoken with the crew that handles Webmail and this issue is coming up at the planning meeting this week, so there should be some updates happening soon. I'll be sure to post as I hear more.

    Thanks for the update. Looking forward.
    0
  • cPRex Jurassic Moderator
    I do see some developer action, but nothing super interesting to report just yet. I'll be sure to post updates as I get them.
    0
  • cPRex Jurassic Moderator
    Update - this is resolved in 102.0.20 once that is released!
    0
  • Brinkley Hassebrock
    I'm still getting this: PHP Deprecated: "Unparenthesized `a ? b : c ? d : e` is deprecated" in my installation for "/usr/local/cpanel/base/3rdparty/roundcube/plugins/carddav/carddav.php on line 356" in home/user/logs/.php.error.log and my Cpanel version is 106.0.9
    0
  • cPRex Jurassic Moderator
    @Brinkley Hassebrock - can you run the following command and let me know the output? rpm -qa | grep cpanel-round
    0
  • biovolt
    I have the same issue This sire response: cpanel-roundcubemail-1.6.0.10-1.cp110~el7.noarch cPanel Version: 110.0.7
    1
  • cPRex Jurassic Moderator
    @biovolt - you're still seeing the same error in version 110? The deprecation warnings were resolved in version 102, so can you let me know the exact text of the warning you're seeing?
    -1

Please sign in to leave a comment.