I run the site
http://www.teamhackaday.com and I must say that I'm very happy with the XOOPS portal system. It's very flexible and the PHP blocks allow for some very interesting customizations.
I was originally running the site on a webhost donated by an acquaintance of mine, but as the group grew our needs for beefier and more reliable hosting grew. Thus, we moved the site to dreamhost.com and are very happy with their rates and services. (Not a plug, just personal backstory)
Everything is working wonderfully save for a strange error that I'm getting with the custom PHP blocks that I've written to display stats and other information. While on the personal host all was working well, but the same code doesn't want to work with the new host.
With PHP debugging enabled the error that I'm getting on the block is:
Parse error: syntax error, unexpected T_STRING in /homedirectoryisactuallyhere/modules/system/blocks/system_blocks.php(40) : eval()'d code on line 78
When I try to edit the block the code in error comes up as:
printf("
Team Rank: | %s |
n", number_format(return_val( $myFile->data[0]['child'][0]['child'], 'RANK')) );
Obviously this is due to the fact that the quotes around "right" are not escaped, so I escape these characters and submit the form. I get a message telling me that all went well, but no! The crass program has lied!
I get the same error and upon checking the source of the block again it shows the same line as before. In fact, further checking shows that all my escape charaters "/" are gone! I checked the database and sure enough the escape characters are there in the table, but they do not show up in the edit box of the custom block editor.
Like I said, very strange indeed.. but any help that anyone can offer will be most appreciated.
The setup is almost identical from host to host, the only difference being that the MySQL version changed from 4.1 to 5.0, but all tables check out A-OK. Any ideas?