User registration doesn't work
Virtual Research Environment / On-line Bibliography Manager
Brought to you by:
sirfragalot
Hello, I have wikindx5 up and running using docker containers. (I'd be willing to share the setup by the way if there is interest)
php is 7.2.26
I have set up multi user mode and user registration via email. Sending emails works.
However, new users accessing wikindx the first time with their own computer can see the "Register" button. When clicking on it, nothing happens. It seems to link to the same page.
I tried myself with a browser I hadn't used for wikindx before (Firefox). Same thing. Then I logged on with my admin account. Logged out, tried hitting "Register again". Now it works.
In the logs, I can't see anything useful..
Thanks a lot for help,
Thomas Isele
Hello Thomas,
What's your current version please?
Regards,
Hi Thomas,
Sorry to hear you are having problems with registration. We'll look into this asap and get back to you.
So I can confirm I have the correct setup to duplicate conditions:
Regards,
Mark
Hi Mark and Stéphane,
that was quick!
Best,
Thomas
We aim to please . . .
I'm looking into it nright ow.
Regards,
Mark
Well, I have no problem. Tried in Safari and Chrome. I've tried both with the latest SVN version (pre-release 5.9.1) and a fresh 5.8.2 release. As a user wishing to register I can go through the entire process from entering registration details to receiving the email to completing my registration.
http://localhost/wikindx5/wikindx/trunk/index.php?action=initRegisterUser ?
Regards,
Mark
Hi,
I can reproduce it when I delete all cookies and website related data to the ip under which my local wikindx runs.
The error only occurs if hitting the register button (link on the logon page) right away with no cookies etc and not having logged in after deleting website related data.
It the persists. I.e. for a user on a browser from which wikindx hasn't been viewed yet.
Once I have logged in with an existing account and logged out again, registering works.
Best,
Thomas
I've found the fault Thomas. We're in the middle of a 5.9.x release so there won't be a 5.8.2 fix. Hopefully the new release will be out in a day.
Stéphane _ I'll fix it today and either it goes into 5.9.1 or a quick 5.9.2 (let me know which one).
Mark
Last edit: Mark Grimshaw 2020-01-08
Hi Thomas,
This has been fixed and will be in the new release 5.9.1 that is due in a day or two (or even a few hours. I can't send a patch or replacement file as there have been significant changes in the way 5.9 initializes the environment compared to 5.8.
Thanks for bringing this to our attention. I'd be grateful if you would, once you have downloaded 5.9.1, check that it is indeed fixed and thn report back here.
Regards
Mark
Fix by revision [r3544].
Related
Commit: <Commit _id='51060a0c271846770c56c75a:3544' tree_id='3df734272cf98f4744522750c47f9a71502de646' committed=I{'date': datetime.datetime(2020, 1, 8, 17, 23, 53, 450000), 'email': '', 'name': 'sirfragalot'} authored=I{'date': datetime.datetime(2020, 1, 8, 17, 23, 53, 450000), 'email': '', 'name': 'sirfragalot'} message='Fixed inability of new users to register before session data had been loaded.' parent_ids=I['51060a0c271846770c56c75a:3543'] child_ids=I['51060a0c271846770c56c75a:3545'] repo_ids=I[ObjectId('51060a0c271846770c56c75a')]>
Hey Stéphane and Mark,
I will check out the bugfix on sunday and give feedback.
Thanks a lot!
Hi Thomas,
We will be happy to have your confirmation.
Regards,
Has the initial problem, Register button, been resolved now?
Last edit: Stéphane Aulery 2020-01-16
Hi there,
tried upgrading from 5.8.2 to 5.9.1. However, after the screen that says that the database needs to be upgraded and clicking the button, all resources are empty.
(I have backupped, so no reason for panic here).
What I did in detail:
Can you help again?
Hi Thomas,
We encountered other bugs in version 5.9.1. Go to v6 which fixes them. Backup in all cases, files and db.
Regards,
Same with 6 :(
Sorry for all these problems Thomas and thanks for your patience – we'll get it sorted out.
While we're thinking about it, can you check that you updated various paths in config.php with the wikindx6 location?
Regards,
Mark
Are you hosted online, o na private machine, on a server of a private network?
Hi Thomas,
Could you test that this bug is corrected please?
If this is not possible or if I do not have a return in a week I close the bug because on our side we have corrected and tested it.
Regards,
Also, 6 still has the wikindx5 logo in the upper right corner...
. . . aargh! Completely forgot that.
Not a big deal. Remove the number.
Will look tomorrow.
I'm running it using docker compose. I have one container for mysql, one for php and one for apache. It's all running on one machine.
Versions are
PHP_VERSION=7.2.26
MYSQL_VERSION=5.7
APACHE_VERSION=2.4.32
The DB paths (resp name and port) are all up to date and
$WIKINDX_BASE_URL = "http://localhost";
At least in 6 I can't see any other path variables.
Configure also $WIKINDX_WIKINDX_PATH in config.php with the absolute path of the main directory.
If you setup correctly a vhost in Apache you don't need these variables.
MySQL >= 5.7.5 ?
MySQL == 5.7.28
I don't think the path is the problem. wikindx is found.
However, I think I found some things that went wrong in wikindx6.
1) In 5.8.2 I chose my citation style to be Harvard. When upgrading, Harvard wasn't there anymore.
The resources are still there however, when displaying one, by "random resource" (search doesn't work nor does it display any resources on the front page). It didn't show title or anything. After reconfiguring to the one citation style left (APA) that worked again.
2) Fixed the front page by reconfiguring it as admin.
3) I inspected the database after the upgrade with a DB admin tool. THe data seems still to be there. What doesn't work is the search. I typ in words into the search that must hit (or even * ) but don't get any results. "No resources found matching your selection".