Roundcube Community Forum

Release Support => Pending Issues => Topic started by: EndUser on August 10, 2022, 05:21:03 PM

Title: Upgrade Fail - 1.4.10 to 1.6.0
Post by: EndUser on August 10, 2022, 05:21:03 PM
Currently running 1.4.10 and everything was fine until my email host eliminated TLS 1.0 and 1.1. Also changing the default SMTP port from 587 to 465. Since then, I can no longer send email. I can log in and read email, I just can't send.

I checked my config file and changed the port for SMTP, but that didn't help. At this point I suspected that 1.4.10 simply doesn't support TSL 1.2 and higher, so I downloaded 1.6.0 and attempted an upgrade (which I've done many times with no issue).

Download, extraction, backup of my site and database all fine... but when I run the "installto" script, I get an error:

[linux_host][/home/webmail.tmp]$ ./bin/installto.sh ../webmail/
Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected ':' in <b>/home/webmail.tmp/bin/installto.sh</b> on line <b>55</b><br />

I don't see there is an unexpected ':' on line 55, but as a  test, I commented out line 55 and make a static parameter definition of "y" and it got passed it and generated another syntax error on a later line. I suspect these is another problem causing the syntax errors in the script and I wasn't getting anywhere by working around them.

I couldn't find anything on upgrades directly from 1.4.10 to 1.6.0, so I don't know if there may be interim upgrade versions required.

Any thoughts?

Thanks.
Title: Re: Upgrade Fail - 1.4.10 to 1.6.0
Post by: alec on August 11, 2022, 08:17:54 AM
You're using some ancient PHP version. Roundcube 1.6.0 requires PHP 7.3.
Title: Re: Upgrade Fail - 1.4.10 to 1.6.0
Post by: EndUser on August 12, 2022, 11:30:56 AM
Currently using PHP 7.4. I can upgrade to 8.0 if that's not sufficient.
Title: Re: Upgrade Fail - 1.4.10 to 1.6.0
Post by: JohnDoh on August 14, 2022, 02:50:19 AM
webserver and cli versions of php can be different. check the cli version you are running. the ternary operator was added in PHP 5.3
Title: Re: Upgrade Fail - 1.4.10 to 1.6.0
Post by: EndUser on August 15, 2022, 04:56:16 PM
Thanks for responding JohnDoe.

Good catch... this does happen to be the case with my hosting provider. The CLI binary is symbolic linked to an ancient PHP version (4.4.9). I don't know why they are linking "php" to a binary that old as they have binaries up to 8.1 available. Unfortunately, I can't change the link as it is in a shared area (/usr/bin) and I don't have permissions. I'm not using a dedicated host. I've asked the hosting vendor to change the link to 7.4. We'll see if they do/can.

In the meantime, is it a safe assumption that Roundcube 1.4.10 can't be made to support TLS 1.2+?
Title: Re: Upgrade Fail - 1.4.10 to 1.6.0
Post by: EndUser on August 15, 2022, 04:58:17 PM
As an added thought, I'm a little surprised the installto.sh script doesn't do a quick PHP -v check to have a clean error report rather than just randomly crashing with a syntax error. The script checks a huge number of other things, so adding one more for PHP version seems simple enough.
Title: Re: Upgrade Fail - 1.4.10 to 1.6.0
Post by: EndUser on August 16, 2022, 03:05:23 PM
Quote from: EndUser on August 15, 2022, 04:56:16 PM
In the meantime, is it a safe assumption that Roundcube 1.4.10 can't be made to support TLS 1.2+?
I'll answer this myself... 1.4.10 does support TLS 1.2+.

This thread helped shed some light on the STARTTLS config file entry... https://www.roundcubeforum.net/index.php/topic,29923.0.html

So adding TLS:// to the SMTP entry fixed my problem. I still need to figure out the PHP linking issue, but at least my webmail instance can send and receive email.

Thanks for the suggestions all.