Closed (cannot reproduce)
Project:
Domain
Version:
6.x-2.7
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
30 Jun 2010 at 00:30 UTC
Updated:
15 Jan 2011 at 21:19 UTC
I'm using the latest version of the following:
Views
Token
SimpleNews
Pathauto
Panels
Nice_menus
Domain
Date
Calendar
CCK
All pages on my primary domain show as "page not found". Please see: http://bit.ly/c3lvN1
It has always been this way but I've never really used my primary domain but I want to use it now to make populating subdomains with content quicker.
All my subdomains, however, work perfectly. If move a panel or page from the primary domain to a subdomain the content works fine. Menu items show on Primary Domain but when you click them you get "page not found".
I'll be glued to my computer and ready to give an immediate response if you need more information.
Comments
Comment #1
agentrickardDrupal page not found or Apache 404?
Comment #2
chris207 commentedThank you so much for replying.
When I do a 404 check on that page it comes up as HTTP/1.1 200 OK, so I think it is a Drupal page not found. You can see it here http://bit.ly/c3lvN1
Comment #3
chris207 commentedI have changed my Primary Domain around in the past from a switch from the development server to the production server. Could this have jumbled something? I cleared the various cache tables but no change.
Comment #4
agentrickardSorry, I don't trust Bit.ly links from strangers. Can I have a real URL please?
Check to see that you still have record 0 in {domain}. If you did a MySQL dump and import, it may have gotten re-indexed. Your primary domain should be domain_id = 0.
Comment #5
chris207 commentedDomain is still marked as 0 yes.
Here is a link that shows the address before you proceed (better than bitly) http://preview.tinyurl.com/2aroltr. I'm just trying to not have the main URL indexed.
The content does show as affiliate content for this this domian though. Not sure why it immediately says "page not found" after I create it. I can clicked edit and it pulls the proper records, but I can't view.
Comment #6
agentrickardAre you doing any table prefixing? Do the pages linked to from the menu exist in Drupal? Are they aliased correctly? What is the home page set to?
Comment #7
chris207 commentedHomepage was set to a panel but I just set it to a page (the only things working for me) so it would show something.
Menu items exist and are aliased correctly. I am using prefixing for a menu and then four simplenews tables.
Thanks for your continued help!
Comment #8
agentrickardTable prefixing for menus is complex. Make sure you have all the proper cache tables prefixed as well.
Comment #9
chris207 commentedShould I check all the tables to prefix, make a new subdomain, then set that to my primary domain?I'm not sure all my tables exist for domain 0. That's where the source problem is, the pages on that site say "page not found".
I essentially want to copy all the attributes of the primary domain but not recreate the content that is sourced from the primary domain (just insert the node and keep the authoring info, etc the same). The menu part is just so I don't have to recreate the menu items too (launching a service where I'll host lots of the same type of site, many of which use the same content)
Comment #10
agentrickardYou might be affected by the bug here: #754092: Generating copy table prefix from selected subdomain don't work. Normally, I advise against prefixing menu tables.
Comment #11
chris207 commenteddoes it matter that I have a subdomain as my primary domain? "sub.mydomain.com" The documentation says when using a subfolder to not include the subfolder in the primary url. Is that the same with a subdomain?
Comment #12
agentrickardNo. It should not matter.
Comment #13
reikiman commentedI'm having this issue .. davidherron.com and pg.davidherron.com and drupal.davidherron.com and doctor-who.davidherron.com
Domain Access is the only Node Access module installed.
The primary domain is id=0
No table prefixing
I installed the module using define('DOMAIN_SITE_GRANT', FALSE); because I don't want the content assigned to all domains. I want content assigned to specific domain(s) and while there might be specific pages that need to be shared between domains, that is not at all the common case.
Actually I installed/uninstalled several times while experimenting. The DOMAIN_SITE_GRANT setting was done the third or fourth time.
When logged in I see the content as assigned to each site as I would expect. It's when logged out that the pages are showing Drupal's "Page Not Found"
I turned on the Domain Access Information block - and for one of the nodes it says Anonymous has NO access "by node access"
And
Found a CTools module (Custom Access Rulesets) which might plausibly maybe be a Node Access module; turned it off: no change
Rebuilt permissions: no change
Empty cache (w/ Devel module): no change
Rebuild menus (w/ Devel): no change
Disabled the Domain* modules (not uninstall): The nodes are now visible and the Access Permissions by User block shows anonymous access is now allowed.
SUCCESS! I then re-enabled the Domain* modules (recall- they were not uninstalled); it asked me to rebuild access permissions; then I revisited the page I've been using to test this. The Access Permissions by User block showed Anonymous access. Then using the other browser (that's not logged in; hence anonymous) I visited the node on a domain it's not assigned to, and got the Drupal "access denied" page, then visited the page using the domain it's assigned to and it came right up. Go to the domain home page and can view the expected content. Visiting home pages of the other domains, and they have the expected content.
Comment #14
agentrickardRe-reading #11. Never add a folder to a domain definition.
Comment #15
agentrickard