• Hi,
    I am attempting to migrate a site from another host and after restoring the site from backup I am unable to login to the site. I’ve tried resetting the admin password via PHPMyAdmin and via the password reset link but neither work. The old site is on WP 4.2.2. The new host is using PHP 7.4

    The error I get is the following

    Stack trace:
    #0 /home/waltonsalon/public_html/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php(43): get_editable_roles()
    #1 /home/waltonsalon/public_html/wp-content/plugins/js_composer/include/classes/core/access/class-vc-role-access-controller.php(99): Vc_Current_User_Access_Controller->getRole()
    #2 /home/waltonsalon/public_html/wp-content/plugins/js_composer/include/autoload/vc-pages/page-design-options.php(21): Vc_Role_Access_Controller->can(‘vc-color-tab’)
    #3 /home/waltonsalon/public_html/wp-includes/plugin.php(496): vc_check_for_custom_css_build(”)
    #4 /home/waltonsalon/public_html/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php(227): do_action(‘vc_before_init’)
    #5 /home/waltonsalon/public_html/wp-includes/plugin.php(496): Vc_Manager->init(”)
    #6 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wp-cli/p in /home/waltonsalon/public_html/wp-admin/includes/user.php on line 263
    [21-Jan-2021 18:58:10 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_roles() in /home/waltonsalon/public_html/wp-admin/includes/user.php:263

    any help appreciated.

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/ and delete the whole /js_composer/ directory.

    That will remove the plugin causing the problem.

    Next, I recommend finding an alternative plugin or contacting the plugin’s support about this.

    Thread Starter avwebdesign

    (@avwebdesign)

    Thank you for your response James. I have deleted that folder and appear to have made some progress. However I now get a 500 error when I go to /wp-admin or any of it’s sub pages?

    For example /wp-admin/post-new.php?post_type=page
    or
    wp-admin/profile.php
    etc

    • This reply was modified 3 years, 3 months ago by avwebdesign.
    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that specific time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter avwebdesign

    (@avwebdesign)

    Hello James,

    thank you again for your feedback.

    1> Reset Plugin folder – No success.
    2> Reset Themes – there is only one theme in the folder so disabling it disables the whole site
    3> Rename htaccess – No success

    I have access to the backend via Cpanel. Is there a way to upload log files?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    We don’t need the whole log file, please don’t send that. 🙂

    Generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that specific time period.

    Did you find a solution to this? I’m having a different, but very similar problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function wp_roles() in /home’ is closed to new replies.