Copied to clipboard

Flag this post as spam?

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


  • Saidi Oussama 28 posts 211 karma points
    Sep 24, 2018 @ 12:30
    Saidi Oussama
    0

    No physical template file was found for template XXXX

    Hi, I'm upgrading Umbraco to 7.6.0 after install in BO when click Developer tab I get those errors "No physical template file was found for template"enter image description here

    In Network inspector I get this

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    Any Ideas ?

  • Bernard Moes 16 posts 138 karma points
    Sep 24, 2018 @ 18:06
    Bernard Moes
    0

    Have you checked if the files are actually there? If not then you could download them online or copy/overwrite the umbraco folder contents from the packages folder in your project.

    If the files are already there then you could try to update the client dependency version in /config/clientdependency.config. That triggers the server to update the file cache.

  • Saidi Oussama 28 posts 211 karma points
    Sep 25, 2018 @ 09:02
    Saidi Oussama
    0

    Hi Bernard,

    Yes I already copied umbraco & umbraco_client folder from source but same error. Can you please give me the path where should those files exist ?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Sep 25, 2018 @ 09:21
    Dave Woestenborghs
    0

    Hi Saidi,

    I see the urls are pointing to /_mvc/Default

    While they should be pointing to umbraco/BackOffice/Api/

    Did you change something in your configuration ?

    Dave

  • Saidi Oussama 28 posts 211 karma points
    Oct 10, 2018 @ 09:06
    Saidi Oussama
    0

    Hi Dave

    How can I change this ?

    Oussama

  • Saidi Oussama 28 posts 211 karma points
    Nov 09, 2018 @ 10:21
    Saidi Oussama
    100

    Hello, I fixed the issues :D The problem was that there is is a url rewrite and MapRoute that redirect the call of Web Services to _mvc/Default in UsiteModelBuilder project so the call get 404. So I add MapRoute for BackOfficeApi url.

    And the result is from

        public class RegisterMVCRoutes
    {
        public static void Setup()
        {
    
            RouteTable.Routes.MapRoute(
                "mvc", // Route name
                "_mvc/{culture}/{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", culture = "Default", id = UrlParameter.Optional } // Parameter defaults
                );
        }
    }
    

    To

        public class RegisterMVCRoutes
    {
        public static void Setup()
        {
            RouteTable.Routes.MapHttpRoute(
                    name: "BackOfficeApi",
                    routeTemplate: "umbraco/BackOffice/Api/{controller}/{action}/{id}",
                    defaults: new { id = RouteParameter.Optional }
                );
            RouteTable.Routes.MapRoute(
                "mvc", // Route name
                "_mvc/{culture}/{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", culture = "Default", id = UrlParameter.Optional } // Parameter defaults
                );
        }
    }
    

    Thank you all
    Oussama

Please Sign in or register to post replies

Write your reply to:

Draft