Cannot publish, save or reject on page preview

Graham Mott asked on August 22, 2019 10:32

Hello,

I have 2 types of page type which should use the page preview tab on my MVC site running 12.0.29. The first type: articles has had this preview enabled fine for a while, but I have just got around to doing it on our second page type: reports.

After adding the Page tab to reports it visually looks fine, showing the preview completely, but when I attempt to reject, save or publish an article nothing happens. Archive works fine.

Thanks, Graham

Recent Answers


Dmitry Bastron answered on August 22, 2019 11:15

Hi Graham,

Please check that the repository for your new page tab contains LatestVersion and Published methods. Example from Dancing Goat MVC:

public Home GetHomePage()
{
    return HomeProvider.GetHomes()
        .LatestVersion(mLatestVersionEnabled)
        .Published(!mLatestVersionEnabled)
        .OnSite(SiteContext.CurrentSiteName)
        .Culture(mCultureName)
        .CombineWithDefaultCulture()
        .TopN(1);
}
0 votesVote for this answer Mark as a Correct answer

Graham Mott answered on August 22, 2019 11:21

Hi Dmitry, they are both included in the report repository

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 22, 2019 12:50

Are there any errors in the Event log or in the browser console?

0 votesVote for this answer Mark as a Correct answer

Graham Mott answered on August 22, 2019 12:53

Nope, the buttons aren't reacting as if clicked in any way.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 22, 2019 12:56

Are you using any custom scripts in the MVC app? The preview and Page tab are loading the code from the MVC app - so I would try e.g. following the Medio clinic tutorial and create a clean view and controller to see if it makes any difference.

0 votesVote for this answer Mark as a Correct answer

Graham Mott answered on August 22, 2019 13:06

There aren't any custom scripts that will affect the report page in a different way to the article page. The report's publishing works fine when on the content tab, it only doesn't work on the page tab.

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on August 22, 2019 13:08

Are there any errors in browser dev console regarding JS when you click these buttons?

1 votesVote for this answer Mark as a Correct answer

Graham Mott answered on August 22, 2019 15:13

Yeah I have an error on the article page that works : Uncaught ReferenceError: MediumEditor is not defined at VM11040 scripts:1

But that does not appear on report page that doesn't

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 26, 2019 10:40

Could you please try replicating the issue using sample Dancing Goat MVC site? If you will be able to reproduce it, please send the code and steps to our support for inspection.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.