-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contacts no longer being displayed #6744
Comments
Try with disabled all plugins. What PHP version? Could you show lines 530-550 in rcube_vcard? |
php 7.3.5 Disabling all plugins didn't remove problem. Relevant code is as follows:
|
I cannot reproduce with PHP 7.3.5. I thought it's #6398, but it actually was a different warning. Could you check if it works when you replace |
Looks like that fixed it! Tnx! |
Need to be fix upstream ;) Reopened. |
I'm trying to reproduce, but with no luck. It may be a PHP bug. What platform are you using? What php package version precisely? Could you provide output of |
…6744) Looks like \R is not allowed in character class, but \r\n is fine. On PHP 7.3.5 it throws warnings and empty result from preg_replace(), though I couldn't reproduce.
…6744) Looks like \R is not allowed in character class, but \r\n is fine. On PHP 7.3.5 it throws warnings and empty result from preg_replace(), though I couldn't reproduce.
Looks like indeed \R is not allowed in character class. Fixed. |
As I wrote above:
|
For posterity, I tested with PHP 7.3.5 on Ubuntu.
|
I have the same issue and above regex change fixed it too. Archlinux php 7.3.5, roundcube 1.3.9 |
Just tried altering the regexp on Arch with PHP 7.3.6 roundcube 1.3.9 and it's still broken for me. Can anyone else confirm this? |
It's you. Works for me with those exact package numbers. |
OK, it's almost certainly me being stupid:) I edited the function, as shown below, then for good measure rebooted the server. What am I doing wrong? Roundcube is in: `$vcard = preg_replace(array(
|
I didn't have to touch the load function. I had to touch the cleanup function. This is how it reads:
|
Thanks. Still doesn't work for me. I'll try archiving my current installation and re-install from scratch. |
@ianbarton the fix worked for me too.. so it must be something wrong somewhere in your settings. Arch linux - PHP 7.3.6 - Roundcube 1.3.9 |
Thanks all. I have just installed the fix on my backup server and works. So there must be something on my main server that is causing the problem. |
Make sure you have not disabled autocomplete in config files. Normally when something doesnt work we try to alter settings and when fix is found - we completely forget to revert the settings to normal. (human tendency) |
Finally solved this, but not sure what caused the problem. Tried exporting my contacts to as vcard and they were all blank. Ran mysqlcheck which didn't report any problems. Browsed the contacts table with phpmyadmin and I could see all my contact data. If I tried adding back an existing contact using Roundcube, I got a warning about it already existing as I expected. Finally deleted all my contacts using Roundcube and then added them back. All now working correctly.. Probably an attack by the gremlins. |
Hi @ all, I had the same problem on Debian with php 7.3 from sury.org (#6864).
Thank you. |
Can confirm issue on Archlinux with RC 1.3.9 and PHP 7.3.7. Tweaking |
It seems the issue is only visible when running PCRE2 10.33, but when downgrading to 10.32 it works: https://forum.directadmin.com/showthread.php?t=58745 |
I'm not sure when or how it broke, but the Contacts in my roundcube installation are no longer working:
When I compose a new message, and start to type a contact's name in order to invoke auto-complete of their email address, it no longer auto-completes.![Screenshot_2019-05-09_18-49-42](https://user-images.githubusercontent.com/507237/57491578-72968b00-728b-11e9-8a70-47f22ac4b82b.png)
When I look in my Contacts, my contacts are listed. But the entries contain no data.
![Screenshot_2019-05-09_18-50-33](https://user-images.githubusercontent.com/507237/57491617-90fc8680-728b-11e9-96fb-17f30d694f59.png)
Both of these pieces of functionality were definitely working until fairly recently.
The only clue I'm seeing as to what might be wrong is messages like the following in the roundcubemail/errors log file:
[09-May-2019 22:34:32 UTC] PHP Warning: preg_replace(): Compilation failed: escape sequence is invalid in character class at offset 8 in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_vcard.php on line 547
I'm on Arch Linux, running the following versions of roundcube and plugins:
roundcubemail 1.3.9-1
roundcubemail-plugin-chbox 0.2.4-2
roundcubemail-plugin-contextmenu 2.3-1
roundcubemail-plugin-jquery-mobile 1.1-1
roundcubemail-plugin-keyboard-shortcuts-ng 0.9.4-1
roundcubemail-plugin-markasjunk2 1.11.1-1
roundcubemail-plugin-mobile 0.4.8-1
Any idea what the issue might be, and how to fix?
The text was updated successfully, but these errors were encountered: