Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Not able to find content fragment in published pages in publisher instance

Avatar

Level 2

 I have one query regarding Content Fragment, I have Custom Content Fragment in my Author Instance and i dragged and dropped on to my page and i replicated that project and manually published that content fragment as well...but i'm not able to see content fragment on my page in publisher instance but i'm able to see the content fragment under Assets in publisher instance. Please, Help me out.

 

Below is Author Instnace Page

Adarsh1998_0-1620711374227.png

 

Below is the Publisher Instance Page

Adarsh1998_1-1620711405188.png

 

21 Replies

Avatar

Community Advisor

Hi @Adarsh1998 ,

 

Have you validated that the page has been published successfully and not in replication queue. Also check through CRXDE if the page has CF data stored on node. Do you see any issue in logs?

 

Also, check if on publish http://localhost:4503/api/assets.json gives you a JSON which has added CF details.

Avatar

Community Advisor

Hi @Adarsh1998 

 

Content Fragments are created out of content fragment models and to make the content fragment work on publish instance, the content fragment model also needs to be available on publish instance.

 

Please check if you have the content fragment along with model is also available on publish instance.

Check the replication queue and see if all the contentn fragments are pushed to publish instance and nothing is pending in queue.

 

You can check the error.log in publish instance which will give the cause of error why the content fragment is not loading in publish.

 

Also in publish instance you do not have to use editer.html in the URL. the direct page URL can be accessed without any selector as the editor.html is only used on author instance.

 

Thanks!

Avatar

Level 2
Appreciate your help, the CF is published and able to see it under assets & CF Models are even present in publisher. when i'm trying to use the we-retail simple content fragment on we-retail pages then i'm able to see it in publisher instance but when i'm using that we-retail simple content fragment in any of my custom pages it is not available in publisher instance

Avatar

Community Advisor
Please check the error log and see what errors are coming there.

Avatar

Community Advisor
You can find it under your aem installation location crx-quickstart/logs/error.log.

Avatar

Level 2
log: 2021-05-11 10:43:56 - INFO - publish : Agent updated. State is enabled and valid 2021-05-11 10:43:56 - INFO - publish : Agent started. 2021-05-11 11:05:02 - INFO - publish : Creating content for path /content/orchard/Language_Master/en/cf 2021-05-11 11:05:02 - INFO - publish : Create new HttpClient for Default Agent 2021-05-11 11:05:02 - INFO - publish : * Auth User: admin 2021-05-11 11:05:02 - INFO - publish : * HTTP Version: 1.1 2021-05-11 11:05:02 - INFO - publish : Sending POST request to http://localhost:4503/bin/receive?sling:authRequestLogin=1 2021-05-11 11:05:02 - INFO - publish : sent. Response: 200 OK 2021-05-11 11:05:02 - INFO - publish : ------------------------------------------------ 2021-05-11 11:05:02 - INFO - publish : Sending message to localhost:4503 2021-05-11 11:05:02 - INFO - publish : >> POST /bin/receive HTTP/1.0 2021-05-11 11:05:02 - INFO - publish : >> Action: Delete 2021-05-11 11:05:02 - INFO - publish : >> Path: /content/orchard/Language_Master/en/cf 2021-05-11 11:05:02 - INFO - publish : >> Handle: /content/orchard/Language_Master/en/cf 2021-05-11 11:05:02 - INFO - publish : >> Referer: about:blank 2021-05-11 11:05:02 - INFO - publish : >> Content-Length: 0 2021-05-11 11:05:02 - INFO - publish : >> Content-Type: application/octet-stream 2021-05-11 11:05:02 - INFO - publish : -- 2021-05-11 11:05:02 - INFO - publish : << HTTP/1.1 200 OK 2021-05-11 11:05:02 - INFO - publish : << Date: Tue, 11 May 2021 05:35:02 GMT 2021-05-11 11:05:02 - INFO - publish : << X-Content-Type-Options: nosniff 2021-05-11 11:05:02 - INFO - publish : << Content-Type: text/plain;charset=utf-8 2021-05-11 11:05:02 - INFO - publish : << Content-Length: 28 2021-05-11 11:05:02 - INFO - publish : << 2021-05-11 11:05:02 - INFO - publish : << ReplicationAction DELETE ok. 2021-05-11 11:05:02 - INFO - publish : Message sent. 2021-05-11 11:05:02 - INFO - publish : ------------------------------------------------ 2021-05-11 11:05:02 - INFO - publish : Replication (DELETE) of /content/orchard/Language_Master/en/cf successful.

Avatar

Community Advisor
You need to check this in publish instance. Clear the logs. Then refresh the page where you are using the content fragments. now see what is the error coming in the error.log.

Avatar

Level 2
error log is showing, 10.05.2021 14:47:01.626 *INFO* [127.0.0.1 [1620638221447] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.content.durbo.DurboImporter imported content in 177ms for durbo request on path: /content/dam/orchard/content-fragment/aboutus 10.05.2021 14:47:01.627 *INFO* [127.0.0.1 [1620638221447] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Processed replication action in 178ms: ACTIVATE of /content/dam/orchard/content-fragment/aboutus 10.05.2021 14:47:01.784 *INFO* [sling-threadpool-d29a5ec9-c4f5-4d3a-a11f-33f3db7ccbc0-(apache-sling-job-thread-pool)-3-<main queue>(ref-updater/update)] com.adobe.cq.updateprocessor.impl.ProcessorImpl No suitable processing config found for resource type 'orchard/components/content/contentfragment'; skipping.

Avatar

Community Advisor
Can you move the content package manually to publish and try if it's working or not? I still doubt if you have the content fragments available in publish.

Avatar

Level 2
Even after uploading the content package manually, it is not working.

Avatar

Community Advisor
Can you access the content fragment directly on publish and see if it's rendering the content? If it's not rendering then we need to see why the content fragment is not loading as the content fragment model is already present.

Avatar

Level 2

No, I can't access on the page. Please asutosh help me out from this issue.

Avatar

Community Advisor

Hi @Adarsh1998 ,

 

Do you see the same project specific nodes under /conf folder what you see in author. Basically just to check you have templates and configuration available on publish.

 

conf-crxde.png

Avatar

Level 2
Content fragment and model are present under Assets->files->content fragment folder in publish instance

Avatar

Level 2
I can't access any component, content, assets in publish instance on the page.

Avatar

Community Advisor

Hi @Adarsh1998 

 

If you are not able to access the component, content in publish instance, then it's definitely an issue with the code. I will suggest you to deploy the same code that you have on author to publish and try again.

Avatar

Community Advisor

@Adarsh1998  Is that a custom component in which you are dropping CF, might be something is breaking somewhere in there, do you see any console error or something in server logs.