My macro's in Umbraco aren't working. I created my own, and they work fine on my local machines. I can put them on other installations of Umbraco too, however, the user controls should be on an website online where I can't get any macro work. Even not macro's I installed from a package (who are working really fine on my local machine).
I don't know how and where to troubleshoot. Please help!
For example: the uLogin package. When I insert the macro and click save and publish, I only get text 'Login' and 'Login Name' and no way to login. Below the html I copied from the page displayed in the browser.
The person who created the template did it for the first time and is no professional (I'm not a professional either!), can it be something is forgotten in the template?
Please help, I don't know where to start searching for the problem. It doesn't work on chid pages and not on parent pages.
update: the twitter package (xslt macro) is working, but the styling is really bad. So it seems the problem is with asp.net macro's
Does the macroes display something like Macro(); ?
Or do you get any error on the pages?
How have you done the deploy? I have suspision that you might have not mapped the macroes to the files but have just copied the files to the live-server, not creating the macroes and mapped them to the proper files.
The macro's doesn't show anything lik Macro(). The uLogin macro for example just shows the text 'login' and 'login name. I don't get any error messages. For the uLogin package, I just inserted the macro that was preinstalled. For my own packages I copied the .ascx file to usercontrols and the .dll file to the bin folder. Then I created the macro using the backend of Umbraco. The same procedure I followed already since I work with Umbraco for a few weeks.
Robin
edit: I installed Umbraco myself on the server, so no 'Umbraco-ready' webspace is used. I use umbraco V4.11.3 on the server.
edit2: The rendered content in the richtextfield in the backend in Umbraco looks exacht the same on my local machine and on the server, but the server version is not working. If you need more information, please let me know. I'm stuck with it.
Ok, can you tell me a bit more about you deploy from your local environment to your live environment? I suppose you simply just FTP the files, or how do you go about it?
The live environment is a project where several users are working on. Umbraco was installed with the use of the web platform installer. An empty site was chosen. The one who made the template, created then the masterpages with the backend of Umbraco and the contentpages were added. Everything went fine with that.
Ftp didn't work for some strange reason.
On my local website I use a starterkit. Can it be that something is missing in the template?
I've got something more now. I placed a <form> tag around my contenplaceholder and the content is rendered. Not perfectly how I would want it but that will probably just be some tweaking. I tried this before but did this on the wrong contentplaceholder (and yes, the contentplaceholder has a runat=server). Does someone has an explanation for this?
Ok, so the two environments are not really in sync...
That does not make it easy on yourself to do local development and deploy to live when a new feature is ready. I will recommend that you consider making sure the two environments are identical...otherwise you'll spend way to much time pulling your hair wondering why something is not working as expected.
It makes sense that the form tag should be placed around all of the content in order to make macroes based on user control work.
How do you reference your stylesheet and javascript files? If they're referenced relatively in the master then make sure to reference them absolutely...adding a forward slash to the reference like <link href="/css/style.css" /> for instance.
Is there an easy and recommanded way of keeping the two installations in sync? It should indeed have some advantages for adding new features and upgrading Umbracco and so on.
I use relatively references indeed. I learned it that way and did it always in the past, it's a lot easier then absolute. Is it possible you switched the names relatively and absolutely?
The easy approach would be to deploy from local to live using FTP, or Courier for instance.
For css and script references you should simply just use absolute paths to make sure that styles etc. is being applied correctly on the rest of your pages. What should the advantage of using relative url's be in this case? :)
When I should use absolute path's my live website shouldn't find the files. If I set then the path correct, then my local site wouldn't find the files. Sorry, but I really don't get it why you tell me I should use absolute paths :(
I will look for an ftp solution then. Thanks for your reply!
Not 1 macro is working
My macro's in Umbraco aren't working. I created my own, and they work fine on my local machines. I can put them on other installations of Umbraco too, however, the user controls should be on an website online where I can't get any macro work. Even not macro's I installed from a package (who are working really fine on my local machine).
I don't know how and where to troubleshoot. Please help!
For example: the uLogin package. When I insert the macro and click save and publish, I only get text 'Login' and 'Login Name' and no way to login. Below the html I copied from the page displayed in the browser.
On a good working page it should be something like this (got it from my local site):
The person who created the template did it for the first time and is no professional (I'm not a professional either!), can it be something is forgotten in the template?
Please help, I don't know where to start searching for the problem. It doesn't work on chid pages and not on parent pages.
update: the twitter package (xslt macro) is working, but the styling is really bad. So it seems the problem is with asp.net macro's
edit: republishing the nodes lik suggested here didn't solve the problem either http://our.umbraco.org/forum/templating/templates-and-document-types/15182-NET-Usercontrol-will-not-render-in-Template
Hi Robin
Does the macroes display something like Macro(); ?
Or do you get any error on the pages?
How have you done the deploy? I have suspision that you might have not mapped the macroes to the files but have just copied the files to the live-server, not creating the macroes and mapped them to the proper files.
Looking forward to hearing from you.
/Jan
Hi Jan
The macro's doesn't show anything lik Macro(). The uLogin macro for example just shows the text 'login' and 'login name. I don't get any error messages.
For the uLogin package, I just inserted the macro that was preinstalled. For my own packages I copied the .ascx file to usercontrols and the .dll file to the bin folder. Then I created the macro using the backend of Umbraco. The same procedure I followed already since I work with Umbraco for a few weeks.
Robin
edit: I installed Umbraco myself on the server, so no 'Umbraco-ready' webspace is used. I use umbraco V4.11.3 on the server.
edit2: The rendered content in the richtextfield in the backend in Umbraco looks exacht the same on my local machine and on the server, but the server version is not working. If you need more information, please let me know. I'm stuck with it.
Hi Robin
Ok, can you tell me a bit more about you deploy from your local environment to your live environment? I suppose you simply just FTP the files, or how do you go about it?
/Jan
Hi Jan
The live environment is a project where several users are working on. Umbraco was installed with the use of the web platform installer. An empty site was chosen. The one who made the template, created then the masterpages with the backend of Umbraco and the contentpages were added. Everything went fine with that.
Ftp didn't work for some strange reason.
On my local website I use a starterkit. Can it be that something is missing in the template?
I've got something more now. I placed a <form> tag around my contenplaceholder and the content is rendered. Not perfectly how I would want it but that will probably just be some tweaking. I tried this before but did this on the wrong contentplaceholder (and yes, the contentplaceholder has a runat=server). Does someone has an explanation for this?
Hi Robin
Ok, so the two environments are not really in sync...
That does not make it easy on yourself to do local development and deploy to live when a new feature is ready. I will recommend that you consider making sure the two environments are identical...otherwise you'll spend way to much time pulling your hair wondering why something is not working as expected.
It makes sense that the form tag should be placed around all of the content in order to make macroes based on user control work.
How do you reference your stylesheet and javascript files? If they're referenced relatively in the master then make sure to reference them absolutely...adding a forward slash to the reference like <link href="/css/style.css" /> for instance.
Hope this makes sense.
/Jan
Hello
Is there an easy and recommanded way of keeping the two installations in sync? It should indeed have some advantages for adding new features and upgrading Umbracco and so on.
I use relatively references indeed. I learned it that way and did it always in the past, it's a lot easier then absolute. Is it possible you switched the names relatively and absolutely?
Hi Robin
The easy approach would be to deploy from local to live using FTP, or Courier for instance.
For css and script references you should simply just use absolute paths to make sure that styles etc. is being applied correctly on the rest of your pages. What should the advantage of using relative url's be in this case? :)
/Jan
From wikipedia:
Absolute path:
Relative path
When I should use absolute path's my live website shouldn't find the files. If I set then the path correct, then my local site wouldn't find the files. Sorry, but I really don't get it why you tell me I should use absolute paths :(
I will look for an ftp solution then. Thanks for your reply!
is working on a reply...