Love this module from what I can see (if I ever get it working properly).
I'm currently running Drupal 5.7. I've been able to set everything up and while logged in as the adminstrator, I can see all the sub-domains and can modify content. However, when I log out, I get a blank screen. No error messages, nothing at all. I can't log in again coz when I go to /user, I still get a blank screen.
This is the third install I've tried of this module all with the same result. Everything works perfectly until I log out.
I've tried the custom_url_rewrite_outbound.patch, ds4.patch to no avail. I'm not using OG.
Any suggestions?
Comments
Comment #1
agentrickardChanging title to be more descriptive and less alarmist.
Does this happen when you logout when the module is not installed?
When the module is installed and you log out, from which domain are you logging out? How are you logging out? And what domain does Drupal try to load after logout?
Check your server error logs for clues to the issue -- I suspect that it is not related to this module, but rather revealed by it.
See also http://drupal.org/node/201872
Comment #2
DynamicFred commentedSorry about being alarmist. I tend to get that way when I'm frustrated.
Got it figured out.
First, to answer your questions:
1) Prior to installing the module, my site worked properly and had for several months.
2) After installing, I logged out from the main site using the "logout" menu item. Drupal tries to load the main domain after logging out.
3) No issues in the server logs.
FIX - after commenting out the cookie_domain variable in settings.php, the site came up again. I had set it to the main domain.
Again, thanks for a great module!
Comment #3
agentrickardThat seems odd. Normally, the $cookie_domain needs to be ".example.com" to allow for the login cookie to be read across multiple sites.
Setting it to "example.com" -- leaving off the leading dot -- should not have this effect.
Comment #4
DynamicFred commentedLooking into it further, I screwed up in my earlier comment. It wasn't the cookies after all (hanging my head in shame) Instead, it was dependent on whether the site was cached or not.
When I use Caching Mode Normal or Aggressive, I get the white screen after logging out. Once I disable caching, everything works well.
I now have the Domains working exactly the way I want. Thanks again for your support and the efforts you've put into this module. Well done!
Comment #5
agentrickardNormal cache mode should not cause any issues. DA is not compatible with aggressive caching because it uses hook_init().
Perhaps there is something else going on. Did you hardcode $base_url in settings.php? That is not allowed when using DA.
Comment #6
DynamicFred commentedNo. base_url still reads:
# $base_url = 'http://www.example.com'; // NO trailing slash!
I'm going to turn on debug later today on the test site and see if that helps pinpoint the issue. I need to debug anyway for the other issue of Domain Block.
Maybe I'll be able to kill 2 birds with one stone (fingers crossed here).
Comment #7
agentrickardI received a similar report via email, so I am re-opening this one. I have never been able to replicate this issue.
Comment #8
DynamicFred commentedApologies for the long log entry, but here's the log for the last time I experienced the blank screen.
~~~~~~~~~~~~Begin Log~~~~~~~~~
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringsystem' doesn't exist\nquery: SELECT status FROM stringsystem WHERE name = 'domain_conf' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringsystem' doesn't exist\nquery: SELECT status FROM stringsystem WHERE name = 'domain_prefix' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringaccess' doesn't exist\nquery: SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM stringaccess WHERE type = 'host' AND LOWER('127.0.0.1') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringusers' doesn't exist\nquery: SELECT u.*, s.* FROM stringusers u INNER JOIN stringsessions s ON u.uid = s.uid WHERE s.sid = '3napgop2lek5e5lbjl4mvgj011' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringcache' doesn't exist\nquery: SELECT data, created, headers, expire FROM stringcache WHERE cid = 'variables' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringvariable' doesn't exist\nquery: SELECT * FROM stringvariable in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: variables in /home/vhosts/MY-URL.com/httpdocs/includes/bootstrap.inc on line 392, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringcache' doesn't exist\nquery: LOCK TABLES stringcache WRITE in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringcache' doesn't exist\nquery: UPDATE stringcache SET data = 'N;', created = 1206040082, expire = 0, headers = '' WHERE cid = 'variables' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: variables in /home/vhosts/MY-URL.com/httpdocs/includes/bootstrap.inc on line 399, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringcache_page' doesn't exist\nquery: SELECT data, created, headers, expire FROM stringcache_page WHERE cid = 'http://www.MY-URL.com/admin/build/domain' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringurl_alias' doesn't exist\nquery: SELECT COUNT(pid) FROM stringurl_alias in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringsystem' doesn't exist\nquery: SELECT * FROM stringsystem WHERE type = 'theme' in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined property: stdClass::$theme in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 45, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: garland in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 58, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Trying to get property of non-object in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 58, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: garland in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 67, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Trying to get property of non-object in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 67, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/style.css) is not within the allowed path(s): (/home/vhosts/MY-URL.com/httpdocs:/tmp) in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 67, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: garland in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 72, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Trying to get property of non-object in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 72, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: garland in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 76, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Notice: Trying to get property of non-object in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 76, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringsystem&#039; doesn&#039;t exist\\nquery: SELECT name, filename, throttle FROM stringsystem WHERE type = &#039;module&#039; AND status = 1 ORDER BY weight ASC, filename ASC</em> in <em>/home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.MY-URL.com/admin/build/domain', 'http://www.MY-URL.com/user/1', '127.0.0.1', 1206040082) in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringcache_menu&#039; doesn&#039;t exist\\nquery: SELECT data, created, headers, expire FROM stringcache_menu WHERE cid = &#039;0:en&#039;</em> in <em>/home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.MY-URL.com/admin/build/domain', 'http://www.MY-URL.com/user/1', '127.0.0.1', 1206040082) in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringcache_menu&#039; doesn&#039;t exist\\nquery: LOCK TABLES stringcache_menu WRITE</em> in <em>/home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.MY-URL.com/admin/build/domain', 'http://www.MY-URL.com/user/1', '127.0.0.1', 1206040082) in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringcache_menu&#039; doesn&#039;t exist\\nquery: UPDATE stringcache_menu SET data = &#039;a:4:{s:10:\\\\&quot;path index\\\\&quot;;a:0:{}s:5:\\\\&quot;items\\\\&quot;;a:2:{i:0;a:5:{s:4:\\\\&quot;path\\\\&quot;;s:0:\\\\&quot;\\\\&quot;;s:5:\\\\&quot;title\\\\&quot;;s:0:\\\\&quot;\\\\&quot;;s:4:\\\\&quot;type\\\\&quot;;i:1;s:3:\\\\&quot;pid\\\\&quot;;i:1;s:8:\\\\&quot;children\\\\&quot;;a:1:{i:0;i:1;}}i:1;a:6:{s:3:\\\\&quot;pid\\\\&quot;;i:0;s:4:\\\\&quot;path\\\\&quot;;s:0:\\\\&quot;\\\\&quot;;s:5:\\\\&quot;title\\\\&quot;;s:10:\\\\&quot;Navigation\\\\&quot;;s:6:\\\\&q in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringwatchdog&#039; doesn&#039;t exist\\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, &#039;page not found&#039;, &#039;admin/build/domain&#039;, 1, &#039;&#039;, &#039;http://www.MY-URL.com/admin/build/domain&#039;, &#039;http://www.MY-URL.com/user/1&#039;, &#039;127.0.0.1&#039;, 1206040082)</em> in <em>/home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.MY-URL.com/admin/build/domain', 'http://www.MY-URL.com/u in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function block_list() in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 1018, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringsessions&#039; doesn&#039;t exist\\nquery: SELECT sid FROM stringsessions WHERE sid = &#039;3napgop2lek5e5lbjl4mvgj011&#039;</em> in <em>/home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.MY-URL.com/admin/build/domain', 'http://www.MY-URL.com/user/1', '127.0.0.1', 1206040082) in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
[Thu Mar 20 15:08:02 2008] [error] [client 127.0.0.1] PHP Warning: Table 'test_drupal.stringwatchdog' doesn't exist\nquery: INSERT INTO stringwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &#039;test_drupal.stringsessions&#039; doesn&#039;t exist\\nquery: INSERT INTO stringsessions (sid, uid, cache, hostname, session, timestamp) VALUES (&#039;3napgop2lek5e5lbjl4mvgj011&#039;, 0, 0, &#039;127.0.0.1&#039;, &#039;messages|a:1:{s:5:\\\\&quot;error\\\\&quot;;a:5:{i:0;s:300:\\\\&quot;user warning: Table &amp;#039;test_drupal.stringsystem&amp;#039; doesn&amp;#039;t exist\\\\nquery: SELECT name, filename, throttle FROM stringsystem WHERE type = &amp;#039;module&amp;#039; AND status = 1 ORDER BY weight ASC, filename ASC in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172.\\\\&quot;;i:1;s:262:\\\\&quot;user warning: Ta in /home/vhosts/MY-URL.com/httpdocs/includes/database.mysql.inc on line 172, referer: http://www.MY-URL.com/user/1
~~~~~~~~~~~~~~End Log~~~~~~~~~~~~~`
Following is possibly unrelated???
[Mon Mar 24 16:36:18 2008] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function block_list() in /home/vhosts/MY-URL.com/httpdocs/includes/theme.inc on line 1018, referer: http://canada.MY-URL.com/
[Thu Apr 03 11:56:46 2008] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '/' in /home/vhosts/MY-URL.com/httpdocs/includes/common.inc(1360) : eval()'d code on line 2, referer: http://canada.MY-URL.com/users/canada
Comment #9
agentrickardWell, these first two are database connection errors, and probably cause the failure. These occur inside Domain functions.
But the next group are core Drupal queries, and they are failing as well.
Are you using table prefixing inside your settings.php file? Does your site work normally?
I am confused that this would only occur on logout, since the database table string is obviously wrong.
The parts that read
'test_drupal.string'are causing the problem.Comment #10
DynamicFred commented>>Are you using table prefixing inside your settings.php file?
Yes, I was.
# $db_prefix = 'dps_';
I've since deleted the prefixes in my database and it works now.
>>Does your site work normally?
Yes. I could navigate through the entire site as long as I was logged in. Once I logged out, I got a white screen. I tested it on 3 machines using IE6, IE7 and Firefox.
>>I am confused that this would only occur on logout, since the database table string is obviously wrong.
Me too. But I ran the test site for a few days without any problems before I found the error. It was only in my final tests before pushing it to my production site that I finally logged out and found the issue.
>>The parts that read 'test_drupal.string' are causing the problem.
This is from my test using 'string' instead of the db prefix per the documentation. I got the same error using my normal prefix. Ahh geez! I just realized I shouldn't take your instruction about using "string_" literally. :-/. Guess that tells you I'm not a programmer! In any case, I had tested using my normal prefix of "dps_" and it didn't work then either.
I've eliminated the prefix entirely and now the site works using the db name "test_drupal."
Don't know if this will help, but I also get a lot of error messages:
[Mon Mar 24 18:57:26 2008] [error] [client 170.0.0.1] PHP Notice: Undefined index: path in /home/vhosts/MY-URL.com/httpdocs/sites/all/modules/domain/domain.module on line 507
[Mon Mar 24 18:57:26 2008] [error] [client 170.0.0.1] PHP Notice: Undefined index: path in /home/vhosts/MY-URL.com/httpdocs/sites/all/modules/domain/domain.module on line 508
Thanks for your help. As far as I'm concerned this issue is closed since I have my site working. If you like, I'd be happy to send you the entire error log by e-mail. Let me know if that will help you.
Comment #11
agentrickardNo, it won't help me. Did you at any point define $db_prefix as an array?
The 'undefined index' errors are all E_ALL STRICT messages -- strict error reporting, which is not required in Drupal 5.
Comment #12
DynamicFred commentedThe only way I had defined it was as:
$db_prefix = 'dps_';
which was the prefix my db used for the tables.
Do you have a Paypal account I can use to contribute financially?
Comment #13
agentrickardOddly, I do not. But I suppose I should make one.
You could also send Amazon gift certs my way, using my contact form to get me email address.
Comment #14
agentrickardClosing again. This is a configuration issue at the system level AFAIK.
Comment #15
drvdt commentedOpen again this issue.
I have the same problem with: drupal 7.24 + domain 3.10 + og 2.4
After install domain module on normal site (running above 2 years). I still access normally with my account. But I can not access as a guess any path (user, user/login are the same).
Any idear?
Many thanks!
Comment #16
drvdt commentedComment #17
drvdt commentedAny help
Comment #18
agentrickardThis issue is 5 years old. Please enter a full bug report indicating:
- Steps taken
- Errors received
- Log messages, if any
Comment #19
drvdt commentedMaybe this problem cause by og and entityreference, not domain access. So I close this issue. Many thanks
Comment #20
agentrickard