The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

FD Feedburner Plugin
[solution]Notice: Undefined index: author_name in feedburner-php on line 226 (1 post)

  1. bigchirv
    Posted 2 years ago #

    I'm runing a WP MU and my Apache logs are literally stuffed with lots of messages like the following, making the logs grow quickly and eat up the disk space:

    [Fri Mar 21 07:56:38 2014] [error] [client x.x.x.x] PHP Notice: Undefined index: author_name in /var/www/wp-content/plugins/feedburner-plugin/fdfeedburner.php on line 226

    The issue is an easy one to solve. Just check if 'author_name' key actually exists on $wp->query_vars before trying to access its contents. I've made this patch you might want to apply to the sources of the plugin to solve this behavior.

    --- fdfeedburner.orig.php	2014-03-24 10:24:29.521565122 -0700
    +++ fdfeedburner.php	2014-03-24 10:35:38.153557900 -0700
    @@ -223,7 +223,7 @@
     	// Get author name
     	$author_name = null;
    -	if ($wp->query_vars['author_name'] != null) {
    +	if (array_key_exists('author_name', $wp->query_vars) && $wp->query_vars['author_name'] != null) {
     		$author_name = $wp->query_vars['author_name'];



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • FD Feedburner Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic