This topic is locked
[SOLVED]

Redirect Login page: "After sucessful login" brings a white page

1/3/2023 06:34:32
PHPRunner General questions
Reiner author

This is in the event code Login page: "After sucessful login"

//** Redirect to another page ****
IF($data["recordstati_id"] == 3)
{
header("Location: PasswortAendern_edit.php");
}ELSEIF($data["usergroup_id"] == 1)
{
header("Location: users_list.php");
}ELSEIF($data["usergroup_id"] == 2)
{
header("Location: users_list.php");
}
exit();

This brings a white page.

i tried it with the complete URL http://www.mydomain.xxx/users_list.php, http://www.mydomain.xxx/users_list.php?page=list and users_list.php?page=list.

i tried the exit; command after every redirect.

Thank you for replies
Reiner

K
kohle 1/3/2023

Hi,
check the contents of your variables, maybe the if condition is not true and only the exit() is triggered at the end.
For test try only with one line like : header("Location: users_list.php");
If this works than I think you have to check you r content of the variables.

rg
J.

S
Steve Seymour 1/3/2023

Try removing the exit altogether

Reiner author 1/4/2023

@kohle
I try this. Same result.

Der Reiner

Sergey Kornilov admin 1/4/2023

These kind of errors are not possible to troubleshoot without having access to your project. Can be anything, missing permissions on the table you trying to access for instance.

Reiner author 1/5/2023

I deleted now the event code in the Login page: "After sucessful login".

After sucessful login i get still the white site.

The URL in the browser after login is https://www.mydomain.xxx/login.php?page=login

When i delete "login.php?page=login" in the URL and press enter it show me the site "users_list.php".

Sergey Kornilov admin 1/5/2023

Like I said, Like I said, these kind of errors are not possible to troubleshoot without having access to your project. You need to post your project to Demo Account and contact support directly.

S
Steve Seymour 1/5/2023

If you've removed all your redirects and still see the problem - that suggests that you have a landing page error...

Misc -> Landing Page

Reiner author 1/5/2023

I close the ticket without a solution.

i disabled the login page. After this the right page come up.