anupent
January 20, 2018, 10:36pm
1
Greetings dear all, (@asmecher , @ctgraham , @Vitaliy )
I am using OJS 3.1.0_1 and testing oldGregg theme. I have activated require_validation = On
in config.inc.php.
Whenever a new user registers, it loads a blank page with the web-address as ..../user/registerUser
. Registration is however successful and user gets a confirmation email. When I check this ..../user/register
as a logged-in user, it gives me following screen.
There are no obvious errors in php error log file. When I add
echo "Importing " . $class . " \n"; */
to
function import($class) {
in
includes/functions.inc.php
, the following are the last few lines:
Importing lib.pkp.classes.mail.EmailTemplateDAO
Importing lib.pkp.classes.mail.EmailTemplate
Importing lib.pkp.classes.site.SiteSettingsDAO
@Vitaliy has filed an issue in Github https://github.com/pkp/pkp-lib/issues/3301
My questions are:
Why do I get ..../user/registerUser
page after registration? Is it due to activation of verification email?
Why is ..../user/registerUser
page blank while ...../user/register
pages works properly.
What should I do to resolve this problem?
Best regards,
I have fill in an issue for that:
opened 07:40PM - 20 Jan 18 UTC
closed 10:34AM - 22 Jan 18 UTC
The registration page is available by 2 URLs (in the latest OJS version):
`.../… user/register`
`../user/registerUser`
Is there a reason for that?
I suspect that this causes a problem with redirection to `Registration complete` page minimum in one user (only with oldGregg theme), although I can't reproduce that on my local machine:
https://github.com/Vitaliy-1/oldGregg/issues/19#issuecomment-358842443
**Edit**: I can reproduce the problem. While the oldGregg theme is active and require_validation option in the config file is _on_, the user after registration is redirected to `../user/registerUser` instead of `.../user/register` . It is not the case with Default Theme.
As I understand, there were some changes made for this page in previous OJS versions. And that was kept for backward compatibility. On a handler level, this method seems not be enough for correct work:
https://github.com/pkp/pkp-lib/blob/master/pages/user/RegistrationHandler.inc.php#L117
On a template level for proper work, I have changed in my theme:
https://github.com/Vitaliy-1/oldGregg/commit/8d8c65a80724417b181c34c4ea91bc9d85841b74
So, from my point of view there is a need either to fix the compatibility with 3rd party themes or refuse from `registerUser` requests.
1 Like
anupent
January 22, 2018, 11:51pm
3
Issue solved after applying this patch:
https://github.com/Vitaliy-1/oldGregg/commit/8d8c65a80724417b181c34c4ea91bc9d85841b74