A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.
Please welcome our newest member, masood!
Spice up your web site with the ultimate community message board solution!
Fake Id'sGet fake Id's made right now!
vBSEOSearch Engine Optimization for your VBulletin Forum.
AdminFusion
»
[MyBB] Strange error [Apostrophe shows up with slash]
| | #1 |
| | #2 |
| | |||||
|
Title: AF Lead Developer Join Date: Sep 2005 Posts: 1,186 Location: OHIO, US ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | My guess is that MyBB is attempting to do the job of commenting out characters that are special to mysql and your server also has magic_quotes_gpc enabled. Is there possibly a configuration setting in MyBB that allows you to set whether magic_quotes_gpc is enabled on the server or not? Sorry. I don't know MyBB well enough to know if this is definitely the correct fix. But that would be my guess. Basically php would automatically escape an ' and make it like this \' and then MyBB may be adding it's own so it would look like this \\' when it is processed saved to the database it would lose one of the \ and just be \'.
__________________ Do not post your PF private key in public. Did I help you with this post? If so, pls click the rep button or send money. | ||||
| |
| | #3 |
| | |||||
| Title: Apprentice Join Date: Jan 2007 Posts: 150 Location: England ![]() ![]() | Thanks for the reply Magic quotes is enabled on the served, I ran a test PHP file with stripslashes in and it worked fine. I believe it's because I forgot to disable my plugins before backing up in PHPMyAdmin on my previous server, I guess some of the files that were using the plugins have some errors or something. Could I just replace some of the forum files with fresh MyBB files? | ||||
| |
| | #4 |
| | |||||
| Title: Member Join Date: Jun 2006 Posts: 108 Location: California, US ![]() ![]() | PHP Code: Question, does your host have ini_set function on? | ||||
| |
| | #5 |
| | #6 |
| | #7 |
| | #8 |
| | #9 |
| | |||||
| Title: Apprentice Join Date: Jan 2007 Posts: 150 Location: England ![]() ![]() | Sorry for posting again but I just installed another MyBB on the same server, brand new database and everything to test stuff and it happens on there aswell so it's a server issue. Embarassing that I didn't think of trying that before | ||||
| |
| | #10 |
