Pedro, my forum lost all NAML - Need restore backup (Solved !)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Pedro, my forum lost all NAML - Need restore backup (Solved !)

jsmoraes
This post was updated on .
I don't know what happened, but all my NAML programation exist in Advanced Editor, but don't appear in Edit this Page as custom.
All my work to customize my forum was lost ? Nothing is working. I could not understand what happens. I think I need a restore from backup. Can you clear this problem ?
Thanks, jorge

http://astronomia-e-astrofotos.1069742.n5.nabble.com/

note: searching for the problem it seems something with macro topics_column.  The error message says: macro or method for avatar-control not found. It crashs in instruction n.avatar_control group="A"/

There are no image of avatar in the forum. Something was lost or damaged.

I did a test. I changeg the code of macro topics_column:

<macro name="topics_column" parameters="width,title,count">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] topics-column nowrap" style="[n.width_style.width/]">
                <table class="avatar-table">
                    <tr>
                        <td style="width:22px;border:none">

                            <n.avatar_control group="A"/>
                        </td>
                        <td class="nowrap" style="font-weight:bold;border:none">
                            <n.default. to="[t]Topics[/t]"><n.title/></n.default.>
                            <span class="weak-color" style="font-size:80%;margin-right:1.7em">(<n.count/>)</span>
                        </td>
                    </tr>
                </table>
            </td>
        </head>

The line now has tag for comments. You can see there, it is now as:  <!-- <n.avatar_control group="A"/> -- >
This line exist and is active in my forum to test NAML programation and it is not problem there.
http://jsmtstnaml.23557.n7.nabble.com/

My NAML code is working partially, now,  with this. But another error is showed in another macro: cell_link_and_star.  I don't undestand. Something is corrupted im my forum. Many ressources I created with NAML to edit messages aren't woking, too.

Please, restore from a backup if it is possible.
Observatório de Astronomia de Vilatur - W. Herschel
Saquarema - RJ - Brasil
http://www.astronomia.pousadavilatur.com.br
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Need restore backup

juanete
In my forum has also lost all the html and css settings
Error
no macro found to override
in (custom_tweak:starred_nodes_table:1) -
Full Stack Trace
nabble.naml.compiler.Program$5.compute(Program.java:176)
nabble.naml.compiler.Program$5.compute(Program.java:161)
fschmidt.util.java.FutureValue$1.call(FutureValue.java:11)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)
fschmidt.util.java.FastFuture.run(FastFuture.java:21)
fschmidt.util.java.FutureValue.get(FutureValue.java:16)
nabble.naml.compiler.Program.macros(Program.java:238)
nabble.naml.compiler.Compiler.(Compiler.java:63)
nabble.naml.compiler.Compiler.compile(Compiler.java:58)
nabble.naml.compiler.Program$1.get(Program.java:88)
nabble.naml.compiler.Program$1.get(Program.java:84)
fschmidt.util.java.Memoizer$1.call(Memoizer.java:30)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)
fschmidt.util.java.FastFuture.run(FastFuture.java:21)
fschmidt.util.java.Memoizer.get(Memoizer.java:37)
nabble.naml.compiler.Program.getTemplate(Program.java:280)
nabble.naml.compiler.Program.getTemplate(Program.java:272)
nabble.model.SiteImpl.getTemplate(SiteImpl.java:168)
nabble.view.web.template.UrlMapperNamespace.getUrlMapping(UrlMapperNamespace.java:62)
nabble.view.lib.UrlMapperImpl.getUrlMapping(UrlMapperImpl.java:44)
fschmidt.util.servlet.JtpContextServlet.service2(JtpContextServlet.java:357)
fschmidt.util.servlet.JtpContextServlet.service(JtpContextServlet.java:332)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)
org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)
org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:144)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
cachingfilter.CachingFilter.doFilter(CachingFilter.java:133)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
fschmidt.util.servlet.BadBotFilter.doFilter(BadBotFilter.java:74)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
fschmidt.util.servlet.ConnectionLimitFilter.doFilter(ConnectionLimitFilter.java:94)
nabble.view.lib.NabbleConnectionLimitFilter.doFilter(NabbleConnectionLimitFilter.java:26)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
nabble.view.lib.NabbleErrorFilter.doFilter(NabbleErrorFilter.java:21)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
org.eclipse.jetty.server.Server.handle(Server.java:349)
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
nabble.model.Executors$1$1.run(Executors.java:27)
fschmidt.util.executor.ThreadTimer$1.run(ThreadTimer.java:18)
fschmidt.util.executor.AbstractThreadPool$1.run(AbstractThreadPool.java:29)
java.lang.Thread.run(Thread.java:722)
“El software libre construye una sociedad mejor“
"Free software builds a better society"
— Richard Stallman
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Solved !

