• Resolved artisticphoenix

    (@artisticphoenix)


    These two notices are encountered when logged out and going to the helpdesk page

    Notice: Undefined variable: wpsc_recaptcha_type in /~/plugins/supportcandy/includes/admin/tickets/sign_in/sign_in.php on line 193

    Notice: Undefined variable: wpsc_login_captcha in /~/plugins/supportcandy/includes/admin/tickets/sign_in/sign_in.php on line 193

    If you change this line
    <?php if (!$wpsc_recaptcha_type && $wpsc_login_captcha): ?>
    to
    <?php if (empty($wpsc_recaptcha_type) && !empty($wpsc_login_captcha)): ?>

    It will resolve the issue. Because of PHP’s loose typing empty and false are roughly equivalent here.

    FYI. I am a senior level PHP developer with 10yrs experience and I like to develop with full error reporting. You can find me on Stack Overflow and Github under the same username.

    Thank!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter artisticphoenix

    (@artisticphoenix)

    Another way to resolve it is to use the same condition that is used further up in the sign_in.php file (line 123 )

    if($enable_login_settings=='1' && $wpsc_login_captcha && $wpsc_recaptcha_type)

    Not a big deal but I though I would mention it.

    Plugin Contributor Nikhil G

    (@nsgawli)

    Hello @artisticphoenix

    Thank you for reporting the notices and solutions. We will add the fixes in the next version of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: Undefined variable’ is closed to new replies.