Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to resolve Adobe Experience Manager(AEM) pointing to Search and Promote(S&P) Stage environment?

How to resolve Adobe Experience Manager(AEM) pointing to Search and Promote(S&P) Stage environment?


Recently i have faced a issues on AEM publisher pointing to Search and Promote(S&P) stage environment irrespective of the environment configuration in OSGI configuration( Adobe Search&Promote Integration )


How to confirm AEM is pointing to S&P stage environment:


Check the content of searchformxml property from /etc/cloudservices/search-promote/>/jcr:content and check the URL

Stage - http://stage.xxxxx.guided.ss-omtrdc.net
Live - http://xxxxx.guided.ss-omtrdc.net



The following steps can be followed as a workaround:


Decode the data if it is already encoded(HTML Decoder) - searchformxml property from /etc/cloudservices/search-promote/>/jcr:content

Remove

Change the following URLs to point to live configuration

//content.atomz.com/xxxxx/stage/autocomplete_data.js to //content.atomz.com/xxxxx/publish/autocomplete_data.js
//content.atomz.com/xxxxx/stage/autocomplete_styles.css to //content.atomz.com/xxxxx/publish/autocomplete_styles.css

Change the action to point to live URL

http://stage.xxxxx.guided.ss-omtrdc.net to http://xxxxx.guided.ss-omtrdc.net


e.g - this will be different based on your S&P configuration



1
xxxxxx/publish/autocomplete_styles.css?sp_css_param=1" />]]>
]]>



]]>

0 ]]>
(function(){var searchTextBoxId='q';var mboxContainerId='tntMBox';var mboxName='searchParamMbox';function removeEventSimple(obj,evt,fn)
{if(obj.removeEventListener)
obj.removeEventListener(evt,fn,false);else if(obj.detachEvent)
obj.detachEvent('on'+evt,fn);}
function addEventSimple(obj,evt,fn)
{if(obj.addEventListener)
obj.addEventListener(evt,fn,false);else if(obj.attachEvent)
obj.attachEvent('on'+evt,fn);}
function setSearchFormMbox()
{mboxDefine(mboxContainerId,mboxName);mboxUpdate('searchParamMbox');removeEventSimple(el,'keydown',setSearchFormMbox);}
var el=document.getElementById(searchTextBoxId);if(el)
addEventSimple(el,'keydown',setSearchFormMbox);})();
]]>

searchform
searchform
http://xxxxxx.guided.ss-omtrdc.net




q










If the same S&P configuration with live option is enabled in any other server then copy and replace the value of searchformxml in /etc/cloudservices/search-promote/>/jcr:content

I have faced this issue in Adobe Experience Manager(AEM) 6.2 version


This post first appeared on Albin's, please read the originial post: here

Share the post

How to resolve Adobe Experience Manager(AEM) pointing to Search and Promote(S&P) Stage environment?

×

Subscribe to Albin's

Get updates delivered right to your inbox!

Thank you for your subscription

×