Hi when a user (for example me) on my website goes to there My account page and puts in a password for roundcube to use and presses submit at the bottom of the page drupal gives a pop up window with the title "Confirm Password Change" a message "Please confirm which user you are changing the password for" and a list box with two options "<>" and "admin". Which ever of these 2 options I chose the result is the same I get a message saying that changes where saved successfully. But when I go to click on roundcube it gives me an error saying that "Login failed". I have had a look in the Administrator > logs section and the following error is present there:
Details
Type gallery
Date Thursday, 26 July 2007 - 11:43am
User admin
Location http://www.livisoc.org/drupal/index.php?q=user/1/edit
Referrer http://www.livisoc.org/drupal/index.php?q=user/1/edit
Message Error updating Gallery user
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 357 (gallerycoreapi::error)
* in modules/core/classes/GalleryStorage.class at line 309 (gallerystorageextras::saveentity)
* in modules/core/classes/GalleryEntity.class at line 294 (mysqlstorage::saveentity)
* in modules/core/classes/GalleryUser.class at line 204 (galleryentity::save)
* in modules/core/classes/GalleryEmbed.class at line 385 (galleryuser::save)
* in /home/livisoc/public_html/drupal/modules/gallery/gallery_user.inc at line 140 (galleryembed::updateuser)
* in /home/livisoc/public_html/drupal/modules/gallery/gallery_user.inc at line 73
* in /home/livisoc/public_html/drupal/modules/gallery/gallery.module at line 93
* in /home/livisoc/public_html/drupal/modules/user/user.module at line 22
* in /home/livisoc/public_html/drupal/modules/user/user.module at line 111
* in /home/livisoc/public_html/drupal/modules/user/user.module at line 1483
* in ??? at line 0
* in /home/livisoc/public_html/drupal/includes/form.inc at line 428
* in /home/livisoc/public_html/drupal/includes/form.inc at line 258
* in /home/livisoc/public_html/drupal/includes/form.inc at line 80
* in ??? at line 0
* in /home/livisoc/public_html/drupal/includes/menu.inc at line 418
* in /home/livisoc/public_html/drupal/index.php at line 15
Severity error
Hostname 81.107.119.175
I'm not sure whether the cause of the conflict is the rcmail module or weather it is the gallery one. I would realy appreciate any help to solve this.
Comments
Comment #1
polyformal_sp commentedI know this behavior from other applications, not only in drupal. Sometimes f.e. when logged in as an administrator an change the password for a user. Maybe some component runs in trouble with session variables. I got this in Firefox, not testet with other browsers yet. But lets figure it out.
I worked arround this by pressing ESCAPE on this dialog. Can you try this please and post the results? Maybe check this behavior with another browser?
thx
Comment #2
asifanwar98 commentedHi thank you for your reply I tried your suggestion and pressing escape dismissed the dialogue box but did not make any difference. It still doesn't work (just the same as if I chose one of the options and pressed ok or pressed cancel).
Comment #3
konsa79 commentedi confirm the same error:
if i change admin username....
i've this warning: Gallery2
Gallery2-Drupal Sync Status
Different Usernames,
G2 Full Name incorrect
if i correct the full name the warning disappear but:
Error updating Gallery user
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 357 (gallerycoreapi::error)
* in modules/core/classes/GalleryStorage.class at line 309 (gallerystorageextras::saveentity)
* in modules/core/classes/GalleryEntity.class at line 294 (mysqlstorage::saveentity)
* in modules/core/classes/GalleryUser.class at line 204 (galleryentity::save)
* in modules/core/classes/GalleryEmbed.class at line 385 (galleryuser::save)
* in /web/htdocs/www.consadori.com/home/modules/gallery/gallery_user.inc at line 138 (galleryembed::updateuser)
* in /web/htdocs/www.consadori.com/home/modules/gallery/gallery_user.inc at line 71
* in /web/htdocs/www.consadori.com/home/modules/gallery/gallery.module at line 84
* in /web/htdocs/www.consadori.com/home/modules/user.module at line 19
* in /web/htdocs/www.consadori.com/home/modules/user.module at line 108
* in /web/htdocs/www.consadori.com/home/modules/user.module at line 1473
* in ??? at line 0
* in /web/htdocs/www.consadori.com/home/includes/form.inc at line 210
* in /web/htdocs/www.consadori.com/home/includes/form.inc at line 136
* in /web/htdocs/www.consadori.com/home/modules/user.module at line 1454
* in ??? at line 0
* in /web/htdocs/www.consadori.com/home/includes/menu.inc at line 418
* in /web/htdocs/www.consadori.com/home/index.php at line 15
and if i try to manage galler2 --> http://www.consadori.com/?q=gallery&g2_view=core.SiteAdmin&g2_subView=co...
i've this error
Security Violation
The action you attempted is not permitted.
Comment #4
konsa79 commentedactually i fix the problem in that manner:
with phpmysql i check the corret username of my galler2admin
so i login in gallery2 with my first (and correct) galler2 user and i add to admin group the new user that i current use in drupal...
than:
actually i've drupal 4.7 and g2 module 2.1
i read that g2 module with fix for 2.2 is only for drupal 5.0 so i'm planning to upgrade the site and see if my workaround need too
Comment #5
asifanwar98 commentedI'm using drupal version 5 and changing the username and administring G2 after changing the username both work fine. The problem that I'm having is with a conflict with the roundcube module that I think is cased by the G2 module.
The roundcube module adds an extra password field to the user account page (email account password) when trying to change or set this password is when I get the error that I have described above.
Comment #6
asifanwar98 commentedCan some one please help. I really want to use both roundcube and the Gallery modules.
Comment #7
profix898 commented@asifanwar98: I just install roundcube and the rcmail module and it looks like a simple iframe-wrapper for the whole roundcubemail application. Nothing special on the Drupal side. Can you please write a short summary of the problem. I never used roundcube before and it seems like some problems in this issue are not gallery.module related. So what is left? Whats the actual issue with gallery.module?
Comment #8
asifanwar98 commentedHi the roundcube module is almost exactly that (a simple wrapper) except the part which I'm having the problem with. It adds a username and password field to each users 'my account' page (e.g. index.php?q=user/1/edit ). When a user trys to set this password in internet explorer it dosnt seem to work at all in firefox it pops up with a dialogue box asking which user you would like to set the password for '<>' or '(the logged in user)'. What ever choice the user makes here or even if they click cancel setting the password dosn't work. I think this maybe caused by the Gallery module because I think this dialogue box that appears could be due to the keeping usernames and passwords in sinc between drupal and G2 part of the gallery module.
Comment #9
profix898 commentedMaybe I'm missing something, but I can set the password and no dialog box is popping up! There is also no JS or stg., that could cause a dialog to display. rcmail simply adds three fields to the user edit form and nothing more. I really dont know what you are talking about :(
Comment #10
geoffc commentedI am not sure if this is related but when using "Extended user status notifications 5.x-1.1" and Gallery I noticed that it was not sending messages when the users account was activated.
I was able to trace this to the following bit of code:
in function gallery_update_user(&$edit, $user).
Now the statement at the top about this being a copy should be true and is true (I think) in any other language I have used, but it seem to be not so. Here is why: This function is being passed a value and therefore a copy of the parameter, but the parameter that is being passed is already a reference to a value, so I think the reference is being passed but it still points to the original value that was passed to the function that called this function.
Anyway when I made a manual copy of the $user to $user1 and modified it, all the problems when away.
Comment #11
profix898 commentedAFAIK this is only true for PHP 5. Values are always passed as references there. In PHP 4 that shouldnt be a problem at all. For details take a look at http://acko.net/node/54.
Where did you make the copy? And how did you do that? The things is that we make an explicit copy of the user object in function gallery_user() (in gallery.module) already utilizing drupal_clone().
So I dont see why the your snippet above should still alter the original object ...
Comment #12
geoffc commentedI use the following php to clone the $user
At the begining of the gallery_update_user function.
Comment #13
alexandreracine commentedI hope that everything is working.
------------
Feel free to reopen but please look at the latest version first! It's probably fixed.
http://drupal.org/project/gallery
Closing (cleanup)