This is a modification to the WP-Gravatar plugin to accommodate the links to the author plugin from resulting in a 404 error. I found that links with spaces where not allowing the Author to be shown.
Around lines 1897 in gravatars.php
if ($gravatar_author_archive == true){
$s.= "<br /><a href='/blog/author/";
$s.= $author;
$s.= "/'>";
If you replace the 3 $s lines with the following it will then get the proper post url for the author link
if ($gravatar_author_archive == true){
// $s.= "<br /><a href='/blog/author/";
// $s.= $author;
// $s.= "/'>";
$s .= "<br /><a href='".get_author_posts_url(get_the_author_meta( 'ID' ))."'>";
]]>
Installation of the plugin on WP 3.3.2 goes fine until you try to activate the plugin. At that specific moment an error happens and WordPress displays following message:
Parse error: syntax error, unexpected T_ELSE in /home/clients/client1/web2/web/blog/wp-content/plugins/wp-gravatar/gravatars.php on line 752
]]>Currently when the plugin is activated it still works but i get an error code at the top of my blog now which reads:
Notice: has_cap has called with an argument that is deprecated since version 2.0! Useage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in C:\hostingspaces\xxxx\sitename.com\wwwroot\news\wp-includes\functions.php on line 3551 Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in C:\hostingspace
Anyone know how to fix this so the plugin still works but I don’t get the error message anymore?
Thanks in advance!
]]>Parse error: syntax error, unexpected T_ELSE in [deletia]s\wp-content\plugins\wp-gravatar\gravatars.php on line 752
]]>This plug-in does not work. Avatars do not show up in comments, despite multiple testing. Author home page non-existent.
]]>2011/03/23 16:06:35 [error] 3838#0: *5613 FastCGI sent in stderr: “PHP Parse error: syntax error, unexpected T_ELSE in /wp-content/plugins/wp-gravatar/gravatars.php on line 752” while reading response header from upstream, client: x.x.x.x, server: example.com, request: “GET /my-page-here HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm/default.socket:”, host: “example.com”, referrer: “https://example.com/my-page-here”
Error 500 in browser.
Plugin: 2.7.1
PHP: 5.3.5 (fpm-fcgi)
I have used plugins to pull images from Twitter and mentions to the comments pages of my blog (https://constructionlawva.com) and they won’t show up. Is there a way to get these to show using this plugin?
]]>plug in is wp-gravatars
pictures or option is not showing in profile or anywhere on the blog ..
]]>I dont understand. What is the problem?
Plugin could not be activated because it triggered a fatal error.
Parse error: parse error in C:\wamp\www\wass\wp-content\plugins\wp-gravatar\gravatars.php on line 752
]]>