Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    That’s not actually an error, just a notice, and since it’s being triggered by core code, I’m not sure I can do anything about it. Do you get the message repeatedly, or just the one time?

    Thread Starter Navjot Singh

    (@navjotjsingh)

    Just one time when I upgraded it.

    Plugin Author nosilver4u

    (@nosilver4u)

    Hmm, that’s going to be a tough one to replicate, and I suspect it was probably just a transitory problem, as no one else has ever reported an error like that. If someone else has the issue, or if you experience it on future upgrades, let me know.

    Hi @nosilver4u,

    I have the same problem. I set my dev env to show all errors with symfony debug mode, and when I updated to 2.5.1, I got this error all over my wp-admin.
    The problem is indeed triggered by core code, but its origin is common.php, unregister_setting() function.

    Hope this helps to release a patch.

    ContextErrorException in plugin.php line 1837:
    Notice: Undefined index: ewww_image_optimizer_options
    in plugin.php line 1837
    at ErrorHandler->handleError(‘8’, ‘Undefined index: ewww_image_optimizer_options’, ‘/srv/www/site/wp/wp-admin/includes/plugin.php’, ‘1837’, array(‘option_group’ => ‘ewww_image_optimizer_options’, ‘option_name’ => ‘ewww_image_optimizer_cloud_key’, ‘sanitize_callback’ => ”, ‘new_whitelist_options’ => array(‘wpuxss_eml_taxonomies’ => array(‘wpuxss_eml_taxonomies’, ‘wpuxss_eml_tax_options’), ‘wpuxss_eml_mimes’ => array(‘wpuxss_eml_mimes’), ‘wpuxss_eml_mimes_backup’ => array(‘wpuxss_eml_mimes_backup’)))) in plugin.php line 1837
    at unregister_setting(‘ewww_image_optimizer_options’, ‘ewww_image_optimizer_cloud_key’) in common.php line 702
    at ewww_image_optimizer_install_table() in common.php line 438
    at ewww_image_optimizer_init() in common.php line 451
    at ewww_image_optimizer_admin_init(”)
    at call_user_func_array(‘ewww_image_optimizer_admin_init’, array(”)) in plugin.php line 503
    at do_action(‘admin_init’) in admin.php line 168
    at require_once(‘/srv/www/site/wp/wp-admin/admin.php’) in index.php line 10

    Plugin Author nosilver4u

    (@nosilver4u)

    That helps a lot, tells me exactly where the bug is triggered. I’ll see if I can find a fix for it.

    Plugin Author nosilver4u

    (@nosilver4u)

    I still haven’t been able to trigger the error. In looking at the core functions and what they do, I seem to have discovered that it was unnecessary to call unregister_setting in the first place. So I removed the code in question. 2.5.2 should be out by week end.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Undefined Index: ewww_image_optimizer_options’ is closed to new replies.