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
Bryce
2 min read
[image unavailable: image] ".$rs['items'][$i]['title']."
";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/?http://www.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 "http://anonym.to/?http://www.phpsugar.com">Anonym zu www.phpsugar.com to stay up-to-date.";
Great! You've identified the block as the only source of errorsWhen 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 .= "Anonym zu www.phpsugar.com"; //$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.
AI can make mistakes. Check the cited posts. Archived advice can be out-of-date
Don't include personal information. Questions and selected public posts go to OpenAI. About Ask AI