Miscellaneous ⇒ Server Chat ⇒ 403 error if having any POST value ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexServer Chat

403 error if having any POST value Reply to topic


Hi,
I'm having an ackward problem on my site.
If having any POST values (Searching, previewing posts, logging in etc) then an 403 error will appear.

There was no such problem few weeks ago but now there suddenly is.
Only change I've made has been installing ForumsPlus, however I renamed the includes/phpBB and modules/Forums folders and the problem is still there.

It's also not LEO, language nor theme.

I have doubts that it might be the server, though it's OK on other sites on the same server.

I also did a testfile, which is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Untitled XHTML Document</title> </head> <body> <?php if (isset($_POST['test'])) { echo $_POST['test']; } else { echo '<form id="headsearch" action="megatest.php" method="post" enctype="multipart/form-data" accept-charset="utf-8"> <input id="test" type="text" name="search" size="20" maxlength="40" /> <input type="submit" value="Saada" /> </form>'; } ?> </body> </html>
This shows it's not actually Dragonflys fault (I also renamed the root .htaccess to be sure).

Any suggestions?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


OK the problem part is enctype="multipart/form-data" as one guy who helps me just found out.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


OK, server problem.
Got it fixed via globalmoxie.com/help/f...ajax.shtml and using the .htaccess method as I'm not the server admin.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


I think I may have found a more simple solution for those that don't have access (or the time) to play with the htaccess / httpd.con file. I used the technique at:

edrackham.com/javascri...403-error/

Hope it helps!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
apache 2, mysql 5+, php 5+

All times are UTC


Jump to: