bonny / WordPress-Simple-Fields

WordPress plugin that extend Custom Fields to include textareas, WYSIWYG-editor, files, attachments, well basically anything
http://wordpress.org/extend/plugins/simple-fields/
88 stars 23 forks source link

Undefined index: slug / saved_values and "". #80

Closed phlbnks closed 11 years ago

phlbnks commented 11 years ago

I get the error: PHP Notice: Undefined index: slug in /www/wp-content/plugins/simple-fields/simple_fields.php on line 1458 a lot in my logs!

Often followed by: PHP Notice: Undefined index: saved_values in /www/wp-content/plugins/simple-fields/functions.php on line 156 (x7) PHP Notice: Undefined index: saved_values in /www/wp-content/plugins/simple-fields/functions.php on line 183 PHP Notice: Undefined index: in /www/wp-content/plugins/simple-fields/functions.php on line 76 (x8) PHP Notice: Undefined index: saved_values in /www/wp-content/plugins/simple-fields/functions.php on line 156 (x8)

There are also batches of PHP Notice: Constant WP_POST_REVISIONS already defined in /www/wp-config.php on line 100 mixed in with very similar timings which may or may not be from Simple Fields.

At a guess maybe this may be because I have upgraded from pre-slugs versions of Simple Fields. Doesn't seem to be causing trouble at the mo but maybe the plugin should check if it exists before trying to use it or generate blank ones if doesn't exist perhaps on install/upgrade?

Let me know if I can provide any more info.