Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23324

    Hello,

    my friend working on my website http://www.boudoirsduboutdumonde.com detected this error with the debug.log function, any idea of what it is?

    many thanks for your help,

    sophie

    [15-May-2013 17:35:54 UTC] PHP Notice: Undefined offset: 1 in /homez.466/boudoirs/www/wp-content/themes/abundances/framework/php/function-set-avia-frontend.php on line 1035

    #119376

    Hi,

    Check your file, do you have this line of code on line 1031-1036

    if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
    $version= $matches['version'][0];
    }
    else {
    $version= $matches['version'][1];
    }

    Replace that with

    if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
    $version = $matches['version'][0];
    }
    else {
    $version = $matches['version'][1];
    }

    Regards,

    Ismael

    #119377

    Hi Ismael,

    Thank you very much, but it seems like the two codes are the same, is it normal?

    thanks again,

    Sophie

    #119378

    Actually Ismael added a whitespace between $version and = but I think it won’t solve the issue. Use following code instead:

    if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
    $version = !empty($matches['version'][0]) ? $matches['version'][0] : '';
    }
    else {
    $version = !empty($matches['version'][1]) ? $matches['version'][1] : '';
    }

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘error within debuglog’ is closed to new replies.