Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to enable "Attach Files" button

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am able to installed JForum 2.1.6 version and enabled auto login feature using a cookie for SSO. Every thing is working fine.

But "Attach Files" button is not showing in "new topic" and "post reply" pages even it is enabled in configuration.

Groups-> Permissions->Attachements

Enable Attachments : Aloow All (Option selcted)

Other than the above change do i need to update any where else?


Thanks,
Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This bug is fixed already.

For now, create the directory "tmp" on the root of your application context, and give it full write access.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By modifying group permissions "Attach Fiels" button is enabled.

But I have another issues now.

1) From Mac machine i submitted post with attachment but attachement is not showing only mesg is displaying for that post.

2) When i try to attach 1 MB file i am getting the following exception:


java.lang.NullPointerException
at net.jforum.JForumExecutionContext.enableRollback(JForumExecutionContext.java:272)
at net.jforum.JForum.service(JForum.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


Please help me on these issues.


Thanks,
Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rafael.

Uploading big file is working fine after tmp directory created.

But "attach files" button is not working from mac machine. We tried from both safari and firefox browsers.

Is there any fix for this issue?


Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hm, there must be a problem with the javascript code.

You can create an issue in the bug tracker - http://www.jforum.net/jira

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

Here is the few more details:

I traced two issues with safari browser on Mac OS.

1) If the form input field doesn't have name then onclick event is not firing in safari browser. (Example: It is allowing me to post empty message)

2) When a post a topic with attachement following two fields are not submitting. I mean Safari browser not able to submit these fields.

i) file_#N# ex: file_0,file_1,etc.
ii) comment_#N# ex:comment_0,comment_1,etc

I already added above information as comment to the existing bug.

We need this to be fixed asap.

Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You know Javascript? As I don't have a mac available to test, it would be great if you could help us on this issue.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes,I know the javascript.
Sure i can spend some time to fix this issue.

Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great then! It will be very welcome.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tell me, How can i help you?

Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just making the javascript code / attachment panel work on Mac

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

In validatePostForm javascript function i tried the following two ways to print form input fileds:

1) With the following code it is displaying all fields in IE but in Safarai file_#N and comment_#N fileds are not listing

for (var i=0; i<38; i++) {
var theElement = f.elements[i];
alert("Name: " + theElement.name + " Value : " + theElement.value + " Type : " +theElement.type);
}

2) With the following code it is displaying all fields in both IE and Safarai. Including file_#N and comment_#N fileds also.

var x = document.getElementsByTagName('input');
for (var i=0;i<x.length;i++) { >
var fl = x[i];
alert("Name: " + fl.name + " Value : " + fl.value + " Type : " +fl.type );
}


Do you have any idea why it is not listing in the above script?

Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Haven't you inverted the order of the scripts? :P

Does Safari supports document.getElementsByTagName() ?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, Safari support document.getElementsByTagName().

http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/DOM.html

I didn't change any order. I just added the above code to display the input fields.

Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

I am unable to uplaod file from Mozilla browser on my application but i am able to do it in your "Test Forum"

Is there any bug fix for this?

Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

Finally i am able to make it work with safari and mozilla browsers. In header.html one of my developer customozed the header.html file in that process we missed few <tr> and <td> tags. Once i added those it worked fine. Actually there is no javascript issue

I uploaded on your community test forum now it is working fine :!: . I don't know why it didn't work for me few days back.


Thanks,
Gopal



[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, great to know that.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic