Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007941TestLinkUsers and Rightspublic2017-05-18 15:452017-06-17 17:36
Assigned Tofman 
PlatformwindowsOSserverOS Version2012r2
Product Version1.9.16 (2016 Q4) 
Fixed in Version1.9.17 (2018 Q1) 
Summary0007941: New user redirect not working in firstlogin.php
DescriptionWhen a new user is created, testlink does not redirect back to login.php?viewer=new. Instead it continues to attempt to go back to firstLogin.php?viewer=new. We get a 500 error. We have tried to manually change the redirect in the firstlogin.php file but it still does not work. The new user is created, the page just will not redirect
Steps To Reproducenavigate to testlink; click New User; input data; hit sign up.
Additional Informationusing Apache2.4.

We just migrated all the way from 1.7.4
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySql 5.6
PHP Version7
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Filespng file icon 2017-05-18 13_03_25.png [^] (40,557 bytes) 2017-05-18 17:04

- Relationships
child of 0007817new Availables hot-fixes for 1.9.16 & How To get full fixed package from GitHub 

-  Notes
fman (administrator)
2017-05-18 16:33

1) please get latest code from github, do fresh install on sandbox, retest & provide feedback
jordanallington (reporter)
2017-05-18 17:05

installed newest code and received the same error
fman (administrator)
2017-05-18 19:02

Just tested with latest code form github, unable to reproduce.
Please check that all your users with role admin have a valid email configured, because there is a function that tries to send mail to all administrator when new user is created, may be this is the reason.
hughkay (reporter)
2017-05-19 08:40

I've encountered this as well.
@fman is correct: It's most probably related to a non-configured or wrongly configured email setup.
I put a "try - catch" around that last line in "firstLogin.php" file (where it calls the email_send() function) to avoid that error.
Now it's working for me.
jordanallington (reporter)
2017-05-19 13:05

Hey Hughkay

I am not familiar with php at all (or any coding for that matter), so I am unsure what you mean by try-catch. I did however comment out that last line and it seemed to solve the issue

//@email_send(config_get('from_email'), $mail['to'], $mail['subject'], $mail['body']);
hughkay (reporter)
2017-05-19 13:09

You can also try the following code:

try {
  @email_send(config_get('from_email'), $mail['to'], $mail['subject'], $mail['body']);
} catch (Exception $e) {
jordanallington (reporter)
2017-05-19 15:58

looks like we have the issue resolved. Business users were fine with commenting out the last line, not worried about getting the email alert about a new user. we only have a small amount of users in testlink so its controlled well. thanks for the help!
fman (administrator)
2017-06-17 17:36 [^]

- Issue History
Date Modified Username Field Change
2017-05-18 15:45 jordanallington New Issue
2017-05-18 16:33 fman Note Added: 0026380
2017-05-18 17:04 jordanallington File Added: 2017-05-18 13_03_25.png
2017-05-18 17:05 jordanallington Note Added: 0026381
2017-05-18 19:02 fman Note Added: 0026382
2017-05-18 19:02 fman Assigned To => fman
2017-05-18 19:02 fman Status new => feedback
2017-05-19 08:40 hughkay Note Added: 0026389
2017-05-19 13:05 jordanallington Note Added: 0026392
2017-05-19 13:05 jordanallington Status feedback => assigned
2017-05-19 13:09 hughkay Note Added: 0026393
2017-05-19 15:58 jordanallington Note Added: 0026394
2017-06-17 17:35 fman QA Team - Task Workflow Status => TBD
2017-06-17 17:35 fman Fixed in Version => 1.9.17 (2018 Q1)
2017-06-17 17:36 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2017-06-17 17:36 fman Note Added: 0026492
2017-06-17 17:36 fman Status assigned => resolved
2017-06-17 17:36 fman Resolution open => fixed
2017-06-17 17:36 fman Relationship added child of 0007817

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker