Support » Plugin: WP User - Custom Registration Forms, Login and User Profile » Error undeclared $user_profile on profile.php kine 105

  • Resolved webjojo

    (@webjojom)


    Hello,

    I have installed the last version of the plugin on my local website and when i visit the page “WP User Page”, i have this fatal error.

    Fatal error: Uncaught Error: Access to undeclared static property: WPUserProfile::$user_profile in …\wp-content\plugins\wp-user\includes\user\profile.php:105

    Could you help me?

    Best Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Prashant Walke

    (@walkeprashant)

    Hi,

    Can you please raise your ticket on http://www.wpseeds.com/support with site admin login details so that we can check exact issue.

    Hi Prashant,

    Thank you for your answer, for information I have created a ticket on your personal support site.

    Best Regards,

    Hi Prashant,

    Have you reproduced the issue?

    Best Regards,

    Plugin Author Prashant Walke

    (@walkeprashant)

    Hi,

    We are not able to reproduce issue on test server.

    Currently i am working on new version might be this version resolved your issue.

    I am getting the same error on the user page just under the Account section:
    Fatal error: Uncaught Error: Access to undeclared static property: WPUserProfile::$user_profile in C:\HHRBAWebsite\wp-content\plugins\wp-user\includes\user\profile.php:105 Stack trace: #0 C:\HHRBAWebsite\wp-content\plugins\wp-user\includes\user\shortcode.php(89): include() #1 C:\HHRBAWebsite\wp-includes\shortcodes.php(345): WPUserShortcode->wp_user('', '', 'wp_user') #2 [internal function]: do_shortcode_tag(Array) #3 C:\HHRBAWebsite\wp-includes\shortcodes.php(223): preg_replace_callback('/\\[(\\[?)(wp_use...', 'do_shortcode_ta...', '[wp_user]\n') #4 C:\HHRBAWebsite\wp-includes\class-wp-hook.php(298): do_shortcode('[wp_user]\n') #5 C:\HHRBAWebsite\wp-includes\plugin.php(203): WP_Hook->apply_filters('[wp_user]\n', Array) #6 C:\HHRBAWebsite\wp-includes\post-template.php(240): apply_filters('the_content', '[wp_user]') #7 C:\HHRBAWebsite\wp-content\themes\retrotale-premium\page.php(15): the_content() #8 C:\HHRBAWebsite\wp-includes\template-loader.php(74): include('C:\\HHRBAWebsite...') #9 C:\HHRBAWebsite\wp-blog-header.php(19) in C:\HHRBAWebsite\wp-content\plugins\wp-user\includes\user\profile.php on line 105

    It doesn’t show any of the other two sections.
    Thanks,
    Jim

    It’s very likely that your PHP-Version causes this error. Try using PHP 5.6x.

    Greetings.

    Hi,
    try to change line 105 as follow:

    $user_profile['class']::{$user_profile['function']}();

    Add the curly braces, according to this tread:

    https://secure.php.net/manual/en/migration70.incompatible.php#migration70.incompatible.variable-handling.indirect

    Regards

    Getting the same error as jambro1964, and patched it, but would be great if plugin were updated to patch issue for latest versions of PHP.

    Plugin Author Prashant Walke

    (@walkeprashant)

    Hi,

    I have noted your point.
    Currently we are working on new version and tack care this issue in new version.

    Plugin Author Prashant Walke

    (@walkeprashant)

    Hi,

    We have fixed this issue in current version i.e V.4.0.

    Please update plugin and let me know in case any issue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error undeclared $user_profile on profile.php kine 105’ is closed to new replies.