Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rick 31 posts 81 karma points
    Jan 13, 2012 @ 16:20
    Rick
    0

    can't get it to work

    Hi,

    I installed your package. I made an Dutch root node (called "nl") and then made a copy of it called "en" for English (I checked 'Relate copied items to original').

    Then I added hostnames to both root nodes: *.nl and *.com and added the right languages to both nodes.

    At the short documentation you write:
    The package includes CopyDocumentToRelatedOnPublish.cs in /app_code. This Document OnPublish event handler will automatically create a copy of the new Document to all other language nodes and relates them.

    However, I can't get this to work. If I create a new page within one of the root nodes, it isn't copied to the other root node. I can make a copy by hand for every subpage, but then on my website the language switch doesn't switch domains. For instance, when I'm at the Dutch site at *.nl/over-ons/, the language switch links to *.nl/about/ instead of .com/about/.

    Any idea about what I'm doing wrong?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 13, 2012 @ 17:00
    Jan Skovgaard
    0

    Hi Rick

    what version of Umbraco are you using?

    /Jan

  • Rick 31 posts 81 karma points
    Jan 13, 2012 @ 17:07
    Rick
    0

    4.7.1

  • Yannick Smits 321 posts 718 karma points
    Jan 15, 2012 @ 00:31
    Yannick Smits
    0

    Have you tried republishing the root node?

  • Rick 31 posts 81 karma points
    Jan 16, 2012 @ 07:08
    Rick
    0

    Hi,

    Yes, tried to republishing the root node, subnodes, complete website... Didn't help so far.

  • Rick 31 posts 81 karma points
    Jan 16, 2012 @ 10:35
    Rick
    0

    Ok. I've deleted everying now and started again.

    1. I created a root node, called 'en', saved and published
    2. Then I go to Manage hostnames and added www.domain.com.dev (development url), and choose English (United States) as language
    3. Then I right click and choose Copy, selected Content as the root node, and checked 'Relate copied items to original'
    4. Then I change the name of this copy to 'nl', then save and publish
    5. Finally I go to Mange hostnames and added www.domain.nl.dev (development url), and choose Dutch (Netherlands) as language

    The language switch at the homepage now works. Then my next step is:

    1. Right click 'en' > Create , saved and published

    And now there is no copy of this file in the 'nl'-tree. Which, according to your instructions, should be there...

    So.. What I'm doing wrong?

  • Yannick Smits 321 posts 718 karma points
    Jan 16, 2012 @ 12:36
    Yannick Smits
    0

    could be that the CS files in your app_code aren't compiling. I remember this happening when there is a problem with  a DLL that is not loading properly. Are you working from a clean install? Could it be that you have some legacy DLL's from previous umbraco versions or packages?

  • Rick 31 posts 81 karma points
    Jan 16, 2012 @ 12:51
    Rick
    0

    Yes, I did a clean install last week. Normally I could try to overwrite te bin folder with the latest download, but I see 4.7.1.1 has been released, and can't find the download of 4.7.1 anymore...
    Furthermore I haven't installed any packages yet, besides yours and Relation Types.

    To be honest I don't want to do a new installation if there still is another option, because I did quite some work in this site now.

    Any other ideas?

  • Yannick Smits 321 posts 718 karma points
    Jan 16, 2012 @ 12:53
    Yannick Smits
    0

    to me it sounds like its not related to this package but to the fact that code in your app_code is not executed. To figure out why you'll either have to debug or find the thread where this is discussed on our (don't remember where). Sorry I can't help you more.

  • Rick 31 posts 81 karma points
    Jan 16, 2012 @ 13:28
    Rick
    0

    Thanks for your help so far. :-)
    I just tried it with a simple file:

    public class Test
    {
        public static string HelloWorld()
        {
            return "Hello world";
        }
    }

    And when I call this in the masterpage, it IS executed.

      <%
      Response.Write(Test.HelloWorld());
      %>

    So it seems only the code of your package isn't executed. Because the steps I do (as described a few posts ago), is right?
    Maybe I have to try a new installation of Umbraco after all...

  • Yannick Smits 321 posts 718 karma points
    Jan 16, 2012 @ 13:34
    Yannick Smits
    0

    hmm strange. Can you debug the cs file? Anything in the Log table?

    your steps seem right.

  • Rick 31 posts 81 karma points
    Jan 16, 2012 @ 14:55
    Rick
    0

    Finally! Everything is working now :D

    I deleted all pages again. Installed your package again. Created the nodes again. And everything is working as it should be now.

    I guess indeed there was something wrong with a file. Maybe deleted a file, a corrupt file, I don't know... But I'm glad it works now. Thanks for your help :-)

     

  • Rick 31 posts 81 karma points
    Jan 17, 2012 @ 11:09
    Rick
    0

    Hm, I cheered too soon. This morning it didn't work again. And couldn't get it to work anymore.

    So finally I did a complete new Umbraco installation, exported my document types from the old site, imported them in the new one. And installed just your package. Nothing else. Result: still not working.

    Very, very strange, because this is a clean Umbraco installation. So I'm wondering if more people got problems with this package.
    I think I'm going to make a manual link between two pages now, because I spend already two days to this problem.

    If you have any ideas, it would be welcome.

  • Giorgos Grispos 145 posts 179 karma points
    Feb 13, 2012 @ 21:06
    Giorgos Grispos
    0

    Hi Yannick,

    Sorry to say but I got the same problem, clean 4.7.1.1 installation with six languages.

    I am doing all steps and when I am trying to create a new node doesn't get copied to the related, no errors, nothing at the log table.
    Just to mention that I am under a subdomain record, there is no domain at this account at the moment so I have a single dns record that works for as long as the development will take place so the hostnames are based on the subdomain. As far as I understand there is no problem with this and your code, just confirm please!

    Any other directions from Rick on how he finally proceed with his project would be great!

    Cheers, Giorgos

  • Yannick Smits 321 posts 718 karma points
    Feb 13, 2012 @ 21:27
    Yannick Smits
    0

    My razor code is not too complicated so I think you should be able to debug it fairly easily. I haven't ran into this problem and can't reproduce it unfortunately.

  • Rick 31 posts 81 karma points
    Feb 14, 2012 @ 07:03
    Rick
    0

    I think that I know what the problem was. I had both a local version and and a version on our develop machine. Usually I work local and publish the changed files to the develop server, but I think this gave some problems with the App_Data-folder. Or other caching files... Since I'm working directly on the developmachine (where I also got two physical domains, .com.dev and .nl.dev), I've got no problems anymore!

     

  • Giorgos Grispos 145 posts 179 karma points
    Feb 14, 2012 @ 14:48
    Giorgos Grispos
    0

    HI again,

    Finally worked for me too, actually I compile the cs file and drp the dll to the bin folder and everything is working fine so far!
    It seems that the cs code didn't execute properly from the App_Code folder, weird isn't it?

    Cheers, Giorgos

Please Sign in or register to post replies

Write your reply to:

Draft