Loading...
 
Skip to main content

Architecture / Installation


Tiki7 Multidomain/perspective problem

Hi,
I have a setup under Tiki5 that has 2 sub-sites running on the same server but with different domain names so that http://domain1Question goes to perspective 1, and http://domain2Question goes to perspective 2 where the perspectives are identified with CategoryJail to restrict view to items in a given category. Works fine.

I upgraded to Tiki7 on a test box but now the only time I can see the perspectives properly is immediately after logging out - otherwise I just see all category items, essentially perspective=0, after logging in or viewing either perspective anonymously.

Thanks,

Gary

A little (a lot, actually) more testing has identified the following:-
- the $_SESSION'current_perspective' is being reset to 0 when I use the tiki-switch_persective (after the first time). As a result the category_jail is not being set and I see all category information.
- It also happens with v6.4 (as well as v7 per below), but not with v5.0 or v5.4.

My problem went away after changing the line in tiki-switch_perspectives.php in v6.4 from
$_SESSION\'current_perspective'\=0;
to
unset($_SESSION'current_perspective');

(note: some square brackets would not display in the post above, but you get the idea)

This may have other consequences but so far so good.

Gary


grg111 wrote:

Hi,
I have a setup under Tiki5 that has 2 sub-sites running on the same server but with different domain names so that http://domain1Question goes to perspective 1, and http://domain2Question goes to perspective 2 where the perspectives are identified with CategoryJail to restrict view to items in a given category. Works fine.

I upgraded to Tiki7 on a test box but now the only time I can see the perspectives properly is immediately after logging out - otherwise I just see all category items, essentially perspective=0, after logging in or viewing either perspective anonymously.

Thanks,

Gary