Just a notice abt modules not playing well.

i'm putting a D7 site together and tried to use these 2 modules together with no success. Same thing happens with all D7 versions of these modules.

With memcache enabled Domain Access won't bootstrap at all. If i install Donmain Access first then switch on Memcache i get blank screens or PDO errors. i haven't invested extensive time into Drupal since D5 so have no idea what's happening. i have a pretty standard set up with the mysql server on a separate box.

Comments

ben soo’s picture

also started up a thread on this in the Domain Access module issue queue:


http://drupal.org/node/1030380

agentrickard’s picture

Here's what @ben soo left in the duplicate issue:

Just a note abt modules not working well together.

Domain Access won't bootstrap when the Memcache modules is running. Log has errors like this:

Domain access failed to load during phase: 2. Please check your settings.php file and site configuration.

When i install domain without memcache, then switch memcache back on, i get blank screens or PDO errors like this:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1: SELECT * FROM {menu_router} WHERE path IN () ORDER BY fit DESC LIMIT 0, 1; Array ( ) in menu_get_item() (line 443 of /www/docs/d7test/includes/menu.inc).

Typically, you cannot use node access modules with external caching.

ben soo’s picture

i find that weird, but then i haven't a clue abt Drupal's internal organization. i thot whether a query transaction can be cached or not depended on whether the underlying data's changed.

Don't mind my clueless state: not enough coffee.

ben soo’s picture

Ok, the latest test of this combo of modules shows that the D7 site does run with both Domain Access and Memcache enabled, but the memcached debug output shows no caching requests are going to the memcached daemon from the site.

When i disable the Domain Access module and comment out the Domain Access setup routine line in settings.php, then i see binary requests and retrievals in the memcached debug log.

agentrickard’s picture

@ben soo

We fixed what is likely a related bug last week. Try 7.x.2.9 of Domain Access.

See #1046844: domain_bootstrap breaks page cache.

catch’s picture

Status: Active » Postponed (maintainer needs more info)

We need more information here. Are you getting no requests to memcache at all? Or they're all cache misses?

catch’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Actually I'm going to mark this as a duplicate of #1030338: D7 Domain Access module doesn't work with Memcache module which has suggested documentation to fix this issue.

ben soo’s picture

--Yes, i checked the module, it is 7.x.2.9 with the patch that has the added drupal_settings_initialize(): that's what's giving me the behavior i noted above.

They not memcache misses, there's no communication with memcached at all, seems like.

i wish i had more, or any, competence with PHP and debugging thereof.

ben soo’s picture

erm, that's this thread. i'll go and look around this issue queue and see what i've missed, and apologize beforehand for missing it.

brightbold’s picture

Status: Closed (duplicate) » Active

I don't have the Memcache module installed, but had turned on performance logging in Devel and was getting exactly the same error as ben soo. When I disabled performance logging, Domain can be installed as usual.

So I don't know if that means this should be a Devel issue, or a Domain issue, or a Memcache issue, or if it should again be reclosed as a dupe. But Catch - you accidentally closed this as a duplicate of itself. Can you point us towards the issue you meant to link?

catch’s picture

Status: Active » Closed (duplicate)

Whoops, that was #838520: Document Memcache and Domain Access settings.php issues! Moving back to duplicate.

ben soo’s picture

ok, the described order of config settings in this thread is what i have in my settings.php: has no effect for me.

brightbold’s picture

@ben soo -
Yes that didn't solve the problem for me either. I disabled Memcache to fix it. But I do know that the devs are unlikely to look at an issue where the status is "closed," so you should either post in the open issue (except it's specifically about documentation, so that seems not quite appropriate) or re-open this one.

jonaswouters’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta4
Status: Closed (duplicate) » Active

This is still an issue. memcache has hits. But still getting error message "Domain access failed to load during phase: 2. Please check your settings.php file and site configuration."

Does not detect current active domain.

If anybody found a solution to this, I would like to know.

catch’s picture

Status: Active » Closed (duplicate)

Still a duplicate of #1030338: D7 Domain Access module doesn't work with Memcache module which also has a solution.

catch’s picture

Sorry copy and paste fail again, this one: #838520: Document Memcache and Domain Access settings.php issues.

ben soo’s picture

Nope, this reordering of settings.php doesn't fix the problem. This particular fix was for D6 anyway, dunno how different the code is for the D7 versions of these modules, but reordering the settings lines don't do anything.

Should i open another issue for this problem, since as noted above this one is marked closed?