|
|
|
|
![]() ![]() |
Feb 27 2005, 09:44 AM
Post
#1
|
|
|
Advanced Member Group: Members Posts: 117 Joined: 5-February 05 Member No.: 2,521 |
When I post the message in my forum contant the word "system" it can't work and said the HTTP error 406.
I add three Mod : attach mod 2.3.11 , cash mod 2.2.2 , pay money mod 1.0.7 phpBB verison 2.0.12 my forum http://siuwing.astahost.com/testmod and then I also setup a model forum by cPanel , the error of posting also occur ->http://www.siuwing.astahost.com/testmod2/ the model forum havent adding any mod what is the problem ...? |
|
|
|
Feb 27 2005, 10:41 AM
Post
#2
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 |
Okay the problem is caused by the word "system" being confussed by the script as being part of the script. You'll need to add a regular expression to hide that word from the script and make it reappear for the user viewing the post.
You may be able to use addslashes() and stripslashes() to solve the problem. I'm not familiar with Phpbb's code so I can't really specify where to adjust you code. Here are examples of hiding the "bad" word. Regular Expressions Example: CODE $unformatted_message = "My PHP doesn't like the word system!"; This code would change the message form "My PHP doesn't like the word system!" to "My PHP doesn't like the word sys_tem!"$formatted_message = eregi_replace("system", "sys_tem", $unformatted_message); since your Php script doesn't care about the word"sys_tem" you won't have a problem. You will need to convert the message back when you show it to users. Just do the opposite: CODE $formatted_message = "My PHP doesn't like the word sys_tem!"; Now the code reads the same as when the user enterd it.$unformatted_message = eregi_replace("sys_tem", "system", $formatted_message); Additionally, addslashes() and stripslashes() probably won't fix your current problem but if the code doesn't have (It probably has) an addslashes() and a stripslashes() routine then many errors can pop up. I chose sys_tem instead of _system because you would need more code to determine if the original word was System or system. Hope this helps. vujsa |
|
|
|
Feb 27 2005, 04:49 PM
Post
#3
|
|
|
Advanced Member Group: Members Posts: 117 Joined: 5-February 05 Member No.: 2,521 |
It is so strange...
if the script of the Mod causing the problem , why the model forum ( haven't add any Mod ) also can't post "system" ? if the script of the phpBB causing problem , but i can post "system" in other forum bluid up with phpBB... Thank you vujsa , but i think it is not the bad word setting... and i don't know what is the meaning of HTML error 406 , 406 stand for what?? |
|
|
|
Feb 27 2005, 07:22 PM
Post
#4
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 |
All I can figure is that during the mod, something was corrupted or left out. This could be anything from a missing semi-colon to extra quotes.
My guess is that the during the mod, the original source files were edited so you could reinstall phpBB a million times and every time it would be corrupt. I believe that you'll need to purge your copy of phpBB and download a fresh copy from the phpBB website and install from clean files. You shouldn't need to do anything with you MySQL databases or its tables, in fact, your settings may be intact after the purge. Good luck, vujsa [EDIT] By the way, here is a link to the Apache website containg a reference to the Error 406 message. I didn't really understand but here it is. http://httpd.apache.org/docs-2.1/content-negotiation.html vujsa |
|
|
|
Feb 28 2005, 04:28 PM
Post
#5
|
|
|
Advanced Member Group: Members Posts: 117 Joined: 5-February 05 Member No.: 2,521 |
I am now know what problem happenning...
not the phpBB script it is the server something changing |
|
|
|
Mar 5 2005, 04:48 PM
Post
#6
|
|
|
Member - Active Contributor Group: Members Posts: 84 Joined: 16-February 05 From: England Member No.: 2,666 |
i added a mod to my phpbb exactly to the instructions and it didn't work, i checked and checked and chekced again and it was right. But still my forums didn't work. I even restored my settings but the forums still came up with and error. I'm nt saying this will happen to you ,but i had to delte the mysql and upload it and the forums again. luckily it took me 5 mins to do all that which is peanuts compared to what it took to set up in the first place.
|
|
|
|
Mar 6 2005, 05:59 PM
Post
#7
|
|
|
Teh Teckeh Trekkeh Group: Members Posts: 682 Joined: 8-September 04 From: Scotland, UK Member No.: 389 |
Its to do with the phpBB serach system it logs all words and the word "system" along with plenty others is called a MySQL stop word, MySQL uses stop words to stop servers becomming over loaded, phpBB's silly search method is at its mercy and this causes this to happen when you post the word. Breaking it up is all you can do.
|
|
|
|
Mar 6 2005, 07:30 PM
Post
#8
|
|
|
Premium Member Group: Members Posts: 311 Joined: 1-November 04 Member No.: 1,290 |
This problem is definitely not to do with the systerm of phpBB, it's absolutely to do with the astahost server, becuase on my Nucleus weblog and also on my invision power board version 1.3 it won't let me type the world syst-em either.
|
|
|
|
Jul 30 2008, 09:48 PM
Post
#9
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
Can you help?
Error 406 - Problem In My Phpbb Forum When I try to get in my forum I get this warning. Warning: mysql_connect() [function.Mysql-connect]: Too many connections in /home/setbbco/public_html/phpbb/config/multiforums.Config.Inc.Php on line 10 Unable to connect to database on 'localhost' with user 'setbbco_forum' Please check your settings in multiforums.Config.Inc.Php! -question by simon |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 03:07 AM |