FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Forum post attachments fail (Other uploads work fine)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Forum post attachments fail >SOLVED< [message #166434 is a reply to message #166433] Sun, 11 December 2011 03:39 Go to previous messageGo to previous message
ShineOn is currently offline  ShineOn   United States
Messages: 53
Registered: July 2011
Karma:
Member
Nope, not a FUDforum setting, but a php.ini setting. One that you should only have to worry about if you're not yet running php 5.3, unless 5.3 has a "backward compatibility with 5.2" setting that makes deprecated functions available. Hopefully not.

You can see from the display from FUDforum admin panel system config overview I posted in the OP code snippet that it shows "Magic quotes: ON" which apparently will show if any of the magic_quotes settings are on.

In my 5.2.x php.ini there are three "magic_quotes..." settings. Two were off, but the magic_qotes_gpc was on - and that's the one that sets the php magic quotes feature that handles posts, which is where the error was showing up.

Magic quotes essentially escapes stuff going in to php with slashes. It was intended to make database entry easier, by pre-escaping stuff just in case. However, because the pre-escaping caused problems of its own necessitating work-around code to remove slashes, and by its very existence promoted lazy programming practices, it's deprecated as of 5.3, and all magic quotes type data handling should be properly coded for in order to be 5.3 compatible. The FUDforum code is probably already coded such that magic quotes functionality is not needed, so when it was enabled it was interfering with proper operation of the FUDforum code, resulting in the error I was experiencing.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't upload any file
Next Topic: Avatar Approval
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 19:28:29 GMT 2024

Total time taken to generate the page: 0.04098 seconds