• Resolved Alex Human

    (@alexterrenas)


    The main plugin is updated and works well. However, when you update this extension, the site crashes. WordPress gives a message about technical problems on the website.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @alexterrenas

    Sorry for the delay, could you provide what error causes at your site? You could activate WP_DEBUG mode and check the errors in “wp-content/debug.log” file.

    Please insert these lines to your config.php

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    Let me know,
    Thanks!

    Thread Starter Alex Human

    (@alexterrenas)

    PHP Fatal error: Uncaught Error: Call to a member function is_online() on null in line:126

    My code:
    125: global $um_online; 126: $user_online_status = ‘offline’; 127: $user_online_status = ($um_online->is_online($sponsor)) ? ‘online’ : ‘offline’;

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @alexterrenas

    Please use UM()->Online()->is_online() instead of “global $um_online;”

    $user_online_status = ‘offline’;
    $user_online_status = (UM()->Online()->is_online($sponsor)) ? ‘online’ : ‘offline’;

    Let me know if this works,
    Thanks!

    Thread Starter Alex Human

    (@alexterrenas)

    I just tried this. And Yes, it worked. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The update causes a technical failure on the site’ is closed to new replies.