Camen Design Forum

failed after first post

append delete retsam

Hi everyone, I keep getting the error "The connection was reset" when i access index.php, after I post the first point(ie. test.rss ). But after I delete the test.rss through FTP, I could access index.php again. Any ideas will be appreciated. :)

retsam added on

actually, it failed when I was submitting the first post.
and the URL it was posting didn't seem right? ( /forum/#nnf_new-form )

Reply RSS

Replies

append delete #1. Kroc

What OS are you running the server on? I get this a lot on OS X in general. I think it's possibly an Apache bug or something, it’s quite harmless, but odd.

Could you check your Apache error log and see if anything is appearing for the error.

append delete #2. retsam

Hi Kroc, thanks for the quick response. :)

here's the server info:
Server Name server42.000webhost.com
Apache ver. 2.2.19 (Unix)
PHP version 5.2.*
MySQL ver. 5.1

retsam added on

sorry. can't access Apache error log with a free account.

append delete #3. Kroc

Could you run the software on your own computer and check if it’s happening there? With free hosting, you're not going to get the sort of support that’s going to be able to narrow down the source of this problem. It could be browser, Apache, NNF itself, UNIX or any particular server configuration done by the hosts.

append delete #4. retsam

I tried it on another server, it worked.
===================
Apache version 2.2.22
PHP version 5.2.17
Operating system linux
===================

and the posting URL appears correctly like "/forum/test#nnf_new-form"

retsam added on

before it would be like " /forum/#nnf_new-form", failed to get the title?

append delete #5. Akerhielm

I had the same issur when trying to test at 000webhost.com too.

append delete #6. retsam

@Akerhielm, I see. Hope we can solve the problem. I like NNF. It's pretty creative and looking nice.

append delete #7. Kroc

Hmm, so it could be an NNF issue, but we'd need to debug it. Do either of you know PHP?

Firstly, please check that your PHP version is at least 5.2.3, ideally 5.2.6 and not 5.2.1 or 2!

Given how you describe the URL, it sounds like the error is occuring somewhere in the submit new thread process, which is in index.html, lines 17 to 68. https://github.com/Kroc/NoNonsenseForum/blob/master/index.php

append delete #8. Akerhielm

The error I'm getting is not a real HTTP error, but rather, _no reply at all_.
I started narrowing down where things go wrong and in my case, apache's rewrites are not even happening, but that shouldn't keep the index from displaying, should it?

http://nnf.4å.se/ <-- screwed up forum.
http://nnf.4å.se/thread.php?file=fisk <-- displaying the thread works.
http://nnf.4å.se/fisk <-- rewrites don't; 404

(on this install i've uncommented the debug line in the main config file, made no noticeable difference)

Akerhielm added on

php version is 5.2.17
http://server16.000webhost.com/phpinfo.php

_(Also, why did my links in this post not work?)_

Akerhielm added on

My guess is that indexRSS(); is what fails when posting.

append delete #9. retsam

My guess is that indexRSS() too. I don't even see the index.xml in the folder.

append delete #10. Kroc

@Akerhielm The URL-parser doesn't account for IDNs!

append delete #11. Akerhielm

I've narrowed the failing code down to line 326 in functions.php.
https://github.com/Kroc/NoNonsenseForum/blob/master/lib/functions.php#L326...

i'll look into idn support since I'm unable to get any further with this right now. :S

Akerhielm added on

correct link : https://github.com/Kroc/NoNonsenseForum/blob/master/lib/functions.php#L326

append delete #12. Kroc

What I do know is that DOMTemplate doesn't handle any errors, nor ignore them, so if an xpath is not matching, the script could be getting cut short. The solution could be to make DOMTemplate ignore any matching errors.

Kroc added on

That said of course, the xpaths in the `indexRSS` function should *always* be matching, so it's down to finding out why that's the case. I'm not in front of the computer at the moment to start poking at the problem and if only your server is producing the error then I can't test it, so I'm glad for any debugging of this issue you can do for me.

append delete #13. retsam

could this problem caused by the .htaccess file? I found that "/forum/thread.php?file=test" works, while "/forum/test" doesn't.

append delete #14. Kroc

It goes without saying that .htaccess has to be present and enabled, but the forum should actually display only an error page if the .htaccess is missing or not enabled, so I don't get how @Akerhielm is getting a visible index page, but no rewrites.

append delete #15. Akerhielm

Kroc, if you have the time, i can get you ftp access so you can have a look at the server.

append delete #16. Kroc

Right now, I’m totally overloaded, but I’ll try get back to you about this later.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, theraje, Martijn