Main Content

Magnolia Community Forums: Get help with Magnolia: Personalization works on author but not on public


  • chrismenzel
    chrismenzel
    Full name: Christian Menzel
    Posts: 10
    Last post: May 18, 2017 11:14:11 PM
    Personalization works on author but not on public
    #1 by chrismenzel on May 16, 2017 2:37:46 PM

    Hi,

    we have an author and two public instances using the same war file.
    While personalization preview works on the author, it does not work on any public. Does anybody has an idea where to look for differences between the systems that may lead to this behavior?

    Regards
    Chris

  • rkovarik
    rkovarik
    Full name: Roman Kovařík
    Posts: 66
    Last post: May 16, 2017 3:22:16 PM
    Re: Personalization works on author but not on public
    #2 by rkovarik on May 16, 2017 2:49:12 PM

    Hi,
    which magnolia/personalization version do you use? You might encountered
    https://jira.magnolia-cms.com/browse/MGNLPN-237
    or
    https://jira.magnolia-cms.com/browse/MGNLPN-383

    Hope that helps
    Roman

  • chrismenzel
    chrismenzel
    Full name: Christian Menzel
    Posts: 10
    Last post: May 18, 2017 11:14:11 PM
    Re: Personalization works on author but not on public
    #3 by chrismenzel on May 16, 2017 3:09:44 PM

    Hi Roman,

    thanks for the answer, we are using Magnolia 5.4.12 with personalization 1.2.10.

    I'm not sure if the Jira issues apply to our problem, the preview app works, but does not show the correct page, when used on the public instance, what did MGNLPN-383 (Bypass trait detecting filters while in preview app) fix?

    Regards
    Christian

  • rkovarik
    rkovarik
    Full name: Roman Kovařík
    Posts: 66
    Last post: May 16, 2017 3:22:16 PM
    Re: Personalization works on author but not on public
    #4 by rkovarik on May 16, 2017 3:22:16 PM

    Since MGNLPN-383, the traits resolved from you browser were mixed with the selected traits from the preview app, this fix was not yet released for your branch.

    Have you tested a simple variant (a variant with time period from yesterday till tomorrow could do the trick)?

    Are the variants correctly resolved when accessing the site as anonymous user?

    Also make sure the page with variants was properly activated ('hasVariants' icon in the pages app), it might miss if you have activated e.g. from the JCR browser instead of the Pages app.

  • chrismenzel
    chrismenzel
    Full name: Christian Menzel
    Posts: 10
    Last post: May 18, 2017 11:14:11 PM
    Re: Personalization works on author but not on public
    #5 by chrismenzel on May 16, 2017 4:04:15 PM

    The page in question was activated as variant and has the audience defined as 'addtional trait'. We are testing the country trait in the preview app both on author and public. I verified on demopublic.magnolia-cms.com that the preview app also works on public instances. I'm logged in as superuser on all instances, so this should not be an security issue.

  • chrismenzel
    chrismenzel
    Full name: Christian Menzel
    Posts: 10
    Last post: May 18, 2017 11:14:11 PM
    Re: Personalization works on author but not on public
    #6 by chrismenzel on May 18, 2017 11:14:11 PM

    I looked in the code of the VariantResolverFilter and found the filter is only executed in preview mode, which is never the case on a public instance.

    Does that mean personalization never worked on public instances in version 1.2.x?

    We will now move to version 1.3.3 of the personalization modules, although 1.2.10 is still referenced in the 5.4.12 enterprise pom.

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/