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!

SOLVED [CPANEL-27695] Failed to show template error400 in login theme

Discussion in 'General Discussion' started by bloatedstoat, May 31, 2019.

  1. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    150
    Likes Received:
    18
    Trophy Points:
    18
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    Anything to worry about? Is there a solution? Some of our logs are full of it.

    We're on CLOUDLINUX 6.10 v78.0.24.

    Thanks!

    Code:
    /usr/local/cpanel/logs/error_log:
    
    file error - templates/error400: not found at base/show_template.stor.pl line 133.
    
    Cpanel::Server::process_login_template(Cpanel::Server=HASH(0x305f2c0), "cpanel", "document", undef, "page_to_show", "error400", "cp_security_token", undef, ...) called at /usr/local/cpanel/Cpanel/Server.pm line 2075
    Cpanel::Server::process_and_send_login_template(Cpanel::Server=HASH(0x305f2c0), "error400", "HTTP/1.1 400 Bad Request\x{d}\x{a}Content-type: text/html; charset=\"u"..., HASH(0x3310f78)) called at cpsrvd.pl line 3294
    cpanel::cpsrvd::doerrorstatus(400, "Bad Request") called at cpsrvd.pl line 3144
    cpanel::cpsrvd::parse_request_headers() called at cpsrvd.pl line 1691
    cpanel::cpsrvd::receive_and_process_incoming_http_request() called at cpsrvd.pl line 1258
    cpanel::cpsrvd::handle_one_connection(6) called at cpsrvd.pl line 1081
    cpanel::cpsrvd::script() called at cpsrvd.pl line 413
    
    Failed to show template “error400” in login theme “cpanel” (); falling back to legacy login. at /usr/local/cpanel/Cpanel/Server.pm line 2079.
    
    Use of uninitialized value in subtraction (-) at /usr/local/cpanel/Cpanel/Server/Responders/Stream.pm line 44.
    
    file error - templates/error400: not found at base/show_template.stor.pl line 133.
    Cpanel::Server::process_login_template(Cpanel::Server=HASH(0x305f2c0), "cpanel", "host", "host.ourserver.com", "SERVER_PORT", 2087, "app_version", "11.78.0.24", ...) called at /usr/local/cpanel/Cpanel/Server.pm line 2075
    Cpanel::Server::process_and_send_login_template(Cpanel::Server=HASH(0x305f2c0), "error400", "HTTP/1.1 400 Bad Request\x{d}\x{a}Content-type: text/html; charset=\"u"..., HASH(0x3310f78)) called at cpsrvd.pl line 3294
    cpanel::cpsrvd::doerrorstatus(400, "Bad Request") called at cpsrvd.pl line 3144
    cpanel::cpsrvd::parse_request_headers() called at cpsrvd.pl line 1691
    cpanel::cpsrvd::receive_and_process_incoming_http_request() called at cpsrvd.pl line 1258
    cpanel::cpsrvd::handle_one_connection(6) called at cpsrvd.pl line 1081
    cpanel::cpsrvd::script() called at cpsrvd.pl line 413
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @bloatedstoat,

    Can you open a support ticket so we can take a closer look at your system and see why that error is occurring? You can post the ticket number here and we'll link this thread to it.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    150
    Likes Received:
    18
    Trophy Points:
    18
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    @cPanelMichael ,

    Support ticket request lodged with ID 12463431

    Thanks
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, internal case CPANEL-27695 was opened to report an issue where errors like the following are logged to /usr/local/cpanel/logs/error_log upon connection requests to port 2087 that cpsrvd is unable to interpret:

    Code:
    Failed to show template “error400” in login theme “cpanel” (); falling back to legacy login. at /usr/local/cpanel/Cpanel/Server.pm line 2079.
    Use of uninitialized value in subtraction (-) at /usr/local/cpanel/Cpanel/Server/Responders/Stream.pm line 44.
    file error - templates/error400: not found at base/show_template.stor.pl line 133.
    
    I'll monitor this case and update this thread with more information at it becomes available.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 cPanelMichael, Jun 3, 2019
    Last edited: Jun 11, 2019
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    This is fixed in cPanel & WHM version 80.0.15:

    Fixed case CPANEL-27695: Don't generate stacktraces in the error_log for bad requests.

    You can review the full change log on the link below:

    80 Change Log - Change Logs - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    bloatedstoat likes this.
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    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