Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007941TestLinkUsers and Rightspublic2017-05-18 15:452017-05-19 15:58
Reporterjordanallington 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformwindowsOSserverOS Version2012r2
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
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
BrowserIE11/Chrome
PHP Version7
TestCaseID
QA Team - Task Workflow Status
Attached Filespng file icon 2017-05-18 13_03_25.png [^] (40,557 bytes) 2017-05-18 17:04

- Relationships

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

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

installed newest code and received the same error
(0026382)
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.
(0026389)
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.
(0026392)
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']);
(0026393)
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) {
}
(0026394)
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!

- 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



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker