Opened 3 years ago
Closed 2 months ago
#1185 closed defect (fixed)
array key error prevents save WP 3.0
| Reported by: | drzax | Owned by: | drzax |
|---|---|---|---|
| Priority: | normal | Component: | wp-footnotes |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Originally reported in forums:
Change History (4)
comment:1 Changed 3 years ago by drzax
- Status changed from new to assigned
comment:2 in reply to: ↑ description Changed 3 years ago by fahirsch
Replying to drzax:
Originally reported in forums:
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 Changed 17 months ago by fncll
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 Changed 2 months ago by drzax
- Resolution set to fixed
- Status changed from assigned to closed

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.