WordPress.org

Plugin Directory

wp-footnotes

Opened 4 years ago

Closed 13 months ago

#1185 closed defect (fixed)

array key error prevents save WP 3.0

Reported by: drzax Owned by: drzax
Priority: normal Severity: normal
Plugin: wp-footnotes Keywords:
Cc:

Change History (4)

comment:1 drzax4 years ago

  • Status changed from new to assigned

It has been confirmed that this error persists with WP-Footnotes 4.0 and WP 3.0.1, however I'm still unable to replicate it on my dev environment.

comment:2 in reply to: ↑ description fahirsch4 years ago

Replying to drzax:

Originally reported in forums:

http://wordpress.org/support/topic/plugin-wp-footnotes-wp-footnotes-33-array-key-error-prevents-save-wp-30

Version 4.1 makes it worse. I now get additionally multiple warnings (I use PHP 4)

Warning: htmlentities() expects at most 3 parameters, 4 given in /var/www/vhosts/fiscaldemesa.com.ar/httpdocs/wp-content/plugins/wp-footnotes/footnotes.php on line 217

But I have determined, that at least in my case, in version 4, if I disable the plugin Google XML Sitemaps 3.2.4 there is no error.

comment:3 fncll2 years ago

I'm still having this problem (the "Warning: array_key_exists" error) in the original thread linked to this ticket.

It happens consistently only on *some* searches. I can find no reason for it. As it is only a warning, I simply changed line 167 to suppress errors with that function, by adding the @ sign. Thus, line 167, which was as follows:

if ( array_key_exists(get_post_meta($post->ID, 'footnote_style', true), $this->    styles) ) {

Not a real fix, but enough for the moment as I'm unsure if this plugin is still being developed.
Became this:

if ( @array_key_exists(get_post_meta($post->ID, 'footnote_style', true), $this->    styles) ) {

comment:4 drzax13 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.