• Resolved philmells

    (@philmells)


    We get the following errors when logging in as a non administrative user:

    Warning: array_key_exists() expects parameter 2 to be array, boolean given in XXX/wp-content/plugins/leadin/admin/leadin-admin.php on line 79

    There is also an error at line 95 of class-leadin.php. This is because it’s calling a non-existent option when logged in as any other user than an administrator. Additionally it checks for capabilities that aren’t even there.

    We have manually quick-fixed this by using an empty array but this obviously isn’t the right way to fix it and will break when the plugin next updates. It’s been like this for several versions now!

    https://ww.wp.xz.cn/plugins/leadin/

Viewing 1 replies (of 1 total)
  • Hi Phil,

    Thanks for reaching out. Believe you’ve submitted a ticket through to us via our site but wanted to follow up here also just in case.

    Taking a look into this, from my testing the only thing that would cause this issue to appear would be if one of the required Leadin entries in the wp_options database table was missing, specifically leadin_options. This entry in the table includes an array of different settings for Leadin, and while the setting for different role access to Leadin has not been implemented yet, this leadin_options entry should still exist.

    Not 100% sure why it would not exist for you but if you head over to Plugins in WordPress and Deactivate and re-Activate the Leadin plugin it should add the leadin_options entry back into your WordPress database which will resolve this error. (You may need to delete your manual array first).

    Let me know if this does not resolve the issue you’re seeing and we can investigate further.

    Thanks,
    Shay

Viewing 1 replies (of 1 total)

The topic ‘Errors when not logged in as Administrator’ is closed to new replies.