Forums

lighty
lighty
Offline
Resolved
0 votes
Hi Since today and the new update of lets encrypt : app-lets-encrypt-core-1.10.8-1.v7 app-lets-encrypt-1.10.8-1.v7 we have now a blank page in Webconfig (security/letsencrypt) :. Seems this is a syntax error in /usr/clearos/apps/lets_encrypt/libraries/Lets_Encrypt.php PHP Parse error: syntax error, unexpected ''--max-log-backups'' (T_CONSTANT_ENCAPSED_STRING) in /usr/clearos/apps/lets_encrypt/libraries/Lets_Encrypt.php on line 255
Any one got a quick fix, sure i could test because seems it's '' or "" missing but i don't want to break more things.
Thanks
BR Vince
Wednesday, January 27 2021, 06:45 PM
Share this post:
Responses (2)
  • Accepted Answer

    Wednesday, January 27 2021, 09:03 PM - #Permalink
    Resolved
    0 votes
    I've deleted your other post - new posters ave their first couple of posts moderated so they don't appear immediately.
    Thanks for the report. It was my fault and I have responded to your ticket.

    For anyone else bumping into this, on line 255 of /usr/clearos/apps/lets_encrypt/libraries/Lets_Encrypt.php, please change:
    $shell->execute(self::COMMAND_CERTBOT, 'delete --cert-name ' . $name ' --max-log-backups ' . $this->max_logs, TRUE);

    to:
    $shell->execute(self::COMMAND_CERTBOT, 'delete --cert-name ' . $name . ' --max-log-backups ' . $this->max_logs, TRUE);

    Then refresh the page.

    I've just released 1.10.10 with a fix, but it may take up to a couple of hours to sync. Once it is in the mirror that your system uses, you will be able to update to it just with:
    yum clean all && yum update app-lets-encrypt
    It has already sync'd to the New York and San Francisco mirrors.

    [edit]
    Posts crossed.
    Also I've tidied up the repeat posts.
    [/edit]
    The reply is currently minimized Show
  • Accepted Answer

    lighty
    lighty
    Offline
    Wednesday, January 27 2021, 08:59 PM - #Permalink
    Resolved
    0 votes
    Solved !
    If you want to fix it your self today,. on line 255 of /usr/clearos/apps/lets_encrypt/libraries/Lets_Encrypt.php, please change:

    $shell->execute(self::COMMAND_CERTBOT, 'delete --cert-name ' . $name ' --max-log-backups ' . $this->max_logs, TRUE);

    to

    $shell->execute(self::COMMAND_CERTBOT, 'delete --cert-name ' . $name . ' --max-log-backups ' . $this->max_logs, TRUE);
    The reply is currently minimized Show
Your Reply