The fix you posted gives me an error on line 41. So I then went through my webhost to figure out the magic quotes. They just sent me the following:
We managed to reproduce the problem, but unfortunately we were unable to fix it. The php.ini file you have created works properly, as can be seen from the phpinfo() results:
However, the problem persists. We recommend that you contact the developers for further information. You can mention to them that our PHP environment allows to use a custom php.ini file for each directory, which does not work recursively (in case it is needed by a PHP file located in a different directory).
The php.ini file has the following information in it:
post_max_size = 20M
memory_limit = 80M
upload_max_filesize = 20M
max_execution_time = 120
So.. what's next?