jsmoraes
This post was updated on .
In reply to this post by jsmoraes
Ok, now I understand what are happening: a new version of Nabble the column to avatar and star was removed. I agree with you, the star column is obsolete

http://support.nabble.com/Several-Customizations-now-gone-td7589680.html

Avatar now is optional, good idea. But we need search for all customized macro that use or make reference to star to remove them. And at least one to avatar, in macro topic_column: avatar-control

At Advanced NAML Editor, with search of the browser, search for:

1)  avatar-control

2)   n.star

If found erase the lines that call them or use tags to comments as showed above.

Am I right, Pedro ? At least my forum is working fine, now.... I hope
Observatório de Astronomia de Vilatur - W. Herschel
Saquarema - RJ - Brasil
http://www.astronomia.pousadavilatur.com.br
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Solved !

jsmoraes
This post was updated on .
note: if you prefer use the option to show avatar in front of message and answers, the lines on macro topic_column with reference to avatar in section head e section body must be deleted.

<head>
            <td class="[n.column_default_border/] topics-column nowrap" style="[n.width_style.width/]">
                <table class="avatar-table">
                    <tr>
                        <!-- 
                        <td style="width:22px;border:none">
                            <n.avatar_control group="A"/>
                        </td>
                        -->
                        <td class="nowrap" style="font-weight:bold;border:none">

<body>
            <n.current_node.>
                <td class="[n.column_default_border/]">
                    <table>
                        <tr>
                            <!-- <td valign="top" style="border:none">
                                <n.owner.avatar size="small" group="A"/>
                            </td> -->
                            <n.topics_column_start/>
                               <td class="adbayes-content" style="width:100%;padding-left:.3em;border:none;word-break:break-word">
                                <n.if.is_app>

The line n.topics_column_start controls the presence or not of avatar, now.

If you want only avatar in front of the message, and not in front of the answers, you must don't select show avatar in add-ons and let the code on section body like this:

<body>
            <n.current_node.>
                <td class="[n.column_default_border/]">
                    <table>
                        <tr>
                            <td valign="top" style="border:none">
                                <n.owner.avatar size="small" group="A"/>
                            </td>
                            <!-- <n.topics_column_start/>  -->
                               <td class="adbayes-content" style="width:100%;padding-left:.3em;border:none;word-break:break-word">
                                <n.if.is_app>

note 2: all this is necessary only if you made any override in macros that have call to STAR and AVATAR. The default macro was changed by Nabble, but your override not !
Observatório de Astronomia de Vilatur - W. Herschel
Saquarema - RJ - Brasil
http://www.astronomia.pousadavilatur.com.br
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Solved !

Pedro
Thanks for your explanation  jsmoraes.
Are there anything wrong with your forums, juanete and jsmoraes?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Solved !

GregChapman
This post was updated on .
The Star has gone missing from all forums!

How do I "remember" key messages now?  It's a facility I use all the time.

It's essential for finding those difficult to turn up in a search messages that I need to refer people to. I use it to store definitive answers to problems. I had over 60 pages stored, including all the key NAML edits that have been published and a host of other stuff I regarded as vital!

It all seems to have gone! Aaaargh!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Solved !

jsmoraes
This post was updated on .
In reply to this post by Pedro
Pedro, my forum is working fine now, after the correction in codes of overrides.

I found the line n.star only in these macros:

blog_post_header
cell_link_and_star
news_title_row


I tagged them as comments.
<!-- <n.star> -->

They are macros that I did override. I don't know if there was this line in others macros.  As I don't override them ... to me the default code is working fine.
Observatório de Astronomia de Vilatur - W. Herschel
Saquarema - RJ - Brasil
http://www.astronomia.pousadavilatur.com.br
Reply | Threaded
Open this post in threaded view
|

Re: Pedro, my forum lost all NAML - Solved !

Pedro
In reply to this post by GregChapman
I know Greg, I will do everything I can to help you.
My test forum.