Throws up errors (3 posts)

  1. turkeyphant
    Posted 2 years ago #

    Like the plugin a lot but there are many many PHP errors in the logs related to it. Often brings down my SQL server and web server :(

    e.g. [15-Jan-2013 08:14:14] PHP Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /wp-content/plugins/wp-footnotes/footnotes.php on line 172


  2. drzax
    Plugin Author

    Posted 2 years ago #

    What version of WP-Footnotes are you using? In the current version (4.2.2) line 172 is an empty line.

    Also, this isn't the place to report bugs. Please do so on the WordPress Extras bug tracking system.

  3. turkeyphant
    Posted 2 years ago #

    I'm running 4.2.2

    My lines 171-176 look like:

    // Check if this post is using a different list style to the settings
    		if ( array_key_exists(get_post_meta($post->ID, 'footnote_style', true), $this->styles) ) {
    			$style = get_post_meta($post->ID, 'footnote_style', true);
    		} else {
    			$style = $this->current_options['list_style_type'];

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Footnotes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic