Roundcube Internal server error

Started by mihan, October 19, 2021, 09:44:50 AM

Previous topic - Next topic

mihan

Hi,

as of today the Roundcube is not working on multiple CWP servers.
Here is the error log from /usr/local/cwpsrv/var/services/roundcube/logs/errors.log


[19-Oct-2021 09:33:55 UTC] PHP Fatal error:  Uncaught Error: Class 'Spoofchecker' not found in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_spoofchecker.php:50
Stack trace:
#0 /usr/local/cwpsrv/var/services/roundcube/program/actions/mail/index.php(1400): rcube_spoofchecker::check('guest.domain.com')
#1 /usr/local/cwpsrv/var/services/roundcube/program/actions/mail/index.php(523): rcmail_action_mail_index::address_string('"Name Surname...', 3, false, NULL, NULL)
#2 /usr/local/cwpsrv/var/services/roundcube/program/actions/mail/list.php(123): rcmail_action_mail_index::js_message_list(Array, false, Array)
#3 /usr/local/cwpsrv/var/services/roundcube/program/include/rcmail.php(275): rcmail_action_mail_list->run(Array)
#4 /usr/local/cwpsrv/var/services/roundcube/index.php(283): rcmail->action_handler()
#5 {main}
  thrown in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_spoofchecker.php on line 50


It looks like that php intl extension is now required, but it's not included in cwpphp (ver 7.2.30)
Link: https://githubmemory.com/repo/roundcube/roundcubemail/issues/8127



bitpt


mihan

#2
I've just received the fix from the CWP team...

Basically it's a downgrade of RoundCube from 1.5 to 1.4.11

Just run the following...

/scripts/update_cwp
/scripts/mail_roundcube_update


bytecanarias

Thank you very much for solving my problem for now.

nyviktor

Quote from: mihan on October 19, 2021, 11:16:24 AM

I've just received the fix from the CWP team...

Basically it's a downgrade of RoundCube from 1.5 to 1.4.11

Just run the following...

/scripts/update_cwp
/scripts/mail_roundcube_update


I run update script, but now I have problem with contact photo size...

mihan

Quote from: nyviktor on October 19, 2021, 12:19:42 PM
Quote from: mihan on October 19, 2021, 11:16:24 AM

I've just received the fix from the CWP team...

Basically it's a downgrade of RoundCube from 1.5 to 1.4.11

Just run the following...

/scripts/update_cwp
/scripts/mail_roundcube_update


I run update script, but now I have problem with contact photo size...

I think that this is something you will have to ask/search on RoundCube forum(s).

cestay

Quote from: nyviktor on October 19, 2021, 12:19:42 PM
Quote from: mihan on October 19, 2021, 11:16:24 AM

I've just received the fix from the CWP team...

Basically it's a downgrade of RoundCube from 1.5 to 1.4.11

Just run the following...

/scripts/update_cwp
/scripts/mail_roundcube_update


I run update script, but now I have problem with contact photo size...



222 / 5000


This is an Elastic skin problem, I added the following line in

/usr/local/cwpsrv/var/services/roundcube/skins/elastic/styles/styles.min.css

.short-header {
display: none! important;
}

And I hid the default image.

nyviktor

Quote from: mihan on October 19, 2021, 01:06:40 PM
Quote from: nyviktor on October 19, 2021, 12:19:42 PM
Quote from: mihan on October 19, 2021, 11:16:24 AM
I've just received the fix from the CWP team...

Basically it's a downgrade of RoundCube from 1.5 to 1.4.11

Just run the following...

/scripts/update_cwp
/scripts/mail_roundcube_update


I run update script, but now I have problem with contact photo size...

I think that this is something you will have to ask/search on RoundCube forum(s).

Okay, thanks. I just wrote that, the current cwp roundcube pack is not completly good in this: http://static.cdn-cwp.com/files/mail/roundcubemail-$url-complete.tar.gz

nyviktor

Quote from: cestay on October 19, 2021, 02:23:17 PM
Quote from: nyviktor on October 19, 2021, 12:19:42 PM
Quote from: mihan on October 19, 2021, 11:16:24 AM
I've just received the fix from the CWP team...

Basically it's a downgrade of RoundCube from 1.5 to 1.4.11

Just run the following...

/scripts/update_cwp
/scripts/mail_roundcube_update


I run update script, but now I have problem with contact photo size...



222 / 5000


This is an Elastic skin problem, I added the following line in

/usr/local/cwpsrv/var/services/roundcube/skins/elastic/styles/styles.min.css

.short-header {
display: none! important;
}

And I hid the default image.

Thanks your solution.

Namaste

I just logged into admin and tried to use roundcube.   Inbox resulted in internal server error.
Listen to everything Pixelpadre says.

Namaste

Quote from: Namaste on October 30, 2021, 12:39:11 AM
I just logged into admin and tried to use roundcube.   Inbox resulted in internal server error.

Upgrade as mentioned above will rollback v1.5 to v1.4.11 and will fix it.
Listen to everything Pixelpadre says.

David

I have the same problem with elastic skin of the big pic occupying all the space available in the email panel, I tried to change the css files and nothing good happened, finally I simply changed the svg image size to 50x50px and that did the trick, for the moment at least

Uploading an image for the contact will show the image just as big as originally imported.

Many months passed by since people begun to notice these roundcube errors, seems that it is still the same, 1.4, big image, and probably other errors.

One that s not minor that I found out on my server is that using elastic skin when I reply or wrtie a new email, despite having settled the configuration to always use HTML, the editor's tools to format the text do not appear nowhere, also the emoticons do not appear (I enable the emoticons plugin).

I have no idea about how to solve this one...

David

The problem of the inbox not working is fast solved with the cwp and cwp roundcube update fix as suggested by CWP.

I have two servers with CWP, the older one had all of these problems with roundcube, the newer one not, comparing the two, for what is concerning the big contact photo and the absence of the HTML rich editor when composing emails I could find out what was fixed in the newer and replicate a similar environment in the older.

Very simply in the elastic skin folder the files that are listed here below do conflict(?) with others and the result is a botched GUI.

I have no idea of why and which file does what wrong, however renaming or deleting those files do the trick.

The files are:

dark.less
embed.min.css
print.min.css
styles.min.css

So far now seems all ok.
Ty