MySQL query errors 'duplicate alias'

gyaur - August 12, 2007 - 08:44
Project:Multiple Domains
Version:5.x-1.x-dev
Component:url rewrite functionality
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I have installed Multiple Domains to a site with several subdomains, using the All but default configuration. My goal was to separate content using subdomains, but have the master site carry all posts.

While posts are correctly shown on relevant subdomains, every link seems to point to the domain with the lowest weight, that is: every link in any post on the www.somedomain.com site points to blog.somedomain.com, the latter being the domain with the lowest taxonomy weight set.

Is this behavior expected or intended? How do I go about changing links to point to the relevant subdomain or, at the least, the master site.

#1

gyaur - August 12, 2007 - 12:47

Whoops, sorry! Re-reading this I realized that instead of every link it should read: Edit, Comment and Read more links.

#2

DZone - September 10, 2007 - 21:59

I can confirm that we see the same behavior. I don't believe this is the proper behavior. It also manifests itself when you create content on one of the sites and it redirects you to the site with the lowest weight when you save it.

#3

gemini - September 20, 2007 - 19:31

I'm having the same issue as well.

#4

DZone - September 28, 2007 - 13:10

In the custom_url_rewrite method, we fixed this by keeping track of when we had a domain match earlier in the cycle and then we break out of the loop of domains when we hit the page match. What's happening here is that we're seeing a page match, but there's nothing to break out of the loop of the domains.

#5

nedjo - September 28, 2007 - 14:24
Category:support request» bug report

@DZone.com

I'm interested to see your changes, could you post a patch?

#6

dimanjy23 - October 1, 2007 - 20:32
Title:Links point to wrong subdomain» MySQL query errors 'duplicate alias'

If you have some problems in MySQL queries while using multidomain with other modules, just rename the alias for MySQL queries from 'tn' to 'txn' (for example). I found this bug using multidomain with taxonomy_menu module.

#7

swe3tdave - January 9, 2008 - 08:32
Status:active» duplicate

This is a duplicate of http://drupal.org/node/161087

 
 

Drupal is a registered trademark of Dries Buytaert.