• 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 6 years, 9 months ago by fullworks. Reason: added 'maybe' as totally untested
    • This topic was modified 6 years, 9 months ago by fullworks.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @fullworks

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

    Thread Starter fullworks

    (@fullworks)

    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.

    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.