Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Internal Server Error 500
very specific page text causing internal server error? odd problem
Avatar
aaronb #1
Member since Oct 2008 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Internal Server Error 500
Just yesterday I began having problems with certain pages in my wiki. I can't preview or save them. When I hit preview or save the following error page appears:

This is the error:
!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@nsccreative.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
________________________________________
Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.6 Server at www.nsccreative.com Port 80

I've read the faq's on this error and realised that I had recently done all of the things that it said might cause the problem. Systematically I worked through all of the suggested fixes but I haven't had much luck.

I decided to install a fresh version of dokuwiki but the same error appears.

I also have a personal account with the same web-hosting company and tried pasting one of the problematic pages into that but I still get the error. I've raised the problem with the hosting company and am awaiting a reply to see if there are any problems server side that could be causing the error.

This is where the problem becomes very puzzling:
Since all of this I have filtered the problem down to very specific words within the pages that cause the error. On one of my pages (contains approx 3000 characters) if I remove the word "select" from the page text then it works fine, put it back in anywhere in the page and it breaks again. I can add other text or remove text but if I add the word "select" it throws up the error again?

The same applies with my other versions of dokuwiki... If I paste the text including the word select then I get the error, if I remove the word it works fine. What could be causing this?

This seems to be the same with the other problematic pages... They all seem to have a string, which is different (not necessarily "select"), that causes the error.

Most of the pages work fine and I can add text to them and save them with no problem but this error appeared yesterday and is now occurring on 3 pages.

I can temporarily fix the problem by removing the bad string but with multiple users the problem could get progressively worse.

Any ideas would be very useful.

Thanks
Aaron
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3509 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by aaronb:
Since all of this I have filtered the problem down to very specific words within the pages that cause the error. On one of my pages (contains approx 3000 characters) if I remove the word "select" from the page text then it works fine, put it back in anywhere in the page and it breaks again. I can add other text or remove text but if I add the word "select" it throws up the error again?

http://www.dokuwiki.org/faq:mod_security
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
stevevance #3
Member since Oct 2009 · 2 posts · Location: Chicago, IL
Group memberships: Members
Show profile · Link to this post
I'm having a similar issue about certain text causing Internal Server Errors, and I think that mod_security might have something to do with it.

The offending text in my DokuWiki installation is:

payEstimate = x

That's the text I want to insert into the page. It's not code, but I still receive the Internal Server Error if I wrap the text in the <code> tag. I also receive the error if I write:

payEstimate=

I then wrote the text:

payEstimate
=

The equal sign is on a new line. I still received the error. Then I found this message board thread and learned about mod_security. I followed the directions on the linked page, adding the code to the .htaccess file in my DokuWiki folder, as well as my document root (public_html). Adding the code to the document root's .htaccess file gave me Internal Server Errors for my entire website - I quickly removed the code so that the rest of my website could be accessed.

I can't access the server's error log from work, but I can access them when I get home. I hope it provides me more information about the problem.

In the meantime, I would appreciate any additional input someone may have.
Avatar
stevevance #4
Member since Oct 2009 · 2 posts · Location: Chicago, IL
Group memberships: Members
Show profile · Link to this post
In reply to post #2
I should have added which mod_security code I tried in my .htaccess file:

SecRuleEngine Off
SecFilterEngine Off
SecFilterScanPOST Off

I also verified in my Apache/PHP setup that "mod_security2" is indeed loaded.

I also tried making changes based on the suggestions from this page, http://www.dokuwiki.org/faq:error500:
-I removed "Options -Indexes" from the .htaccess file
-I turned off the Apache rewrite engine
-I attempted to change the permissions on the /data folder (from 777), but then I couldn't access or save files so I reverted to 777.
-I have NOT tried change the Byte Order Mark (BOM) of my .htacecss file - I don't know what this means or how to change it.
-I wasn't trying to add or change users.
-I'm not using a discussion plugin
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 12:17:11 (UTC +01:00)