All macros in rich editor disappeared after upgrading from 6.10!!
After upgrading to 7.0.2 it appeard to me that everything was ok.
However on all pages that use macros, most macros disappeared from where they are inserted in the text in the rich text editor. This has happend to about 90% of the macros in all pages.
But the worst is that if on one of those pages with the disappeared macro I re-publish, the macro also disappears in the rendered page! This is a a big showstopper as the only way to fix this is to manually enter again the macro with the correct settings into each page and publish again.
Trying to figure out what is wrong, I found one page that happens to have 2 macros, the first disappeard, the second appears normally. Here is it's source from the editor's "source" button.
Note that before the upgrade from v6 everything worked perfectly. What I am describing happend right after the upgrade.
I have noticed a pattern: The macros that don't appear (like the first one here) have parameters. The ones that seem ok did not have paramers.
Also note another problem in all the sources dumped from the source button of the editor: Before in v6, the 3d line would read (text in Greek)
<p class="statement">Παρακολουθήστε</p>
Now the greek letters are replaced with html encoded unicode description. It is valid html, but it makes the source code *very* hard to look at and work with if necessary! For example, if I want to manually enter a style class aroung a paragraph, it's impossible to find the paragraph I want in the text. Note that in the actual rendered page, the greek text is with normal characters, not html encoded.
I can confirm there is a problem with macro's in Rich Text Editor in Umbraco 7.0.2.
All the macro's worked perfectly fine in 7.0.1 but is broken in 7.0.2. But, to make it more difficult maybe, it's not with all macro's. What I noticed is that most macro's with paramaters are not rendering. The only reason I can think of is this difference:
The macro I have problems with in this case is a XSLT macro. This might be usefull. And yes, I'm still using one xslt macro ;)
@Harry, as for your first macro disappearing it's because the macro syntax that is shown is invalid:
Notice that it's ending is invalid, it should be closed properly like:
/> -->
instead of
?-->
Perhaps this is how the text has been persisted to the database for some reason?
Not sure what's happening with the encoding part as you mention, please create an issue for that and we'll look into it. It might be how the new tinymce deals with non-ascii chars.
I've read the issue and I have a similar problem. After migrating from v6.1.x to v7.1.4, the macros disappear in the RTE. When having a look at the HTML source, they are still here and are also still being displayed on the published page:
As already metioned, not all macros are affected, but it also affects macros that do only have alphanumeric characters.
When editing the page, publishin again, the macros are no more displayed on the published page either. The Macro syntax, as also already mentioned, is wrong after migrating to v7. Do you already have some more information about this problem that is not related to the given issue above?
Currently the only workaround is to remove the macro "code" from the HTML source and adding it again, then its working perfectly.
Yeah it is the formatting, but I don't know why this happens during the migration (standard procedure). The project has started with 6.0.3 and was upgraded once to 6.1.x so yes thats true.
Can you let us know what the syntax format was stored like when you were running 6.0.3, 6.1.x ? What I'm getting at, is was the macro syntax stored this way before trying to upgrade to 7.x?
That is the issue then, at some point Umbraco versions always put the macroAlias as the first attribute. In v7, the macro parser requires it to be the first attribute:
All macros in rich editor disappeared after upgrading from 6.10!!
After upgrading to 7.0.2 it appeard to me that everything was ok.
However on all pages that use macros, most macros disappeared from where they are inserted in the text in the rich text editor. This has happend to about 90% of the macros in all pages.
But the worst is that if on one of those pages with the disappeared macro I re-publish, the macro also disappears in the rendered page! This is a a big showstopper as the only way to fix this is to manually enter again the macro with the correct settings into each page and publish again.
Trying to figure out what is wrong, I found one page that happens to have 2 macros, the first disappeard, the second appears normally. Here is it's source from the editor's "source" button.
Note that before the upgrade from v6 everything worked perfectly. What I am describing happend right after the upgrade.
I have noticed a pattern: The macros that don't appear (like the first one here) have parameters. The ones that seem ok did not have paramers.
Also note another problem in all the sources dumped from the source button of the editor: Before in v6, the 3d line would read (text in Greek)
Now the greek letters are replaced with html encoded unicode description. It is valid html, but it makes the source code *very* hard to look at and work with if necessary! For example, if I want to manually enter a style class aroung a paragraph, it's impossible to find the paragraph I want in the text. Note that in the actual rendered page, the greek text is with normal characters, not html encoded.
Please help!
I can confirm there is a problem with macro's in Rich Text Editor in Umbraco 7.0.2.
All the macro's worked perfectly fine in 7.0.1 but is broken in 7.0.2. But, to make it more difficult maybe, it's not with all macro's. What I noticed is that most macro's with paramaters are not rendering. The only reason I can think of is this difference:
The macro I have problems with in this case is a XSLT macro. This might be usefull. And yes, I'm still using one xslt macro ;)
7.0.1:
7.0.2:
After the umb-macro-holder class the alias of the macro isn't there anymore. Don't know if this is the problem but it's something that I noticed.
I saw this commit on github from shannon it seems to me that it might be related: f0573fc68c0f795622951bf922809436a661dca7
If I can do anything to test or something. Please let me know because this is a big issue and need to be resolved quick.
Hi, an issue with these details have been logged here:
http://issues.umbraco.org/issue/U4-4142
@Harry, as for your first macro disappearing it's because the macro syntax that is shown is invalid:
Notice that it's ending is invalid, it should be closed properly like:
/> -->
instead of
?-->
Perhaps this is how the text has been persisted to the database for some reason? Not sure what's happening with the encoding part as you mention, please create an issue for that and we'll look into it. It might be how the new tinymce deals with non-ascii chars.
I made two testcases/installations for you. And made the zip available for you to download. Link is in your email.
Thanks will have a look and update the issue in the coming couple weeks.
Hallo Shannon
I've read the issue and I have a similar problem. After migrating from v6.1.x to v7.1.4, the macros disappear in the RTE. When having a look at the HTML source, they are still here and are also still being displayed on the published page:
As already metioned, not all macros are affected, but it also affects macros that do only have alphanumeric characters.
When editing the page, publishin again, the macros are no more displayed on the published page either. The Macro syntax, as also already mentioned, is wrong after migrating to v7. Do you already have some more information about this problem that is not related to the given issue above?
Currently the only workaround is to remove the macro "code" from the HTML source and adding it again, then its working perfectly.
Many Thanks
Andreas
That macro syntax doesn't look formatted correctly. Have you by chance upgraded to 6.1 from some very old version? macro syntax looks like this:
Yeah it is the formatting, but I don't know why this happens during the migration (standard procedure). The project has started with 6.0.3 and was upgraded once to 6.1.x so yes thats true.
Which migration are you referring to?
Can you let us know what the syntax format was stored like when you were running 6.0.3, 6.1.x ? What I'm getting at, is was the macro syntax stored this way before trying to upgrade to 7.x?
Unfortunately not, the latest backup is from version 6.1.6:
That appears to be the syntax in the html of the rte, but can you give me the stored value in the database for this rte field?
Sure:
Cool, that looks more normal. After you upgraded to 7.x and they stopped working, what does the syntax stored in the database look like ?
It then looks like:
Seems to be exactly the same :-)
Ok so something else is not right. What does this stored value look like after you remove and re-insert the macro and it starts working again?
After that it looks like
Seems still to be the same, only the attributes have switched.
That is the issue then, at some point Umbraco versions always put the macroAlias as the first attribute. In v7, the macro parser requires it to be the first attribute:
https://github.com/umbraco/Umbraco-CMS/blob/7.1.5/src/Umbraco.Core/Macros/MacroTagParser.cs
is working on a reply...