I was wondering if anyone can help me with a Parse Error with a script I am trying to install?
Parse error: syntax error, unexpected T_STRING in /home/trulykiw/public_html/admin/functions.php on line 1001
Thanks in advance
Jump to content
Posted 24 November 2010 - 07:30 PM
Register to Remove
Posted 24 November 2010 - 08:43 PM
Posted 24 November 2010 - 09:26 PM
Posted 24 November 2010 - 10:29 PM
It appears that the double quotes for the anchor tag is terminating the string prematurely. Try replacing them with double-double quotes (""http://anonym.to/?ht...w.phpsugar.com"") or slash-double quote (\"http://anonym.to/?http://www.phpsugar.com\") and see if it works.
$ret = "Sorry! Couldn't fetch the news. Please join our newsletter at <a href="http://anonym.to/?http://www.phpsugar.com">Anonym zu www.phpsugar.com</a> to stay up-to-date.";
Posted 25 November 2010 - 12:19 AM
Edited by allwinners, 25 November 2010 - 12:36 AM.
Posted 25 November 2010 - 11:38 AM
Great! You've identified the block as the only source of errors
When I delete this entire function - line 990 to 1005 - the error disappears and I gain access to admin.
Removing that section would definitely impact the functionality of the page. The block of code in the top section appears to be building a set/collection and iterating through it do display information (ie: RSS feed subscriptions).
BUT I am of course wondering if by doing so I am breaking something else.
$ret = "Sorry! Couldn't fetch the news. "; //$ret .= "Please join our newsletter at "; //$ret .= "<a href=\"http://anonym.to/?http://www.phpsugar.com\">Anonym zu www.phpsugar.com</a>"; //$ret .= "to stay up-to-date.";Let's try breaking down the string into 4 lines. If you get the code block above to work without errors, un-comment the next line (remove the // before the $ret) and try again. Hopefully you get all the way down to the 4th line without errors this time.
Posted 26 November 2010 - 04:13 PM
Artificial intelligence is no match for natural stupidity.
0 members, 0 guests, 0 anonymous users