1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Uploading Master Pages via FTP

Uploading Master Pages via FTP

10 posts, 0 answered
  1. Ravi
    Ravi avatar
    11 posts
    Registered:
    15 Dec 2009
    11 Mar 2010
    Link to this post
    Hello,

    We are currently using SiteFinity 3.7 and have recently come across a problem when trying to update a template via the Administration tool. A JavaScript error is returned when trying to publish the page, so to test I removed some of the external js files that we are using from the Master Page in question and re-uploaded it via FTP to see if it solves the error. However, when I then go back into the Administration, the page does not seem to have updated, and the reference to the js files are still there (even though I have overwritten the file via FTP).

    Can you please provide any advice on what I may be doing wrong? I am happy to provide you with a login to the SiteFinity admin, as well as a link to the FTP server if required.

    Kind regards,

    Ravi



  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Mar 2010
    Link to this post
    Hi Ravi Sundram,

    Try restarting the application. The old references should be updated.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Ravi
    Ravi avatar
    11 posts
    Registered:
    15 Dec 2009
    11 Mar 2010
    Link to this post
    Hi Ivan,

    Thank you for your prompt reply. To restart the application, I made a change to the web config file, resaved it, and the logged back into the Administration tool. Unfortunately, the same code still seemed to be there. Am I missing a step in the process? The page that is being edited is locked in SiteFinity, and I wonder whether this is causing the problem? If I override a page via FTP, shouldn't the changes be reflected automatically in the pages in the Administration tool?

    Kind regards,

    Ravi
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    12 Mar 2010
    Link to this post
    Hello Ravi Sundram,

    We are not able to reproduce similar problem. I suggest that you should try the following

    1. Add a master page to your project.
    2. Create a simple page and associate it with your master page.
    3. Go to Templates section and delete the master page from UI.
    4. Upload FTP a new "updated" master page or upload it through backend UI.
    5. Check the single page you have created.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Ravi
    Ravi avatar
    11 posts
    Registered:
    15 Dec 2009
    15 Mar 2010
    Link to this post
    Hello Ivan,

    I was able to update the Master file without our included JavaScript files, but there is still an error when trying to save a page with a particular template. We have a tried a lot of different avenues, but can't seem to locate what the problem is. Are you able to login and have a look at our Sitefinity setup if I provide you with login details? I am happy to organise for us to pay you for support time if this is required, as we need to get things working ASAP.

    Kind regards,

    Ravi

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    15 Mar 2010
    Link to this post
    Hi Ravi Sundram,


    "...there is still an error when trying to save a page with a particular template."

    What is the error you are getting now?

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Ravi
    Ravi avatar
    11 posts
    Registered:
    15 Dec 2009
    15 Mar 2010
    Link to this post
    When I go to Publish any of our templates, the following error JavaScript error occurs. I am using Internet Explorer 8:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MDDS; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Mon, 15 Mar 2010 22:12:21 UTC

    Message: Object doesn't support this property or method
    Line: 69
    Char: 9
    Code: 0
    URI: http://www2.assessor.com.au/clients/clients.aspx?cmspagemode=edit

    Appreciate any advice you can give me.

    Ravi 

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Mar 2010
    Link to this post
    Hello Ravi Sundram,

    The error you posted does not help, because there is no stack. Most probably one of the scripts you are reffering is not loaded and you are getting this error or you have some incorrect js in your page/template.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  9. Ravi
    Ravi avatar
    11 posts
    Registered:
    15 Dec 2009
    16 Mar 2010
    Link to this post
    Thanks Ivan, I thought that it would have to do with something in the JavaScript that is being included. I will be looking at changing it to try and resolve the problem, but this is what is on the templates pages that may be causing the error. You may have come across something like this before?

    sfHover = function() {
        var sfEls = document.getElementById("top_nav").getElementsByTagName("li");
        for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
                this.className+=" hover";
            }
            sfEls[i].onmouseout=function() {
                this.className=this.className.replace(new RegExp(" hover\\b"), "");
            }
        }
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);

    Thanks for the time you've spent trying to help me resolve the problem.

    Ravi
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    17 Mar 2010
    Link to this post
    Hello Ravi Sundram,

    I do not see a problem with the scrip itself, but some of the specific parameters you use could be the problem. Generally you could add some checks for undefined, null etc to some of the variables.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
10 posts, 0 answered