Page publishing not working in Page Editor after upgrading to Service Pack 18 (6.5.18.0) | Community
Skip to main content
Level 2
November 22, 2023
Solved

Page publishing not working in Page Editor after upgrading to Service Pack 18 (6.5.18.0)

  • November 22, 2023
  • 3 replies
  • 2678 views

This is a question if I have found a good solution to the issue and maybe someone will find it also helpful.

Error Message when using AEM Publish Workflows:
404 RESOURCE AT '/CONTENT/DE/STARTSEITE/TEST/DEVTEST/COMPONENTS/PAGE//LIBS/WCM/CORE/CONTENT/SITES/PUBLISHPAGEWIZARD.HTML' NOT FOUND

 

experience-manager-65/release-notes 

Known issues

 

 

 

 

Code with AEM 6.5.18 SP /libs/cq/gui/components/authoring/editors/clientlibs/core/js/actions/publish.js function navigateToPublishWizard(activator, path, editMode, schedule) { var params = ""; if (path && typeof path === 'string' && path.length > 0) { params += "item=" + path; } if (params.length > 0) { location.href = encodeURIComponent(activator.data('url')) + "?" + params + (editMode ? ("&editmode") : "") + (schedule ? ("&later") : ""); } }

 

 

 

 

 

 

 

// Replace OLD location.href = encodeURIComponent(activator.data('url')) + "?" + params + (editMode ? ("&editmode") : "") + (schedule ? ("&later") : ""); // Working NEW location.href = activator.data('url') + "?" + params + (editMode ? ("&editmode") : "") + (schedule ? ("&later") : "");

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @anselm_h_,

If I good understand, you want to apply some changes under /libs. If so, then this is not a proper approach, and it's against Adobe best practices.

To get rid of this issue you have few options:

If you want to go with your solution, you should use overlay mechanism. Which means you should create following structure

/apps/cq/gui/components/authoring/editors/clientlibs/core/js/actions/publish.js

that will reflect structure from /libs, and apply your changes under /apps.

Regarding implementation itself, if it works for you, then it should be acceptable change.

3 replies

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
November 23, 2023

Hi @anselm_h_,

If I good understand, you want to apply some changes under /libs. If so, then this is not a proper approach, and it's against Adobe best practices.

To get rid of this issue you have few options:

If you want to go with your solution, you should use overlay mechanism. Which means you should create following structure

/apps/cq/gui/components/authoring/editors/clientlibs/core/js/actions/publish.js

that will reflect structure from /libs, and apply your changes under /apps.

Regarding implementation itself, if it works for you, then it should be acceptable change.

Anselm_H_Author
Level 2
November 29, 2023

Will accept your reply, as it is helpful.

Level 3
February 15, 2024

For anyone in the future running into this issue as well, what I've found from here and elsewhere is:

1. We're currently on 6.5 SP18. According to the patch notes, 6.5 SP19 fixes this (see "Fixed Issues" -> "Page Editor")

 

Just going to paste the change log here as well to future-proof, since Adobe loves to kill entire sections of their site and leave dead links:

  • After upgrading an instance from AEM 6.5.17 and AEM 6.5.18, from inside the Page Editor, if you selected Publish Page, you are redirected to a URL that does not exist. The user should be redirected to the Publish wizard. (SITES-15856)

 

2. As an additional temporary workaround, authors are able to publish from the site admin, rather than within the page editor.

 

Otherwise, the accepted answer is a fine solution if you must stay on SP18 for some time instead.

July 24, 2024

What changes should I make to skip the re-direction to publishwizard? and still be able to publish the page and its references from editor page. PS: I am overlaying this.

Level 3
July 24, 2024

You can refer to my options listed in the latest post.