Member Activation Redirect
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy
Undefined variable: current
Support Request
Simon
|
Posted: 10 November 2014 05:29 AM |
|
|
|
I am seeing this error on clicking an activation link (I temporarily turned on error messages for all to test the problem):
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: current
Filename: member_activation_redirect/ext.member_activation_redirect.php
Line Number: 305
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/stuff/morestuff/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 446
|
|
|
Yuri Salimovskiy
|
Posted: 10 November 2014 08:38 AM |
# 1
|
|
Developer
|
Change $current to $current_site on line 305 in ext.member_activation_redirect.php
|
|
|
Simon
|
Posted: 10 November 2014 08:50 AM |
# 2
|
|
|
Thanks, I’m no longer seeing the error. But, this is an MSM site and when its logging on to another site, I see this URL and a blank page:
http://site2.net/?ACT={AID:Member:member_login}&cur=0&orig=2&multi=73dd1ab969d1848f876dc51a8c8f0c15f7f4487c&orig_site_id=2
|
|
|
Yuri Salimovskiy
|
Posted: 10 November 2014 09:52 AM |
# 3
|
|
Developer
|
This might sound like a stupid question, but do you have Member module installed?
|
|
|
Simon
|
Posted: 11 November 2014 05:04 AM |
# 4
|
|
|
Yes.
|
|
|
|
Simon
|
Posted: 12 November 2014 04:06 AM |
# 6
|
|
|
Hi Yuri,
No, that didn’t fix it.
It still stops on one of the other sites.
It did use to work.
It wouldn’t have something to do with .htaccess removal of index.php?
Simon.
|
|
|
Yuri Salimovskiy
|
Posted: 12 November 2014 05:07 AM |
# 7
|
|
Developer
|
What changes did you make prior to it stopping work? I guess that was adding multisites login…
Try temporary disabling all .htaccess redirects and see if that helps
|
|
|
Simon
|
Posted: 13 November 2014 11:26 PM |
# 8
|
|
|
I have been using multisites login for a while.
It was working with multisites login.
I disabled .htaccess redirects, still seeing the problem.
Apart from updating to 2.9, I can’t think of any other changes.
|
|
|
Yuri Salimovskiy
|
Posted: 14 November 2014 03:02 AM |
# 9
|
|
Developer
|
When you say that login stops, what exactly is the behaviour? Do you get any error, or the user is simply not logged in? Is he logged in on the first site and any other site? How does the URL look like where the login stops?
|
|
|
Simon
|
Posted: 14 November 2014 03:12 AM |
# 10
|
|
|
It stops on a blank page of one of the sub-sites.
No error.
The user is activated and logged in on the first site. They see this problem on the second site.
They are not logged in on the second site.
The URL looks like this:
http://mathsclass.net/?ACT={AID:Member:member_login}&cur=0&orig=2&multi=7a1f7c089798409b94f5705ab7eebe7b8ed8894b&orig_site_id=2
|
|
|
Yuri Salimovskiy
|
Posted: 14 November 2014 03:15 AM |
# 11
|
|
Developer
|
Oh sorry. Failed to edit one more line that required edit. Please grab fresh version and try again.
|
|
|
Simon
|
Posted: 14 November 2014 03:23 AM |
# 12
|
|
|
From Github or here?
|
|
|
Yuri Salimovskiy
|
Posted: 14 November 2014 03:25 AM |
# 13
|
|
Developer
|
It’s hosted on GitHub, devot:ee is merely counting downloads.
|
|
|
Simon
|
Posted: 14 November 2014 03:31 AM |
# 14
|
|
|
I’m still seeing the URL:
http://mathsclass.net/?ACT={AID:Member:member_login}&cur=0&orig=2&multi=d2d401cae1dbba2e5ca4aa4d1ed9ac76a2d05c38&orig_site_id=2
(I’m seeing the date of 11 Nov on the ext file I’ve downloaded.)
Can you tell me the change you made so I can check the file?
|
|
|
Yuri Salimovskiy
|
Posted: 14 November 2014 04:21 AM |
# 15
|
|
Developer
|
For some reason the commit wasn’t pushed to GitHub. Please try again, the file is updated
|
|
|