• Resolved zecompadre

    (@zecompadre)


    PHP Warning: Attempt to read property “user_firstname” on null in /wp-content/plugins/data-tables-generator-by-supsystic/src/SupsysticTables/Core/Module.php on line 653
    PHP Warning: Attempt to read property “user_lastname” on null in /wp-content/plugins/data-tables-generator-by-supsystic/src/SupsysticTables/Core/Module.php on line 653
    PHP Warning: Attempt to read property “user_email” on null in /wp-content/plugins/data-tables-generator-by-supsystic/src/SupsysticTables/Core/Module.php on line 654

    no validation on global $current_user;

    • This topic was modified 2 years, 2 months ago by zecompadre.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zecompadre

    (@zecompadre)

    solution

    global $current_user;
    if ($current_user) :
        $twig->addGlobal('DTGS_USER_NAME', $current_user->user_firstname . ' ' . 
    $current_user->user_lastname);
        $twig->addGlobal('DTGS_USER_EMAIL', $current_user->user_email);
    endif;
    • This reply was modified 2 years, 2 months ago by zecompadre.
    • This reply was modified 2 years, 2 months ago by zecompadre.
    Plugin Support Support Ole

    (@trsupsys)

    Hi, @zecompadre
    Thank you for contacting us!
    Fix pushed to SVN.
    Thanks.

    Wishes,
    Ole and Supsystic Team!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error last Update’ is closed to new replies.