Extension

Archived
Forum
(read-only)

Member Activation Redirect

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy

1 of 2
1
   

Undefined variable: current

Support Request

Simon
Simon

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 variablecurrent

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)

Filenamelibraries/Functions.php

Line Number
446 
Yuri Salimovskiy
# 1
Developer
Yuri Salimovskiy

Change $current to $current_site on line 305 in ext.member_activation_redirect.php

Simon
# 2
Simon

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
# 3
Developer
Yuri Salimovskiy

This might sound like a stupid question, but do you have Member module installed?

Simon
# 4
Simon

Yes.

Yuri Salimovskiy
# 5
Developer
Yuri Salimovskiy

Hi Simon,

please grab fresh version from GitHub: https://github.com/intoeetive/member_activation_redirect.ee2_addon
Let me know how that works (I have fears the add-on might not function correctly with mutlisites login)

Simon
# 6
Simon

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
# 7
Developer
Yuri Salimovskiy

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
# 8
Simon

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
# 9
Developer
Yuri Salimovskiy

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
# 10
Simon

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
# 11
Developer
Yuri Salimovskiy

Oh sorry. Failed to edit one more line that required edit. Please grab fresh version and try again.

Simon
# 12
Simon

From Github or here?

Yuri Salimovskiy
# 13
Developer
Yuri Salimovskiy

It’s hosted on GitHub, devot:ee is merely counting downloads.

Simon
# 14
Simon

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
# 15
Developer
Yuri Salimovskiy

For some reason the commit wasn’t pushed to GitHub. Please try again, the file is updated

1 of 2
1