EnglishI added Php 5.4.11 for my Wampserver and installed a new 2.4.6 test gallery. Added some plugins with UAM and all works fine.
I tested UAM's registration validation (from admin and user) and I was unable to reproduce "undefined function switch_lang_to()" error. All worked fine.
This time, I have absolutely no any idea to deal with this problem...
Eric wrote:
On my mind, the mrk's issue lays on Piwigo's core files corruption and/or bad installation process. I can't investigate further. If someone else has any idea...
Discussed in PM with mrk : The issue may come from the version of PHP. mrk's gallery is using PHP 5.4.x while I'm using 5.3.x. I've to add a PHP 5.4 support on my Wampserver to perform some test.
In fact, it seems there is still a bug reported by dpolites: When a user account is manually added by an admin and registration confirmation is correctly set with 2 user groups or statutes (validated or unvalidated users), the added user is not automatically set in the unvalidated users group/statutes.
This bug does not block admins to manually validate these users in UAM's tracking confirmation tab but they can access the gallery without restrictions even if the registration are not validated.
[Bugtracker] bug 2829 will be fixed in next UAM version.
dpolites wrote:
As I haven't seen any documentation on the plug-in, is this something that it should do upon install of the Plug-in or is it something I have to manually add?
dpolites has found himself the appropriate use of user groups in UAM ;-)
But encounter some difficulties to manually confirm pending registrations in "Tracking confirmation" tab. Here is my feedback about this second issue (copy of PM reply) :
I've done some test on your gallery and all works fine :
1/ User creation by an admin (in admin panel > Users > Management) -> User received the information email, is correctly set in the "Unverified" group, the confirmation email is sent and received when I validate him manually in UAM panel and he his correctly set in the "Verified" group. Tested user connection attempt before and after admin's validation, all is OK.
2/ User registration as a visitor -> User received the information email, he is correctly set in "Unverified" group and can not connect the gallery until admin's validation. I, as an admin, did the manual validation in UAM panel and all works fine again like at first test.
Note : To manually validate a registation in the tracling confirmation tab, you have to select (checkbox) the user(s) to perform before clicking the manual confirmation button. Or use target = all.
If you still have issues to using the manual confirmation button, maybe is your browser in fault ? I've tested with Firefox18 and IE9 without any problem.
Quick feedback of mrk's problem :
The initial error (undefined function switch_lang_to()) is probably due to the lack of an include in the UAM code to call the functions_mail.inc.php file. However, this does not explain why the problem can not be reproduced on other galleries with the same general settings...
In addition, the quick fix in UAM code resulted in a new error message that appears in the same conditions as the first (after clicking on a link validation registration by the visitor):
Notice: Undefined variable: conf in /data05/virt16642/domeenid/website/htdocs/album/include/functions_mail.inc.php on line 815
Warning: Cannot modify header information - headers already sent by (output started at /data05/virt16642/domeenid/website/htdocs/album/include/functions_mail.inc.php:815) in /data05/virt16642/domeenidwebsite/htdocs/album/include/page_header.php on line 105
This has no sense! The "conf" offending is related to a mail debuging option ($conf['debug_mail']) that is set to false in config_default.inc.php and not set in config.inc.php.
Many test done : Using standard theme, disabled all other plugins,... But no success.
On my mind, the mrk's issue lays on Piwigo's core files corruption and/or bad installation process. I can't investigate further. If someone else has any idea...
mrk wrote:
Because there is no real solution to this error I just switched off
switch_lang_to($data['language']);
load_language('plugin.lang', UAM_PATH);
function in functions.inc.php.
Now everything works flawlessly.
Well... This solution is a bit extreme and will disappear with the next update of the plugin. It would be interesting to find out exactly what is wrong to fix the problem permanently.
I do not have time to investigate this evening but I can free up some time tomorrow. If you agree.
dpolites wrote:
As I haven't seen any documentation on the plug-in, is this something that it should do upon install of the Plug-in or is it something I have to manually add?
Are the online help tips not clear enough ? Maybe may I improve them...
On "Confirmation of registration" tooltip, you can see:
This option is generally used with the automatic assignment of group and/or statutes. For example, a user who has not confirmed their registration will be set in a specific group of users (with or without restrictions on the gallery) while a user who confirmed his registration shall be set in a "normal" group.
And in details of "Change the Group/Status/Privacy Level of the users who have been confirmed":
WARNING : Using groups on confirmation requires that you have created at least one users group and is defined "by default" in Piwigo's user groups management.
Finaly, there are 2 "Tips and examples of use". They talk about prerequisite of 2 groups "waiting" and "Confirmed".
So, you've to create 2 user groups. One with restricted access to your albums (for unconfirmed users) and a second with full access (for confirmed users). When done, set these groups in UAM and join all already registered users in the "confirmed" group.
If you still have some problems to set it, send me in PM the link to your gallery and a webmaster account. I'll do it for you. But i'll be a bit busy today and you'ld have to wait a little.
mrk wrote:
Eric wrote:
mrk wrote:
Made FTP install, deactivated all plugins but UAM and PWG stuff, switched default lang in Piwigo to english, unfortunatly nothing helps. Same error sill here. Maybe It`s about server PHP version? I had issues before with scripts which were made for other php versions. I have PHP 5.2.17
Minimum php version required is 5.x. It can't be about that.
Please, try with a standard theme, like Elegant. Maybe it helps...Yeah I noticed that - switched to PHP 5.2.17 with same results. Unfortunatly theme change also did not help. I have subdomain in same server and I have similar Piwigo install there - it gives me exactly same error.
Because there is no real solution to this error I just switched off
switch_lang_to($data['language']);
load_language('plugin.lang', UAM_PATH);
function in functions.inc.php.
Now everything works flawlessly.
mrk wrote:
Unfortunatly theme change also did not help. I have subdomain in same server and I have similar Piwigo install there - it gives me exactly same error.
:-((
Then I have no more ideas to solve the problem. One is sure : UserAdvManager is not guilty but something on you host or Piwigo installation. I'll need more time to investigate if you agree. Thx then to keep my account as admin on your gallery.
Eric wrote:
dpolites wrote:
Is there a way to manually confirm the existing users so that I can use the plug in with those features? Or do I have to delete all of the users that I added before the Plug-in and re create them?
Hi,
If you've enabled confirmation of registration, you should have set a "waiting" and a "validated" groups of users. Just set the existing user as member of your "validated" group and they would be able to connect the gallery again :-)
Hi, I have enabled confirmation of registration and I don't see a "waiting" and "validated" groups existing.
As I haven't seen any documentation on the plug-in, is this something that it should do upon install of the Plug-in or is it something I have to manually add?
Thanks,
Dan.
Eric wrote:
mrk wrote:
Made FTP install, deactivated all plugins but UAM and PWG stuff, switched default lang in Piwigo to english, unfortunatly nothing helps. Same error sill here. Maybe It`s about server PHP version? I had issues before with scripts which were made for other php versions. I have PHP 5.2.17
Minimum php version required is 5.x. It can't be about that.
Please, try with a standard theme, like Elegant. Maybe it helps...
Yeah I noticed that - switched to PHP 5.2.17 with same results. Unfortunatly theme change also did not help. I have subdomain in same server and I have similar Piwigo install there - it gives me exactly same error.
mrk wrote:
Made FTP install, deactivated all plugins but UAM and PWG stuff, switched default lang in Piwigo to english, unfortunatly nothing helps. Same error sill here. Maybe It`s about server PHP version? I had issues before with scripts which were made for other php versions. I have PHP 5.2.17
Minimum php version required is 5.x. It can't be about that.
Please, try with a standard theme, like Elegant. Maybe it helps...
dpolites wrote:
Is there a way to manually confirm the existing users so that I can use the plug in with those features? Or do I have to delete all of the users that I added before the Plug-in and re create them?
Hi,
If you've enabled confirmation of registration, you should have set a "waiting" and a "validated" groups of users. Just set the existing user as member of your "validated" group and they would be able to connect the gallery again :-)
Eric wrote:
Eric wrote:
I noticed you don't enable Language Switch plugin. I enabled it and I tried to register with a new test account. Still waiting for confirmation email...
Got the confirmation email and same problem occurs... At this time, I've no idea what's wrong on your gallery :-/
The error message reports a missing function in Piwigo's core files. In this case, what I'll do:
- Backup all files and subdirectories of ../album/ directory
- Backup the database
- Download the latest Piwigo's zip file and unzip
- Send all files to host using FTP and overwriting existing files
But it is a little tricky...
Made FTP install, deactivated all plugins but UAM and PWG stuff, switched default lang in Piwigo to english, unfortunatly nothing helps. Same error sill here. Maybe It`s about server PHP version? I had issues before with scripts which were made for other php versions. I have PHP 5.2.17
Hi,
I am using the UserAdvManager on a new Piwigo site that I just setup.
I have a question on expected behaviour
Initially I added some users without any options enabled in UserAdvManager.
Now if I enable Confirmation of Registration - Enable by admin, and Confirmation of registration for admins enabled, as well as Reject user connexion until registration is confirmed, all users that existed before I enabled it get kicked out with this message "Sorry, your registration is not validated yet, so you can't connect the gallery now." They get this message even when they are already users in the system assigned to a role other than User.
I gather the plug in is marking when a user gets confirmed in the database somewhere.
Is there a way to manually confirm the existing users so that I can use the plug in with those features? Or do I have to delete all of the users that I added before the Plug-in and re create them?
Thanks,
Dan.