• Hi there, I recently encountered some issues with another plugin, and upon putting my site in debug mode, I found a bunch of errors from what I suspect is the User Role Editor plugin. Can you let me know what the following debug.log means and how I can go about fixing this issue?

    Contents from the debug.log below. Thank you in advance.

    [24-Aug-2022 06:57:39 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:39 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:39 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:39 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:40 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:41 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:41 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:41 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:42 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:42 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:42 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:42 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:43 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:43 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:43 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:44 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:44 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:49 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:50 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:50 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:50 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:50 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:50 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:50 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:51 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:54 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:55 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:55 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:55 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:55 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:55 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:55 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:57:56 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:57:56 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:58:03 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:58:04 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:58:04 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:58:04 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:58:04 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:58:14 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:58:14 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:58:14 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:27 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:27 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:27 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:28 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:32 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:33 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:33 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:33 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:34 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:34 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:34 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:34 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:35 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:35 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:35 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:35 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:35 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:47 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:48 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:48 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:48 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:48 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:48 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:48 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:51 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831
    [24-Aug-2022 06:59:51 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:51 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:53 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:53 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:53 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:53 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-includes/class-wp-roles.php on line 291
    [24-Aug-2022 06:59:55 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /var/www/html/site/public_html/wp-includes/functions.php on line 5831

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

    (@shinephp)

    Hi,

    wp-includes/class-wp-roles.php is a part of WordPress core API for work with user roles and capabilities. WordPress itself and other plugins use it, not only User Role Editor (URE).

    Will you still see similar notices in debug.log in case you deactivate URE?

    Thread Starter msigloo

    (@msigloo)

    Yes, I do see the same notice after deactivating URE. I’ve also deactivated all plugins and switched to a default theme, but still the same notice. Would it be better to reach out the WordPress.org support? Greatly appreciate the advice.

    Thread Starter msigloo

    (@msigloo)

    Sorry, one more thing. I deactivated, then reactivated the plugin, and now this has been added to the debug.log:

    [30-Aug-2022 02:24:44 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-content/plugins/user-role-editor/includes/classes/user-role-editor.php on line 945
    [30-Aug-2022 02:24:44 UTC] PHP Notice: Undefined index: name in /var/www/html/site/public_html/wp-content/plugins/user-role-editor/includes/classes/user-role-editor.php on line 946

    Plugin Author Vladimir Garagulya

    (@shinephp)

    It seems, that you have the corrupted WordPress user roles database record.

    Please read this article and look directly at the database, if user roles have the ‘name’ attribute. If they do not have ‘name’ attribute for some reason, you have to restore this database record value from the older backup, when they have it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘error from convert-a-link handle’ is closed to new replies.