Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Logout Redirect Issue #5218

Open
Vodhin opened this issue Mar 23, 2024 · 4 comments
Open

[Bug]: Logout Redirect Issue #5218

Vodhin opened this issue Mar 23, 2024 · 4 comments
Labels
type: bug A problem that should not be happening

Comments

@Vodhin
Copy link

Vodhin commented Mar 23, 2024

What e107 version are you using?

v2.3.3

Bug description

After logging out, I am being redirected to a URL for a random image called by something in my plugin. Does NOT happen when Logout is clicked while on other e107 pages, so something in my Plugin is tricking the Logout call, maybe because I'm using a $variable that the logout uses. Where in e107 should I look?

logout_error1

logout_error2

How to reproduce

This is a new behavior I don't remember seeing before v2.3.3 - but - I hardly ever log out and just close my browser instead.

Only happens when on a page created by my Real-estate Plugin, and the incorrect URL is different each time:

https://estate.vodhin.org/e107_plugins/estate/media/prop/thm/14-1-0-349.jpeg
https://estate.vodhin.org/e107_plugins/estate/media/prop/thm/11-1-0-303.jpeg
https://estate.vodhin.org/e107_plugins/estate/media/prop/thm/13-1-0-336.jpeg

etcetera.

Expected behavior

I expect to be redirected to the home page or what ever page I was on.

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

7.4.33

@Vodhin Vodhin added the type: bug A problem that should not be happening label Mar 23, 2024
@Vodhin Vodhin changed the title [Bug]: Logout [Bug]: Logout Redirect Issue Mar 23, 2024
@CaMer0n
Copy link
Member

CaMer0n commented Mar 26, 2024

hi @Vodhin ! e107 checks for the query ?logout on any url. Perhaps check your e_url.php file for a match?

@Vodhin
Copy link
Author

Vodhin commented Mar 27, 2024

hi @Vodhin ! e107 checks for the query ?logout on any url. Perhaps check your e_url.php file for a match?

My e_url.php file only has


class estate_url 
{
	function config() 
	{
		$config = array();
    
		$config['listings'] = array(
			'alias'			=> EST_SEF_LISTINGS,
			'regex'			=> '^{alias}/?$',
			'sef'			=> '{alias}',
			'redirect'		=> '{e_PLUGIN}estate/listings.php',
		);

		return $config;
	}

Not sure if I need anything else in there,

@Jimmi08
Copy link
Contributor

Jimmi08 commented Mar 30, 2024

Hi, maybe it is not related but I have members only site and after logging in, it is redirected to some theme file f.e. shuffle.min.js.map
Login is finished. I logout, try login again and everything is ok then. The action in login form is correct, checked.
Very weird.
next time- redirected to bootstrap.bundle.min.js.map

@Vodhin
Copy link
Author

Vodhin commented Apr 6, 2024

This issue seems to be related to resources that failed to load, as reported in the JavaScript Console. In my case there were some images called by database when the page loads but the files don't exist. The problem disappeared once I removed those images from the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

3 participants