Copied to clipboard

Flag this post as spam?

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


  • Netspud2K 17 posts 37 karma points
    Aug 11, 2009 @ 15:39
    Netspud2K
    0

    Unable to save Template or Scripts changes

    Hi All,

    I am new to umbraco, but experiencedwith CMS, IIS and ASP.NET.

    Version: umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)

    On 2003 Server, patch and upto date.

    There are certain areas (but not all), for sure Templates and scripts, when I click the save button NOTHING happens, no error messgaes.

    Now I have tried this with a completely new install with nothing in it, created a new template/script, but can't save any changes.

    I have given Network Services, IIS user, and IIS_WPG read, write mod, etc to entire directory structure.

    It is as if the button just doesn't register.  I also can not delete anything by right clicking and delete.

    Oh yes, I have tried in IE7, Mozilla (what ever is current) and Chrom (where ever is current), all the same.

    Help please, as I am trying to assess this CMS tosee if we start using it.  So far I must say apart from these few problems it looks fantastic.

    Just remembered, IE, shows these script errors (in the yellow triangle thing with the ! in the bottom left of the window) for every page loaded:

    Line 124, char1, 'Sys' is undefined

    Line 212, char1, 'Sys' is undefined

    Line: 18, Char 13, 'umbraco' is undefined

    Not sure this is related, and the save button does work in other areas where the 'sys' error still appears.

    Let me know if you need more info.

    Thanks 

  • Netspud2K 17 posts 37 karma points
    Aug 11, 2009 @ 15:42
    Netspud2K
    0

    Forgot to mention, running on a mysql database, if that is important.

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 11, 2009 @ 15:55
    Peter Dijksterhuis
    0

    Are you able to create new ones, save them and delete them?

    If that is the case, it is most likely a permission-error (or even better, an ownership-problem).

    If that also doesn't work, you must try to upload the umbraco and umbraco-client-folders again to the server (and check permissions on those folders). According to the js-error you get, the problem seems to be in that area.

    HTH,

    Peter

  • Netspud2K 17 posts 37 karma points
    Aug 11, 2009 @ 19:50
    Netspud2K
    0

    Thank you for your reply.

    We are running this on a 1and1 virtual server.

    When testing the whole directory structure had r/w/re/m/l Network Services, IIS user, and IIS_WPG, so unless I have missed an important account, I dont think it can be permissions.

    The umbraco user is an administrator.

    I will try a fresh download, and go again.

    I can create, but I cannot delete our modify.

    Thanks

    Stephen

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 11, 2009 @ 20:58
    Peter Dijksterhuis
    0

    Still sounds a bit like permission problems to me though.

    Do you know with what account the Application-pool is running? Give that user full permission as well. If you do not know that user, try giving ASPNET full control and see if that makes a difference.

    Peter

  • Netspud2K 17 posts 37 karma points
    Aug 12, 2009 @ 16:34
    Netspud2K
    0

    Hi Peter,

    Thanks for your reply.

    The app-pool is being run by Network services, which already has full rights.

    I gave ASPNET read,write, modify etc, still no joy.

    I have worked using a browser on the actual server in question, no difference.

    I do remember very early on I had to ensure that the ASP.NET function was on the "web services extensions" list as allowed.  But that was done ages ago.

    Perhaps you can tell me where these things are stored, are they files or database entries, as there appear to be both.  the I can test a little further on the rights front.  BUT I don't think any user is setup on the server with permission to write but not modify.  This is the only way I could see me being able to create a file but not be able to modify it.

    Are you sure we are on the correct path, as the button simply appears to do nothing, there are no error messages what so ever, no indication I have even pressed the button.  Is there some easy way I can debug the button to ensure that a click is even registering?

    It seem strange it works for somethings and not others also.

    Thank you for your assistance

    Stephen

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 12, 2009 @ 16:42
    Peter Dijksterhuis
    0

    Stephen,

    scripts, templates, css and media is stored as files (only a reference is saved in the DB, not the data itself). I think when permissions aren't correct, you don't get a message (at least that's what I've seen a few times on my own sites)

    You can check if something happens by looking in the umbracoLog-table (I hope you have access to reading that, there's no tool to use with mySQL for that if I'm correct). Everytime you save a file, an entry will be made in that table. Also errors should be logged there, so, something in there might give you a clue.

    Did you try and upload the directories I mentioned? After that, make sure your browser-cache is empty before you access it again.

    Peter

  • Netspud2K 17 posts 37 karma points
    Aug 12, 2009 @ 19:33
    Netspud2K
    0

    Hi Peter,

    I am getting more and more confused here.

    I did a search on the umbraco directory for text strings the same as those in templates.  I found nothing.

    I did however find an exact match in the database in cmstemplate.  Editing this did not show up in the administrator interface though.

    So in short I am unable to find the related files or database entries.

    I did check the log you mentioned, but there are virtually not enties in it what so ever.  Mostly just login info.  Do I need to increase loggin somewhere?

    I have tried various browser witht the cache cleared, still no luck.

    I also tried using "Creative Website Starter 2.0.2" it installs fine, with no errors, the website works, but I still can't edit the template files!!!

    I am very confused.

    OK I have used advanced settings, and allow everyone full rights, didn't help

    I went into dos and did an attrib -r -h -s /s on the whole directory, didn't help

    any more suggestions? I am at a loss.

    Just to confirm I take it I am in the correct place.  To edit templates, I go into administration, Settings, templates, and edit here.

    Thanks

  • Netspud2K 17 posts 37 karma points
    Aug 12, 2009 @ 19:49
    Netspud2K
    0

    extra notes.

    I stopped the directory from inheriting rights, and did most from scratch, still no luck!

  • Chris Koiak 700 posts 2626 karma points
    Aug 12, 2009 @ 19:59
    Chris Koiak
    0

    The save of templates and scripts may be generating a 500 error but not showning it.

    Try opening umbraco in FF, and watch the ajax save call via Firebug. Check that the response isn't a 500 error.

    If the package installed worked ok I'm not convinced it'll a permissions issue.

  • Netspud2K 17 posts 37 karma points
    Aug 12, 2009 @ 20:56
    Netspud2K
    0

    The HTML code relating to the button:

    <img style="border-width: 0px;" alt="Save" src="/umbraco/images/editor/save.gif" onclick="doSubmit()" onmousedown="this.className='editorIconDown'" onmouseup="this.className='editorIcon'" onmouseout="this.className='editorIcon'" onmouseover="this.className='editorIconOver'" class="editorIcon" title="Save"/>

    Now I am new to firebug, but I think the javascript is translating to this:

    error:

    umbraco is not defined
    http://adomainname.co.uk/umbraco/settings/editTemplate.aspx?templateID=1042
    Line 18

    related code:

    <script language="javascript" type="text/javascript">
            function doSubmit() {
                umbraco.presentation.webservices.codeEditorSave.SaveTemplate(jQuery('#ctl00_body_NameTxt').val(), jQuery('#ctl00_body_AliasTxt').val(), jQuery('#ctl00_body_editorSource').val(), '1042', jQuery('#ctl00_body_MasterTemplate').val(), submitSucces, submitFailure);
            }

    same sort of error when I try to delete:

    error:

    umbraco is not defined
    http://adomainname.co.uk/umbraco/js/umbracoDefault.js
    Line 431

    related code:

    function deleteThis() {
        var doDelete = true

        if (currentApp == "content" && nodeID == '-1')
            doDelete = false;

        if (doDelete) {
            var tempID = nodeID;
            var tempNodeType = nodeType;
            var tempNodeName = nodeName;

            if (confirm(parent.uiKeys['defaultdialogs_confirmdelete'] + ' "' + nodeName + '"?\n\n')) {
                deleteNode = node;
                nodeID = tempID;
                nodeType = tempNodeType;
                nodeName = tempNodeName;
                umbraco.presentation.webservices.legacyAjaxCalls.Delete(tempID, "", tempNodeType, refreshDelete);
            }
        }
    }

    Now I am not the worldsbest Javascript guy, so any help much appreciated.

    Is this a bug or a problem with my config?

    Let me know if more detail is required.

     

    Thanks

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 12, 2009 @ 22:00
    Peter Dijksterhuis
    0

    Have you tried allready to upload the umbraco and umbraco_client folder again? It has happened before that one or more files gone missing during the process there. (which might cause your js-errors).

  • Netspud2K 17 posts 37 karma points
    Aug 12, 2009 @ 23:05
    Netspud2K
    0

    I deleted the whole installation, and complete re-installed the whole lot.  I will try a re-download, when I get a chance, but if it was a damaged zip, there would have been an error.  I will keep you informed, if the new downloaded file makes any differrence.

    Thanks

  • Chris Koiak 700 posts 2626 karma points
    Aug 12, 2009 @ 23:25
    Chris Koiak
    0

    It's a shame you're having such a hassle. It's usually no where near this hard!

    You've not got any plugins running in your browser? Sometimes these can break JS. Also clear all your cache... have you tried switching it off and back on again?! ;-)

     

  • Netspud2K 17 posts 37 karma points
    Aug 13, 2009 @ 11:04
    Netspud2K
    0

    Hi Chris,

    Tried a total of 5 browsers over 2 machines, none with common plugins.

    Restarted server and PC serveral times.

    So I don't think it is browser related.

    Thanks

  • Chris Koiak 700 posts 2626 karma points
    Aug 13, 2009 @ 19:07
    Chris Koiak
    0

    If you watch the initial umbraco/umbrao.aspx and the edit content page loads in Firebug (Net tab) are there any 404 errors generated. I'm having a guess here, but maybe a JS file is throwing a 404?

    Or, are there any JS errors occuring before you try and save. I'm wondering if an earlier error has broken the instantiation/creation of the umbraco object.

    Nothing seems to jump to mind as an obvious solution.

  • Netspud2K 17 posts 37 karma points
    Aug 15, 2009 @ 15:49
    Netspud2K
    0

    Hi Chris,

     

    Thank you for your suggestion, I have collected this information, it is a bit of information overload for me, From this can you tell where I should at least look please.

    Getting these "404 Not found" errors on initial login:

    http://admonainname.co.uk/WebResource.axd?d=2tGtuQ282Miw5QVYiaofBA2&t=633684431716874178

    http://admonainname.co.uk/ScriptResource.axd?d=7KbltrMzdiuZLMfTg6kTZv2NUKEpYnIvhzsxfrygy4v0G2L_wyMXCqouDkFmYRdGw1p1udWzbYrvR_GsRRBHLJpWqiLQIDdx1nyAQjk-r3k1&t=633855172383344972

    http://admonainname.co.uk/ScriptResource.axd?d=7KbltrMzdiuZLMfTg6kTZv2NUKEpYnIvhzsxfrygy4v0G2L_wyMXCqouDkFmYRdGw1p1udWzbYrvR_GsRRBHLFTaA3qIFQYHUUMFIA9nAB81&t=633855172383344972

    http://admonainname.co.uk/umbraco/webservices/legacyAjaxCalls.asmx/js

    http://admonainname.co.uk/WebResource.axd?d=2tGtuQ282Miw5QVYiaofBA2&t=633684431716874178

    http://admonainname.co.uk/ScriptResource.axd?d=7KbltrMzdiuZLMfTg6kTZv2NUKEpYnIvhzsxfrygy4v0G2L_wyMXCqouDkFmYRdGw1p1udWzbYrvR_GsRRBHLJpWqiLQIDdx1nyAQjk-r3k1&t=633855172383344972

    http://admonainname.co.uk/ScriptResource.axd?d=7KbltrMzdiuZLMfTg6kTZv2NUKEpYnIvhzsxfrygy4v0G2L_wyMXCqouDkFmYRdGw1p1udWzbYrvR_GsRRBHLFTaA3qIFQYHUUMFIA9nAB81&t=633855172383344972

    Once I navigate to a a template I get these additional errors:

    http://admonainname.co.uk/WebResource.axd?d=2tGtuQ282Miw5QVYiaofBA2&t=633684431716874178

    http://admonainname.co.uk/ScriptResource.axd?d=7KbltrMzdiuZLMfTg6kTZv2NUKEpYnIvhzsxfrygy4v0G2L_wyMXCqouDkFmYRdGw1p1udWzbYrvR_GsRRBHLJpWqiLQIDdx1nyAQjk-r3k1&t=633855172383344972

    http://admonainname.co.uk/ScriptResource.axd?d=7KbltrMzdiuZLMfTg6kTZv2NUKEpYnIvhzsxfrygy4v0G2L_wyMXCqouDkFmYRdGw1p1udWzbYrvR_GsRRBHLFTaA3qIFQYHUUMFIA9nAB81&t=633855172383344972

    http://admonainname.co.uk/umbraco/webservices/codeEditorSave.asmx/js

    http://admonainname.co.uk/umbraco/webservices/legacyAjaxCalls.asmx/js



    This error appears in the console, when the save button is clicked:

    "umbraco is not defined
    doSubmit()editTemp...teID=1042 (line 18)
    function onclick(event) { doSubmit(); }(click clientX=27, clientY=30)editTemp...nt/seq/11 (line 2)
    [Break on this error] umbraco.presentation.webserv...).val(), submitSucces, submitFailure);\r\n"

    umbraco is not defined
    http://admonainname.co.uk/umbraco/settings/editTemplate.aspx?templateID=1042
    Line 18

    I am guessing your suggestion may be correct, I am not sure how to use this to confirm this isthe case.

     

    Thank you

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 15, 2009 @ 16:30
    Douglas Robar
    1

    The .axd files are from asp.net ajax. If they can't be found or read, that will cause all kinds of weird problems.

    The easiest thing to do is re-install ajax on your webserver. This *should* solve any file permission issues, etc.

     

    Let us know what you find out.

    cheers,
    doug.

  • Chris Koiak 700 posts 2626 karma points
    Aug 15, 2009 @ 17:23
    Chris Koiak
    0

    It definately looks like the problem is the "404 not found" errors. I'd be pretty certain there will be a root cause to why all these files are not found, Doug's suggestion sounds a good place to start.

    However if it doesn't work then try the solution here http://www.velocityreviews.com/forums/t113260-axd-404-file-or-directory-not-found-error.html

    OR

    I also found a similar problem on experts-exchange...

    "The problem you are experiencing with WebResource.axd is most likely due to a HTTP compression problem on the web server. If you have HTTP compression turned on, then try turning it off and seeing if the problem disappears." http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Microsoft_IIS/Q_24045751.html

     

  • Netspud2K 17 posts 37 karma points
    Aug 24, 2009 @ 02:37
    Netspud2K
    0

    Hi Guys,

    Thank you for your further suggestions,  still no luck.

    re-installed AJAX

    Reinstalled umbracor

    Don't have compression turned on

    Still exactly the same.

    No verified file exists turn on for .axd files

    no wildcard apps

    Any more suggestions?

  • Chris Koiak 700 posts 2626 karma points
    Aug 24, 2009 @ 14:13
    Chris Koiak
    0

    Can you web server serve .axd files? Just guessing here, but try creating a .axd file (it can be empty) and see if you can view it from your browser.

  • Netspud2K 17 posts 37 karma points
    Aug 25, 2009 @ 16:31
    Netspud2K
    0

    Hi All,

    I suspect things are actually worse now, I am getting less errors, but I think there are not more problems!  But ultimately it might be an easier fix.

    Using firebug, and the net table, when I login I get this:

    ------------------------------------------------------------------------------------

    500 internal server error

    http://admonainname.co.uk/umbraco/webservices/legacyAjaxCalls.asmx/js

    Host: adomainname.co.uk
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)
    Accept: */*
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://adomainname.co.uk/umbraco/umbraco.aspx
    Cookie: updateCheck=1; UserContext=df38f537-2a43-45ec-be22-1f9de118c7f3; ASP.NET_SessionId=trd4wovzei5tk145zwfzoxmu

    Content-Length: 97
    Content-Type: text/html
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Date: Tue, 25 Aug 2009 14:17:00 GMT

    <html><head><title>Error</title></head><body>%1 is not a valid Win32 application.
    </body></html>

    ----------------------------------------------------------------------------------------

    Skipping ahead to the loading of the template page I get this:

    ----------------------------------------------------------------------------------------

    http://adomainname.co.uk/umbraco/webservices/codeEditorSave.asmx/js

    Host: adomainname.co.uk
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)
    Accept: */*
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://adomainname.co.uk/umbraco/settings/editTemplate.aspx?templateID=1042
    Cookie: updateCheck=1; UserContext=df38f537-2a43-45ec-be22-1f9de118c7f3; ASP.NET_SessionId=trd4wovzei5tk145zwfzoxmu

    Content-Length: 97
    Content-Type: text/html
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Date: Tue, 25 Aug 2009 14:25:45 GMT

    <html><head><title>Error</title></head><body>%1 is not a valid Win32 application.
    </body></html>

    AND

    http://adomainname.co.uk/umbraco/webservices/legacyAjaxCalls.asmx/js

    Host: adomainname.co.uk
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)
    Accept: */*
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://adomainname.co.uk/umbraco/settings/editTemplate.aspx?templateID=1042
    Cookie: updateCheck=1; UserContext=df38f537-2a43-45ec-be22-1f9de118c7f3; ASP.NET_SessionId=trd4wovzei5tk145zwfzoxmu

    <html><head><title>Error</title></head><body>%1 is not a valid Win32 application.
    </body></html>

    -------------------------------------------------------------------------------------------------------

    In short I suspect my efforts have broken something even worse now!

    Any help would be great!

    Stephen

  • Netspud2K 17 posts 37 karma points
    Aug 25, 2009 @ 16:45
    Netspud2K
    0

    Extra note!

    I am getting lost in everything I have done.

    And Chris asked me to see if my server can do an AXD file.  So I created an empty file called text.axd, and this is what I got:

    Server Error in '/' Application.

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /test.axd


    Is that what I should expect to get Chris?

    More to the point should I be able to find some (this is me getting back to being somewhat lost) axd files in the umbraco directory some where, when I run a search there are no actual files with axd.  I can't rememeber if there previously were.

    Thank you again everyone for your help.


    Stephen

  • Netspud2K 17 posts 37 karma points
    Aug 25, 2009 @ 16:51
    Netspud2K
    0

    This is how my IIS server is configure for axd files. (hopefully there will be an image shown too, if I did it right)

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

  • Netspud2K 17 posts 37 karma points
    Aug 25, 2009 @ 16:52
    Netspud2K
    0

    This is how my IIS server is configure for axd files. (hopefully there will be an image shown too, if I did it right)

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

  • Netspud2K 17 posts 37 karma points
    Aug 25, 2009 @ 16:53
    Netspud2K
    0

    This is how my IIS server is configure for axd files. (hopefully there will be an image shown too, if I did it right)

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

    If it doen't show this time, it canbee seen here

  • Netspud2K 17 posts 37 karma points
    Aug 25, 2009 @ 18:21
    Netspud2K
    0

    AAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGGGGGGGG!!!!!!!!!!!!!!!!!!

    OK Everyone, AFTER HOURS AND HOURS AT THIS, it is a STUPID 64bit problem!

    I had to change the IIS application extensions from using the 64bit version to the 32 bit version of aspnet_isapi.dll for .asmx files.

    That's it, it save is working now!

    I was doing some other searching on the web for HTTP 500 errors and legacyajaxcalls.asmx when I came across someone talking about their .asmx extension not being registered.  So natuarally I made sure mine was.  Then as I have had some other problems with 64Bit versions, I though what the H I have tried just about everything else, I will just change this.

    So THANK YOU ALL SO MUCH.  I am sure I will be back for more assistance.  But I will try changing any 64bit associations to 32bit first!.

    I hope should anyone else hit the same problem, this will help them find the solution.  Although I suspect most would give up before getting this far!

  • Chris Koiak 700 posts 2626 karma points
    Aug 25, 2009 @ 20:48
    Chris Koiak
    0

    Glad you got it fixed netspud

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies