-
☆ A M B ☆
- 279 Posts
Hi all,
I have 2 contexts, ’web’ for the dutch language and an ’english’ context. I have created a gateway plugin wich has a switch on the $modx->getOption(’http_host’);
I’m running PHP 5.2.14 and MySQL 5.0.91 and Apache 2.0
When I do $modx->switchContext(’english’); then the error log produces an error like "Could not load context: english".
I did some debugging but can’t find why he isn’t loading.
In access controls I have added the english context acces to the anonymous group with load, list and view policy and setupped the context with the settings base_url, site_url, http_host, cultureKey and site_start.. but that won’t make any difference
Could anyone tell what I could check to find the problem?
Regards, Bert
-
☆ A M B ☆
- 279 Posts
It gets crazier; In opera my ’english’ context is working as expected, no problems, but when I look at Firefox or Chrome I’m not able to view the context domain.
The manager also doesn’t work from time to time; I tried all pages in the manager, sometimes they work as expected but sometimes the don’t. Very strange things are going on!
Ps. updated PHP to 5.2.17 but no luck with that
-
MODX Staff
- 10,725 Posts
Are you running the latest release of Revo, 2.1.3-pl? If so, make sure anonymous users have permission to "load" the context. The anonymous group should have an ACL for each Context with Load Only policy, but make sure the Administrator group has a policy assigned first (Object or Load, List and View policy perhaps) or you will not be able to load the Context in the manager.
Also, are these contexts implementing subfolders or subdomains or different domains?
-
☆ A M B ☆
- 279 Posts
After some debug I think it’s in the policy stuff but as I said; I don’t know :-(