https://www.icyphoenix.com/viewtopic.php?f=35&t=6591 ----------------------------------- n1cks21 Tue 20 Oct, 2009 11:56 Posting Problem ----------------------------------- Hi Guys, I have upgraded my site to the new version (1.3..0.53) now everything works apart from when members post, when you click the submit button you get the below message [code linenumbers=false]Parse error: syntax error, unexpected T_STRING in /home/sites/uk-alliance.com/public_html/includes/emailer.php(225) : eval()'d code on line 3 [Icy Phoenix Debug] PHP Notice: in file /posting.php on line 1324: Cannot modify header information - headers already sent by (output started at /includes/emailer.php(225) : eval()'d code:3) [Icy Phoenix Debug] PHP Notice: in file /includes/functions.php on line 1236: Cannot modify header information - headers already sent by (output started at /includes/emailer.php(225) : eval()'d code:3)[/code] any ideas ?? ----------------------------------- Mighty Gorgon Wed 21 Oct, 2009 21:41 Re: Posting Problem ----------------------------------- It seems that your server is not escaping slashes correctly. Which version of PHP do you have? Do you have a phpinfo() page where I can check your settings? ----------------------------------- n1cks21 Thu 22 Oct, 2009 17:48 Re: Posting Problem ----------------------------------- I seem to have fixed the posting problem by reinstalling the sql database however I still have a problem with slashes as you pointed out below is some text from my home page and you can see how IP has added lots of slashes, now if I delete them and save it they come back [code linenumbers=false]
WELCOME TO THE UK-ALLIANCE

The ONLY UK adult clan that plays for fun, [/code] here is the link you asked for http://www.uk-alliance.com/phpinfo.php thanks again ----------------------------------- Mighty Gorgon Mon 26 Oct, 2009 16:54 Re: Posting Problem ----------------------------------- Unfortunately there is not an easy way to solve it now. :sad: Try this though. OPEN [b]common.php[/b] FIND [codeblock]while ($row = $db->sql_fetchrow($result)) { $board_config[$row['config_name']] = $row['config_value']; }[/codeblock] REPLACE WITH [codeblock]while ($row = $db->sql_fetchrow($result)) { $board_config[$row['config_name']] = stripslashes($row['config_value']); }[/codeblock] But you will need to edit again your text fields in ACP => Configuration, because this fix is not able to fix already entered texts. And I'm not sure it will work properly for you. :sad: ----------------------------------- Informpro Mon 26 Oct, 2009 17:52 Re: Posting Problem ----------------------------------- replace with:[code]while ($row = $db->sql_fetchrow($result)) { $board_config[$row['config_name']] = stripslashes($row['config_value']); }[/code] ----------------------------------- n1cks21 Mon 26 Oct, 2009 22:18 Re: Posting Problem ----------------------------------- Thanks for looking but I am still having the same problem as you can see from image 1 [img]http://www.icyphoenix.com/files/images/4458/error1.jpg[/img] if I enter "The UK-Alliance, gaming at it's best......." in the Site description and save it I get this result..... [img]http://www.icyphoenix.com/files/images/4458/error2.jpg[/img] ----------------------------------- Mighty Gorgon Tue 27 Oct, 2009 00:09 Re: Posting Problem ----------------------------------- That is because you need also to edit admin_board*.php and add stripslashes there as well... FIND [codeblock]$new[$config_name] = (isset($_POST[$config_name])) ? $_POST[$config_name] : $default_config[$config_name];[/codeblock] REPLACE WITH [codeblock]$new[$config_name] = (isset($_POST[$config_name])) ? $_POST[$config_name] : stripslashes($default_config[$config_name]);[/codeblock] ----------------------------------- n1cks21 Tue 27 Oct, 2009 01:49 Re: Posting Problem ----------------------------------- still the same :( :( :(