URGENT! Someone help me with this syntax error please!
I am really hoping someone here will be able to help me! I am working on a website for a client and they already had a website running on the wordpress platform using the Thesis Theme. I went into the customer _functions.php folder under the editor. All I changed was the copyright date from 2009 to 2011 and when I clicked update I got this message:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/g/a/r/garybryan/html/wp-content/themes/thesis/custom/custom_functions.php on line 23
I have seen this before and I know that it is telling me that a comma or semilcolon is missing somewhere (supposedly the 23rd line)b but I have reviewed the code many times and cannot find the error! I cannot even log into the admin panel on Wordpress.
Here is line 23 :
echo "<p><small>Copyright © 2011 <a href=\"http://whatstoxic.com.com/\" title=\"Whatstoxic.com\">WhatsToxic.com</a> - Dr Gary Ginsberg | Built with <a href=\"http://diythesis.com/\" title=\"Wordpress Thesis Theme by DIY Themes\">Thesis Theme</a> by <a href=\"http://www.konakiko.com/hireme/\"Title=\"Websites by konakiko\">konakiko</a> | <a href=\"http://whatstoxic.org/wp-admin/\" title=\"login\">Login</a></small></p>";
I do not see an error here. But another set of eyes might! My client is getting anxious because they went to check the site's progress and all they are getting is the error message instead of seeing their site.
If it will help at all, this is the entire set of coding from the custom_functions.php folder.
Please, if php is your area of expertise, I would appreciate your help so very much.
THE WHOLE CODE:
<?php
/**
* function custom_bookmark_links() - outputs an HTML list of bookmarking links
* NOTE: This only works when called from inside the WordPress loop!
* SECOND NOTE: This is really just a sample function to show you how to use custom functions!
*
* @since 1.0
* @global object $post
*/
function custom_bookmark_links() {
global $post;
?>
<ul class="bookmark_links">
<li><a rel="nofollow" href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li>
</ul>
<?php
}
/* To add my own footer */
function rl_footer() {
echo "<p><small>Copyright © 2011 <a href=\"http://whatstoxic.com.com/\" title=\"Whatstoxic.com\">WhatsToxic.com</a> - Dr Gary Ginsberg | Built with <a href=\"http://diythesis.com/\" title=\"Wordpress Thesis Theme by DIY Themes\">Thesis Theme</a> by <a href=\"http://www.konakiko.com/hireme/\"Title=\"Websites by konakiko\">konakiko</a> | <a href=\"http://whatstoxic.org/wp-admin/\" title=\"login\">Login</a></small></p>";
}
remove_action('thesis_hook_footer', 'thesis_attribution');
add_action('thesis_hook_footer', 'rl_footer');
/* To add Recent Posts widget in sidebar 2 */
function r2_recent_posts() {
thesis_widget_recent_posts('Articles', 'Articles by Dr. G', 8);
thesis_widget_recent_posts('in-the-news', 'In the News', 8);
}
add_action('thesis_hook_after_sidebar_2', 'r2_recent_posts');
/* move navigation bar v1.3 ---*/
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'thesis_nav_menu');
OSOA on Facebook -- SimplySilk on Facebook
Anita is one of several Moderators at "Live Marketing Chat"
LMC, mixing work and fun on Saturday nights -- Google it