• Resolved clipb

    (@clipb)


    Since version 1.2.2 I’m getting php warning about an undefined array key “mipshowappearancemenus” at the end of admin/admin.php file. I think this is because I don’t use a block-based theme and there’s no such key (even with a default or uninitialized value) in plugin options stored in database. The default value passed to the get_option() function, which might have helped, never applies in my situation, because the existing option is returned.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author linux4me2

    (@linux4me2)

    I believe you are correct. I am able to reproduce the warning if I use the Twenty Thirteen theme.

    I thought including the default would have handled the situation, but evidently it doesn’t and I didn’t think to test with a non-block-enabled theme; a major oversight on my part.

    I’ll get a fix out ASAP and post back here when it’s available.

    Thanks for letting me know, and adding the information necessary to make it easy to address.

    Plugin Author linux4me2

    (@linux4me2)

    I just uploaded version 1.2.6, which has a fix for the warning message you were getting. Please give it a try and let me know if it fixed the problem for you.

    Thread Starter clipb

    (@clipb)

    After updating to version 1.2.6, I no longer receive those warnings. Thank you.

    Plugin Author linux4me2

    (@linux4me2)

    Glad to hear it! Thanks again for reporting the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined array key warning’ is closed to new replies.