• Resolved koepi

    (@koepi)


    Hi,
    the newest update (7.18) of WP Custom Admin Interface throws out an error message on admin area: array(1) { [0]=> string(13) “administrator” }
    Plugins are not listet completely.
    Is that a general issue or just on my site?

    Thanks in advance
    Koepi

Viewing 10 replies - 1 through 10 (of 10 total)
  • Same problem with my site after the 7.18 update. It is also causing a conflict with popups on Elementor.

    Find the plug-in code (wp-content/plugins/wp-custom-admin-interface/wp-custom-admin-interface.php) open the PHP file and find the following function

    function helloworld(){
    //current user
    $current_user = wp_get_current_user();
    //current user ID
    $current_user_id = $current_user->ID;

    //get key variables
    $current_user_roles = $current_user->roles;

    $current_user_roles = array_values($current_user_roles);

    var_dump($current_user_roles);

    }
    add_action(‘admin_init’,’helloworld’);

    Remove the ‘add_action’ and that will solve the issue until the dev updates the plug-in.

    • This reply was modified 4 years, 12 months ago by wilkouk.

    same here and it creates other problems using Divi theme. Like loading global templates. I’m not a developer so touching php functions makes me a bit nervous… no risk in touching this code, right?

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Sorry about this, I left some testing code on, it’s not a technical error. I will be releasing an update now to fix. Thnaks,

    don’t follow wilkouk (@wilkouk) advice!!!! Now my site is completely down

    Not my problem if you can’t code. Perhaps, I wasn’t explicit enough. REMOVE THE WHOLE LINE or put // infront of add_action(‘admin_init’,’helloworld’); i.e.

    //add_action(‘admin_init’,’helloworld’);

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    @wilkouk is correct, by removing that action it will remove that diagnostic message. But as I said by updating the plugin this will be the easiest way to remove it. Thanks everyone and any new issues please create a new thread.

    Well done @northernbeacheswebsites. Thanks for jumping on this so quickly. We’ll update the plugin and report back.

    Thread Starter koepi

    (@koepi)

    Fine! Error-issue seems to be solved, thanks.
    But: Re-Import of settings fails. This issue is already described in another thread.

    Thanks a lot for correcting so quickly!!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Newest update gives error message’ is closed to new replies.