Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Petr Svoboda 17 posts 68 karma points
    Mar 03, 2015 @ 13:42
    Petr Svoboda
    0

    Problem with publishing

    Hello,

    i connect to Umbraco CMS by core Umbraco libraries from external application.

    When i publish content by:

    Attempt status = contentService.SaveAndPublishWithStatus(newPage);

    status returned as 100% ok.

    But new content in Umbraco has error (Oops: this document is published but is not in the cache (internal error)):

    I check this in this examples:
    Notice:
    Directly in Umbraco CMS project this work ok.
    It don't work only when I connect to Umbraco CMS by Core Umbraco libraries from external application.
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 03, 2015 @ 14:16
    Jan Skovgaard
    0

    Hi Petr

    What exact version of Umbraco 7 are you using?

    Untill the 7.1.0 release it was a known issue http://issues.umbraco.org/issue/U4-3145 /Jan

  • Petr Svoboda 17 posts 68 karma points
    Mar 03, 2015 @ 15:07
    Petr Svoboda
    100

    I use 7.2.1.

    But I have this problem, when I publish form external library outside Umbraco CMS (i use only core libraries).

    My solution:

    I create RefreshContent.ashx in umbraco and after publish I call it from external library. Umbraco after it refresh this file: *\UmbracoCms.7.2.1\UmbracoCms.7.2.1\App_Data\umbraco.config (call http://localhost:52000/RefreshContent.ashx)...

    public class RepublishAll : IHttpHandler
        {
            public void ProcessRequest(HttpContext context)
            {
                context.Response.ContentType = "text/plain";
                context.Response.Write("Ok.");
                umbraco.library.RefreshContent();
            }
    
            public bool IsReusable
            {
                get
                {
                    return false;
                }
            }

    Another solutions is "handmade", right mouse button in CONTENT in the Umbraco CMS backend and press "publish entire site"... But it's not automatish solution...

    Or you can delete *\UmbracoCms.7.2.1\UmbracoCms.7.2.1\App_Data\umbraco.config and restart web application...

Please Sign in or register to post replies

Write your reply to:

Draft