• Resolved otterotter

    (@otterotter)


    Hi guys,

    I got this error message when opening the Account page.

    Fatal error: Uncaught Error: Call to a member function get_ID() on null in C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\wpum-forms\class-wpum-form-profile.php:160 Stack trace: #0 C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\wpum-forms\class-wpum-form-profile.php(104): WPUM_Form_Profile->get_account_fields() #1 C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\wpum-forms\class-wpum-form-profile.php(267): WPUM_Form_Profile->init_fields() #2 C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\abstracts\abstract-wpum-form.php(121): WPUM_Form_Profile->show_form(Array) #3 C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\wpum-forms\class-wpum-forms.php(95): WPUM_Form->output(Array) #4 C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\actions.php(222): WPUM_Forms->get_form('profile') #5 C:\xampp\htdocs\artjakarta\wp-includes\class-wp-hook.php(286): wpum_display_account_page_content('') #6 C:\xampp in C:\xampp\htdocs\artjakarta\wp-content\plugins\wp-user-manager\includes\wpum-forms\class-wpum-form-profile.php on line 160

    I found that someone had this error as well: https://www.ads-software.com/support/topic/fatal-error-function-get_id/ and they say it’s been fixed after version v2.0.4

    I am using v2.0.8 and WordPress 5.0.3.

    Please help, I’m stuck.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi @otterotter

    This happens when WPUM fails to upgrade the database and install it’s required data. Can you go in Users -> custom fields and see if there’s anything there? Could you also check in users -> registration forms?

    If both are empty, copy the following code https://gist.github.com/alessandrotesoro/783a56ae95a22e62f0008fe01a707d1e into your theme’s functions.php file, then navigate to your admin panel and append “?wpumfixdata” at the end of the url eg: example.com/wp-admin/?wpumfixdata this will run the installation again and you’ll see a message once it’s done. When it’s done, remove the code you just added and all data should be installed.

    Alternatively if you’re not comfortable with doing that, you can wait the update I’m going to release later today where there’ll be a new menu in “Tools” in your admin from where you can fix this automatically.

Viewing 1 replies (of 1 total)
  • The topic ‘Error on Account Page’ is closed to new replies.