XSLT Editor throws alert: FAILURE[object Object] Options
stephan@tewonder.se
Posted: Thursday, August 16, 2007 2:42:11 PM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
Is this an issue related to my computer, my staging server, or Umbraco?

When i click save i get a javascript alert saying: "FAILURE[object Object]"

This occurs even if I reboot my computer (leading me to believe that the issue is not related to my browser), and it still occurs after I've done an IIS Reset (leading me to believe that it's not related to Umbraco).

Even if I have an empty xslt file, clicking save throws an error.
stephan@tewonder.se
Posted: Thursday, August 16, 2007 2:47:23 PM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
Stephan Kvart wrote:

Is this an issue related to my computer, my staging server, or Umbraco?

When i click save i get a javascript alert saying: "FAILURE[object Object]"

This occurs even if I reboot my computer (leading me to believe that the issue is not related to my browser), and it still occurs after I've done an IIS Reset (leading me to believe that it's not related to Umbraco).

Even if I have an empty xslt file, clicking save throws an error.

I'm dizzy...

What I wanted to say was that I believe it's related to Umbraco, and not my stuff.

The site is running on Win 2003, with SQL 2005 and Umbraco 3.0.2.

Steph
jes133
Posted: Monday, August 20, 2007 3:11:56 AM
Rank: Enthusiast

Joined: 4/19/2007
Posts: 14
I am seeing the same thing when saving XSLT in umbraco version 3.02. Any ideas?
sthurein
Posted: Monday, August 20, 2007 4:36:10 AM
Rank: Newbie

Joined: 7/12/2007
Posts: 7
I had a similar problem before. Check that you don't have two templates/documenttypes with the same name.
stephan@tewonder.se
Posted: Monday, August 20, 2007 7:45:50 AM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
Checked, and there wasn't any...
PeterD
Posted: Monday, August 20, 2007 11:05:21 AM

Rank: Fanatic

Joined: 7/20/2006
Posts: 449
Location: NL
Did you copy the XSLT-files manually to the XSLT-folder?
If so, delete them (not in umbraco, but from the file-system). Make sure you have a backup of the files before you delete them.

After that, create new XSLT-files in umbraco.

I had the same experience and found out that when you manually copy the xslt-files, the permissions of the file might not be set correct.

Hope this helps,
PeterD

Working on an events-calendar with recursion. Post requests on my blog!
hohios
Posted: Monday, August 20, 2007 1:34:47 PM
Rank: Devotee

Joined: 7/22/2006
Posts: 64
Location: Heraklion Crete
Check if you use, umbacoRedirect as property alias to your start node. I had problem with my start node and xslt saving was broken.
stephan@tewonder.se
Posted: Monday, August 20, 2007 1:38:10 PM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
I have this, but it's a requirement for my site. How can this possibly affect the XSLT editor? And if it does, I'd say it's a bug. (And yes, I've reported it @ codeplex) :)

Thanks though!
robm
Posted: Friday, August 24, 2007 9:40:18 AM
Rank: Enthusiast

Joined: 6/22/2007
Posts: 29
Its a file ownership permissions problem. Go into your XSLT folder - select all the .xslt files. Right click - goto the Security tab - in the Groups or User Names your should have Network Service - if you don't click add and type it into the box - check the name then hit OK. - the with Netwrok Service highlighted clcik the Full Control check box in the permissions box below. Click OK and that should do it. Remove all the garbage that was created (tmp xslt files) when it couldn't overwrite them.

Hope this works for you. It did for me :)

Rob
stephan@tewonder.se
Posted: Friday, August 24, 2007 10:04:11 AM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
Tried it, didn't work. You did get my hopes up though :)
ckoiak
Posted: Friday, August 24, 2007 2:47:48 PM
Rank: Enthusiast

Joined: 8/23/2007
Posts: 12
I was also experiencing this error, but managed to get past it by doing the following...

1. Load your xslt that causing problems in to the editor
2. Delete the associated file in the xslt folder
3. Press save on the editor

I can only guess that this means the issue is related to a file locking or permissions problem. Anyway, it worked for me.

Cheers,

Chris

stephan@tewonder.se
Posted: Friday, August 24, 2007 3:07:45 PM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
Tried this too, didn't work out either.
ckoiak
Posted: Friday, August 24, 2007 3:09:25 PM
Rank: Enthusiast

Joined: 8/23/2007
Posts: 12
Have you also cleaned out all the temp xslt files from the directory?
stephan@tewonder.se
Posted: Friday, August 24, 2007 3:12:26 PM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
Cleaned out everything. Still throws the javascript alert. This is weird.
anubis_1977
Posted: Monday, August 27, 2007 12:11:51 PM
Rank: Enthusiast

Joined: 6/22/2007
Posts: 16
I had the same problem. Copy the code, then delete the xslt in the umbraco tree and in your xslt/folder. Then create a new xslt with the same name and copy your code in it. This should work. Did in my installation.
I think there is a problem with the permissions, when copying files physically from one folder to the other.

Martin
pph
Posted: Monday, August 27, 2007 2:03:34 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 148
Location: aalleren, Denmark
The Alert should in *theory* never be shown, it would only happen if the request to the webservice saving the file did something unexpected.

Just did some debugging on it, and yes it does seem that the Failure Alert is caused by the umbracoRedirect property on a top node.

Now we just need to figure out why it does that...

Anyway, on my test installation I got passed the alert by turning off debugging in the editor.. this *should* fix the problem for now.

Umbracian Personal blog: Objects.dk
stephan@tewonder.se
Posted: Monday, August 27, 2007 2:08:04 PM

Rank: Devotee

Joined: 11/9/2006
Posts: 47
Location: Stockholm
In my book, this is definetly a bug :) Another way around it, in my case, is to write my XSLT by hand, and just paste the files. This is so far only in my dev. environment, so it's not a big issue, I doubt that there's gonna be much XSLT development in the production environment anyway.

But thanks for putting so much effort into solving my problem.

/S
pph
Posted: Monday, August 27, 2007 2:33:50 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 148
Location: aalleren, Denmark
Yes it's absolutely a bug :D

will get a fix for it uploaded to the source (as soon as I get my codeplex access setup again...)



Umbracian Personal blog: Objects.dk
nascent
Posted: Saturday, November 17, 2007 8:00:42 AM
Rank: Newbie

Joined: 11/17/2007
Posts: 4
Hi
Was this resolved?

I have added umbracoRedirect on my dummy root node in the contents
and now this bug appear for me.
I have removed umbracoRedirect from the document template but the bug
is still presented.

Any suggestions?

TIA
anandsd
Posted: Thursday, December 06, 2007 6:27:45 AM
Rank: Enthusiast

Joined: 2/14/2007
Posts: 12
* Remove read-only permission
* Add security permissions

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.