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.
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?
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:
Please help guys, Thanks in advance :)
Thanks
Dharmesh
Waiting for reply guys :)
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
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?
is working on a reply...