Copied to clipboard

Flag this post as spam?

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


  • Dharmesh 50 posts 210 karma points
    Jun 15, 2017 @ 05:50
    Dharmesh
    0

    Cannot render a macro when there is no current PublishedContentRequest

    Hey guys,

    After getting payments done using merchello custom controller, i am redirecting user to my custom action inside this custom controller that is inheriting surface controller. In the returned view from this action, i have used a master layout. In master layout, there is a macro that is being rendered for all pages, but after finishing payment module, when i'm redirecting it to my custom controller action using redirect url, i'm getting this kind of error:

    Cannot render a macro when there is no current PublishedContentRequest

    Normally it works okay before i used to invoke custom controller for all pages.

    see the attached screenshot below:

    enter image description here

    Please help guys, Thanks in advance :)

    Thanks
    Dharmesh

  • Dharmesh 50 posts 210 karma points
    Jun 16, 2017 @ 05:08
    Dharmesh
    0

    Waiting for reply guys :)

  • Dharmesh 50 posts 210 karma points
    Jun 19, 2017 @ 14:25
    Dharmesh
    0

    Hey guys, please help me to resolve this issue, i'm very curious to know why this kind of issue normally occur and when :)

    Thanks & Regards

  • Tom 34 posts 154 karma points
    Aug 03, 2017 @ 09:27
    Tom
    0

    Hi Dharmesh,

    This usually occurs when you try to invoke the context when there is none. Can you perhaps show me the stacktrace in the logfile when the error occurs?

Please Sign in or register to post replies

Write your reply to:

Draft