Maybe it doesn’t work at all when different ‘sites’ are at the same host name?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 21, 2010 11:51am
Subscribe [6]#16 / Dec 28, 2010 6:12pm
Maybe it doesn’t work at all when different ‘sites’ are at the same host name?
#17 / Dec 29, 2010 8:24am
I’m seeing similar problems on my local install.. let me ask the dev team if they’re running into the same issue. Thanks in advance for your patience.
#18 / Dec 29, 2010 11:43am
I’m seeing similar problems on my local install.. let me ask the dev team if they’re running into the same issue. Thanks in advance for your patience.
Thanks allot. This issue makes for our company serious problems. At same time solution can be very simple. Maybe one line of code. Hope somebody can help me asap.
#19 / Dec 29, 2010 3:49pm
As Sue said, we’re running this by our devs and will be updating this thread once we know more. Thank you.
#20 / Jan 04, 2011 5:13pm
Hi dcghost,
Are you properly setting site_name and cp_url in each site’s admin.php file as instructed in step 2 of the Masking Control Panel Access documentation? If those aren’t set properly you might see similar behavior.
#21 / Jan 08, 2011 11:23am
Hi dcghost,
Are you properly setting site_name and cp_url in each site’s admin.php file as instructed in step 2 of the Masking Control Panel Access documentation? If those aren’t set properly you might see similar behavior.
This line the same for all 3 sites
define(‘MASKED_CP’, TRUE);
Next line is different for those sites
$assign_to_config['cp_url'] = 'http://www.mysite.com/admin.php';
$assign_to_config['cp_url'] = 'http://www.mysite.com/b/admin.php';
$assign_to_config['cp_url'] = 'http://www.mysite.com/c/admin.php';??? :(
site_name was not defined!
#22 / Jan 08, 2011 11:48am
So that is the source of the problem.
After when I add lines
$assign_to_config[‘site_name’] = ‘default_site’;
$assign_to_config[‘site_name’] = ‘b’;
$assign_to_config[‘site_name’] = ‘c’;
Issue disapear. Thanks for Help.
BTW It will be better if the default admin.php file will have this line (commented out) with some comments about.
#23 / Jan 08, 2011 12:14pm
After all tests I can conclude. It did not help :(
Same issues still there.
Also why the EditSite form does not have fileds like a site_name, site_url and cp_url?
That is not great that all of this settings must be configured in different places. Different CP pages, admin.php, index.php. It is so confused
#24 / Jan 10, 2011 2:35am
dcghost,
Ok I had to read this thread a couple of times but can I confirm that the following is still your issue?
You have 3 member groups.
You changed the Member Group preferences of each group so that they have access to the control panel of one MSM cp each.
A is your primary site. If a member from member group C tries to login to cp via the admin.php to site c then they are unauthorized unless you go back and change their member group prefs so they can access both A and C?
#25 / Jan 10, 2011 3:55am
A is your primary site. If a member from member group C tries to login to cp via the admin.php to site c then they are unauthorized
To CP
unless you go back and change their member group prefs so they can access both A and C?
Right. But. Before login to CP as Super Admin and set current site A, then logout and login as C.
And another problem. When i have two windows in the same browser. One window has CP with current site A, and autorized as member who has access to A,B,C. Second window has site C with link edit_this to the entry. The link will not work because session keep site A as current. Site A does not have the entry of site C.
N.B. So the problem is: If session has current site info then MSM uses it, but should preffer path value if it is provided.
#26 / Jan 10, 2011 10:51am
Realistically when you have a content editor, how often are they going to be having multiple windows open for different sites?
When I test, I use three different browsers.
1. Firefox - SuperAdmin
2. Safari - Member group with CP access
3. Chrome - Non-logged in user.
This way I don’t have to worry about cookie issues across sites..
#27 / Jan 10, 2011 12:20pm
I can do whatewer I need. Our clients do not. This is the busines reason for
http://ellislab.com/forums/viewthread/177662/#842810
So If the issue can’t be solved then I would preffer remove MSM, or designate my site C as default. And forget about MSM like about a bad dream.
#28 / Jan 10, 2011 6:17pm
Hi dcghost, sorry you’re still having issues.
You mentioned it seemed to be working initially and then stopped - are you clearing all of your browsers’ cookies and cache before each test?
Can you also take one more look at this article to see if it helps? I know you are not technically using different domains, but see if it has any effect. Be sure to use $config instead of $conf (as the article was written for EE 1.x)
#29 / Jan 11, 2011 4:56am
Hi dcghost, sorry you’re still having issues.
You mentioned it seemed to be working initially and then stopped - are you clearing all of your browsers’
Was late I was tired. So It was my mistake. It did not help
cookies and cache before each test?
Yes
Can you also take one more look at
I have many domains pointing to one site. When someone logs in they are only logged in from the domain they came in. How can I have them logged into all domains at once?
I do not have this issue. All sites still on same domain.
#30 / Jan 11, 2011 5:43am
Last chance to explain the situation.
I have 3 sites on the single domain ‘mydomain’. Site names are A,B,C. Site path for each site is:
mydomain/
mydomain/b
mydomain/c
Admin path for each site
mydomain/admin.php
mydomain/b/admin.php
mydomain/c/admin.php
For example, my user account is super admin. I do login to the CP of site C (mydomain/c/admin.php)
But I still have access to the sites A and B. Then I can change CP’s current site to A. Then I can refresh the CP page. The current site will be A when my path is still (mydomain/c/admin.php). It is rational because current site state stored to the session. This is the source of the problem. I need way force session state to match the requested site for “edit_this” links and for login page.