I am using umbraco 7.10.3 and umbraco forms 7.0.2 and perplex forms v1.8.3. When i try to hit the backoffice i get white screen and in the console the following error:
It seems to be trying to request url /App_Plugins/PerplexUmbracoForms/js/ and not any specific js file in that folder. This gives a 403 error as you cannot list the contents of that folder. Anyone seen this before?
No idea why it would request the App_Plugins/PerplexUmbracoForms/js folder itself, rather than the files inside. The "Unknown provider" error indicates the perplexFormResource.js is not loaded at all, so perhaps indeed none of the .js files in the folder are loaded.
If that is the case, then @Dave's suggestion cannot be the cause of this, as that decorator would also not be loaded at all. Can you verify which JS files are loaded by looking at the network tab when refreshing?
Also, could you verify your package.manifest file (App_Plugins/PerplexUmbracoForms/package.manifest) does list all the files, i.e.:
So i created a new umbraco 7.10.3 install and then installed forms then perplex that all works fine. Looks like something else in our setup is causing the issue. We are going to try and step through code see if we can get to the bottom of it.
Ok so got it working but i had to do the following:
Created new folder in js folder called storm
Copied the perplexFormResource.js to this storm folder
Updated the package manifest to point to this new file ie "~/App_Plugins/PerplexUmbracoForms/js/storm/perplexFormResource.js",
Did a build and that now works. I did quick search through my solution to see if some other packages were maybe making use of that resources folder but could not find anything. This is really strange. We have it working but its a hack which is never good lol.
That sounds rather odd. So it's only about the PerplexUmbracoForms\js\resources folder? The other subfolders (controllers, decorators etc.) are fine? I suppose your new folder could be called anything, it does not have to be called storm does it?
Kind of sounds like there's some redirect going on that redirects any request to \some_path\resources\*.js to \some_path\? If it's not a server redirect, perhaps some Angular $http interceptor at work..
If you can figure it out I'd be glad to know what it was, but at least you have it working now... I don't think we are immediately renaming the resources folder in future versions (yet), we have to know what's going on first as this sounds like some solution specific issue unfortunately.
I did search my solution and could not find anything. We do use an interceptor I will try turning it off see if that works at least then I can tie it down.
javascript error
I am using umbraco 7.10.3 and umbraco forms 7.0.2 and perplex forms v1.8.3. When i try to hit the backoffice i get white screen and in the console the following error:
It seems to be trying to request url /App_Plugins/PerplexUmbracoForms/js/ and not any specific js file in that folder. This gives a 403 error as you cannot list the contents of that folder. Anyone seen this before?
Regards
Ismail
Tat looks like a routing nd path issue. i e it seems to know where to go , but not what to do..
I've written controllers that do that.. by accident mind you...
Seems like they override the synctree method of the navigation service
https://github.com/PerplexInternetmarketing/Perplex-Umbraco-Forms/blob/master/Perplex.Umbraco.Forms/App_Plugins/PerplexUmbracoForms/js/decorators/navigationservice.decorator.js
So could be related to this issue that was in 7.10.2
http://issues.umbraco.org/issue/U4-11167
Dave
Hi Ismail,
No idea why it would request the
App_Plugins/PerplexUmbracoForms/js
folder itself, rather than the files inside. The "Unknown provider" error indicates the perplexFormResource.js is not loaded at all, so perhaps indeed none of the .js files in the folder are loaded.If that is the case, then @Dave's suggestion cannot be the cause of this, as that decorator would also not be loaded at all. Can you verify which JS files are loaded by looking at the network tab when refreshing?
Also, could you verify your package.manifest file (
App_Plugins/PerplexUmbracoForms/package.manifest
) does list all the files, i.e.:Regards, Daniël
Daniel,
So i created a new umbraco 7.10.3 install and then installed forms then perplex that all works fine. Looks like something else in our setup is causing the issue. We are going to try and step through code see if we can get to the bottom of it.
Regards
Isamil
Daniel,
Ok so got it working but i had to do the following:
Did a build and that now works. I did quick search through my solution to see if some other packages were maybe making use of that resources folder but could not find anything. This is really strange. We have it working but its a hack which is never good lol.
Regards
Ismail
Hi Ismail,
That sounds rather odd. So it's only about the
PerplexUmbracoForms\js\resources
folder? The other subfolders (controllers
,decorators
etc.) are fine? I suppose your new folder could be called anything, it does not have to be calledstorm
does it?Kind of sounds like there's some redirect going on that redirects any request to
\some_path\resources\*.js
to\some_path\
? If it's not a server redirect, perhaps some Angular $http interceptor at work..If you can figure it out I'd be glad to know what it was, but at least you have it working now... I don't think we are immediately renaming the
resources
folder in future versions (yet), we have to know what's going on first as this sounds like some solution specific issue unfortunately.-- Daniël
I did search my solution and could not find anything. We do use an interceptor I will try turning it off see if that works at least then I can tie it down.
Regards
Ismail
Right found the culprit we had urlrewrite config rule:
doh
Ah I see, makes sense :-) Glad you found it!
is working on a reply...