Elektrorl says it does not work with CCK multigroup. I see how using the User Reference in a CCK multigroup could break the module, but Elektrol, could you just confirm you're running latest -dev of Realname before I have a look at this ?

Comments

guillaumeduveau’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Category: bug » support

Sorry I can't reproduce the bug, I have no problems using it inside a CCK multigroup with a CCK Userreference (widget Realname) first and a CCK textfield then.

Could you test in a test content type with a field without multigroup ? And if it works, can you detail your CCK multigroup ?

elektrorl’s picture

hi, thanks for the reply.
No, i'm using 6.x-1.0-beta2 version. I'm going to test the last dev and test without multigroup. I'll keep you up to date.

elektrorl’s picture

I upgraded to dev version:

I have this error sometimes:
user warning: Table 'drup_migr.realname' doesn't exist query: SELECT n.realname, n.uid, u.name FROM realname n INNER JOIN users u ON n.uid = u.uid WHERE (n.realname LIKE '%mar%') AND (u.status = 1) ORDER BY n.realname ASC LIMIT 0,10 in /Applications/MAMP/htdocs/drup_migr/sites/all/modules/realname_userreference/realname_userreference.module on line 408.

I have to try with a simple field, a standard group and a new multigroup.

elektrorl’s picture

I reconfigure the options for the Realname and now it display the Realname, I don't understand why. I still have the error and the new problem is that the autocompletion for my CCK Userreference field does not work anymore, either with the short lohin name or withe the Realname.

guillaumeduveau’s picture

Are you using the -dev version of Realname module ? Did you run update.php ? If yes you should have a realname table in your database, can you check that ?

elektrorl’s picture

Yes I'm using the last dev et did the update.php as usual.
In my database I do not find the realname table in my PRIMARY TABLES. I checked inside users table too. There is a problem here.

For utilisation, of the module is it better to use the CORE module or the CONTENT PROFILE module. I'm confusing with this point. Thanks for your support.

guillaumeduveau’s picture

If you don't have the realname table, this widget can't work. Mayeb try to run again update.php and sleect the update 6102 for Realname. Carefull do everything on a test site before...

elektrorl’s picture

I did a reinstall, does not work. I will try the 6002 update…

guillaumeduveau’s picture

Disable Realname User Reference Widget and Realname, then disable and uninstall Realname, then reinstall Realname from my package so you will be able to rebuild the Realnames. You could install the -dev version as well but the fix to rebuild the realnames is not committed.

It doesn't matter if you use Core Profile or Content Profile. The only thing is that after that, you must have the realname table in your DB. Then only, install Realname User Reference Widget.

elektrorl’s picture

Si ça ne te dérange pas de continuer en français, parce que ça sera plus simple pour moi.
Au moment de l'update.php, on ne me propose que l'update de RealName (module 6101) mais pas du Widget. Pourtant j'ai bien pris la 6x-1.2. Je comprends plus rien.

guillaumeduveau’s picture

C'est normal, il n'y a pas d'update de mon module, c'est Realname qui doit exécuter l'update 6102 pour créer la table realname (pas 6002, je me suis trompé).

Si tu n'as pas l'update 6102 pour Realname, c'est que tu utilises Realname 6.x-1.2 et il faut la -dev ou mon package.

elektrorl’s picture

Ta solution avec ton "magic" package a bien marché, la table "realname" est en place dans phpmyadmin. J'ai reconstruit les noms. J'utilise le Core module, du coup. Et l'auto complétion marche bien, dans les views aussi. Donc je considère que c'est réglé.

Cependant, il me reste cette erreur récurrente: warning: file_get_contents(sites/all/modules/cck/theme/content-edit.js) [function.file-get-contents]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/drup_migr/includes/common.inc on line 2373.

Enfin bon, tu m'as bien sauvé la mise. Un grand merci pour ton support et ce widget était indispendable dans mon cas (refonte de site SPIP, j'avais pu importer tous les utilisateurs mais il n'pparaissait que le login). Quand j'ai le temps, je pense faire la traduc française du module Realname.

Je te laisse le soin de fermer ce sujet, juste au cas où t'aurais une idée évidente pour mon erreur de cck bizarre. Encore merci.

guillaumeduveau’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Content d'avoir pu t'aider ! Pour ton warning de CCK regarde du côté d'autres modules contrib qui touchent à CCK, car l'erreur fait référence à un fichier inexistant dans CCK, peut-être qu'il était présent dans une ancienne version : /sites/all/modules/cck/theme/content-edit.js

Marked a a duplicate of #479024: Reference to non-existent table