| 
		Can't Log In from a Profile Page
	 | 
	
 
 
	
		
		 
		01-16-2015 11:57 AM
	 | 
 
	
		
		
			  | 
			
				
				 Premium Member 
			 | 
		 
		 
	 | 
 
	| 
	
		 Can't Log In from a Profile Page 
		The sidebar login was directed down the wrong path. 
		 
		I attempted to log in from visiting a user profile and I think it attempted to find a profile by the name of 'Login' which is just silly. 
As a fix, in  class_sidebar.php I changed the following line:
 
	PHP Code: 
	
		
			
$this->loginBar = new FormBuilder("login", "login", "post"); 
 
		
	 
 To:
 
	PHP Code: 
	
		
			
$this->loginBar = new FormBuilder("login", "../../login", "post"); 
 
		
	 
 I'm sure there's cleaner ways of getting to the root, but relative paths should work across every page (if it can't go a folder, or two folders back, then it's already at the root, etc).  
		
		
	
	 | 
 
 
 | 
	| 
		Issue Details
	 | 
 
	| 
		
		
		
		 Category Unknown 
		Status Fixed 
		Priority 10 - Lowest 
		
		Affected Version Mys v1.3.4 
		Fixed Version Mys v1.4.0 
		
		
		
		
			
				Users able to reproduce bug
			
			1
		 
		
		
			
				Users unable to reproduce bug
			
			1
		 
		
		
		
		
			Assigned Users
			(none)
		 
		
		
			Tags
			(none)
		 
	 | 
 
 
 | 
	
			
		  01-16-2015 12:01 PM  
	 | 
	
		
		
			  | 
			
				
				 Premium Member 
			 | 
			  | 
		 
		 
	 | 
	| 
		 I've noticed this on other pages, that you have to change and add the "../../" 
I think it's an issue to do with the url rewrite. 
		
	 | 
	
			
		  09-17-2015 11:16 AM  
	 | 
	
		
		
			  | 
			
				
				 Member 
			 | 
			  | 
		 
		 
	 | 
	| 
		 I found that when adding the "../../" fix that it broke the login entirely for the sidebar no matter what page I accessed it from and for the login page. This may have something to do with having mine installed into a subfolder. Clicking the button for login gave me a 404 error.  
 
Went to mysite.com/login  
When it should have been mysite.com/folder/login 
 
Also, I am by no means a programmer. This may make completely logical sense. I wouldn't know. XD 
		
	 | 
	
	
	
	
	
All times are GMT -5. The time now is 09:57 AM.
			
				
					Currently Active Users: 1376 (0 members and 1376 guests)
					Threads: 4,082, Posts: 32,047, Members: 2,016
					Welcome to our newest members, 
jolob.