ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with MSM and related entries

September 18, 2009 1:34pm

Subscribe [1]
  • #1 / Sep 18, 2009 1:34pm

    TonyNibbles

    98 posts

    Hi there,

    I’m having a similar problem to http://ellislab.com/forums/viewthread/128306/P0/

    #site0 with mywebblog0
    - #site1 with myweblog1 related entries to #site0 mywebblog0
    - #site2 with myweblog2 related entries to #site0 mywebblog0

    ...where site 2 is a duplicate of site #1.

    [edit] Poked around with this now - when the site is duplicated, the relationships are not duplicated. Because the related entry ID is saved in the custom weblog field, the edit page in myweblog2 incorrectly states that there is a relationship present, when there is not.

    What would be useful is an SQL syntax/script to fix the relationships?
    With the number of weblogs I have to restore relationships with this will be around 6000+ entries to edit manually if I don’t find a solution to this duplicating site bug :(

    I am using the latest build, the Playa module *and* the built in relationships, however It’s happening on the entries that are using the basic built in relationships (these entries do not have any associations with the Playa entries). Disabling playa doesn’t do anything.

  • #2 / Sep 18, 2009 4:47pm

    Sue Crocker

    26054 posts

    First question:

    What extensions did you have in play when duplicating your site?

  • #3 / Sep 19, 2009 7:30am

    TonyNibbles

    98 posts

    Are you saying that ExpressionEngine *does* duplicate entries in the exp_relationships table when duplicating a site and that an installed extension could be conflicting?
    Is the duplicating site process designed to handle relationships?

    Because looking at cp.sites.php I can’t be sure that it is.

    I’m having to write a rather hefty bit of SQL to fix this, help would be appreciated.

  • #4 / Sep 19, 2009 4:57pm

    Greg Aker

    6022 posts

    We’re just trying to look at what extensions you had in play.  Not sure if a conflict could have existed, but looking for what you have.,

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases