Support » Plugin: GDPR Cookie Consent » Warning of undefined index

  • Resolved Fullworks

    (@fullworks)


    Please can you fix this warning

    Notice: Undefined index: viewed_cookie_policy in /public_html/wp-content/plugins/cookie-law-info/php/functions.php on line 339

    It appears if you revist the home page without actually accepting cookies

    function include_admin_hdrscript_addedin_cookielawinfo(){
        if ( !isset( $_COOKIE['viewed_cookie_policy'] ) {
            return;
        }
    ..
    

    maybe, but totally untested

    • This topic was modified 1 year, 5 months ago by Fullworks. Reason: added 'maybe' as totally untested
    • This topic was modified 1 year, 5 months ago by Fullworks.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author markwt

    (@markwt)

    Hi @fullworks

    Please try with latest version here. Please leave us a review if plugin/support was helpful.

    Thanks – my change worked 🙂 in your revised 1.5.7 file – I know it only appears when debug is on or the error logs – but thanks for making that tweak.

    Hi. Do you know why this Notice is displayed on mobile devices?
    Notice: Undefined index: viewed_cookie_policy in /home/admin/public_html/wp-content/plugins/cookie-law-info/php/funtions.php on line 361. I am using version 1.5.7. Thanks.

    Plugin Author markwt

    (@markwt)

    Hi @jlic53,

    Could you please share us the screenshot of the issue you are having?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning of undefined index’ is closed to new replies.