• Hi.

    I have install Debug Bar plugin, actived WP_DEBUG in wp-config.php and i get some error with your plugin.
    I guess this errors crushing long time my php
    Here a screenshot; http://i.imgur.com/IyvCR6Y.png
    Sorry for my bad English.
    And this is logs;

    ——————————————————-

    Error 1;

    WARNING: C:\Inetpub\vhosts\example.com\tuhaf\wp-admin\admin-header.php:9 – Cannot modify header information – headers already sent by (output started at C:\Inetpub\vhosts\example.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php:88)

    Line 88: if ($_POST[‘saveit’] == ‘yes’)

    ——————————————————–

    Error 2;

    Notice: Undefined variable: StatPressV_Option in C:\Inetpub\vhosts\example.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 1095

    Line 1095: if ($StatPressV_Option[‘StatPressV_Dont_Collect_Spider’] == ”)

    ——————————————————-

    Error 3;

    Notice: Undefined property: stdClass::$totalvisitors_feeds in C:\Inetpub\vhosts\example.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 641

    Line 641; <th scope=’col’><div style=’background:<?php _e($rss_visitors_color) ?>;width:10px;height:10px;float:left;margin-top:2px;margin-right:5px;’></div><?php _e((round($overview[‘total’]->totalvisitors_feeds / $graphdays, 1))) ?> Visitors Feeds</th>

    —————————————————————

    Error 4;

    Notice: Undefined property: stdClass::$totalpageviews_feeds in C:\Inetpub\vhosts\yunusceyhan.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 643

    Line 643; <th scope=’col’><div style=’background:<?php _e($rss_pageviews_color) ?>;width:10px;height:10px;float:left;margin-top:2px;margin-right:5px;’></div><?php _e((round($overview[‘total’]->totalpageviews_feeds / $graphdays, 1))) ?> Pageviews Feeds</th>

    —————————————————————

    Error 5;

    Notice: Undefined offset: 1 in C:\Inetpub\vhosts\example.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 1604

    Line 1604; $qry_visitors = luc_query_graph(“DISTINCT ip”, $where1 . ” AND ” . $feed1 . ” AND spider=” “, $limitdate, $currentdate); // SQL query count of the uniques visitors for all days of the graph ($graphdays)

    —————————————————————

    Error 6;

    Notice: Undefined index: StatPressV_Dont_Show_domain_name in C:\Inetpub\vhosts\yunusceyhan.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 273

    Line 273; <?php if ($StatPressV_Option[‘StatPressV_Dont_Show_domain_name’]==’checked’) echo “<th scope=’col’>Domain</th>” ?>

    —————————————————————

    Error 7;

    Notice: Undefined offset: 1 in C:\Inetpub\vhosts\yunusceyhan.com\tuhaf\wp-content\plugins\statpress-visitors\statpress.php on line 748

    Line 748; $home_url = array ( ” , ‘/’ . $perm[1] , $permalink , ‘fb_xd_fragment’) ;

    ————————————————————–

    Error 8;

    Notice: Undefined index: StatPressV_Dont_Show_domain_name in C:\Inetpub\vhosts\yunusceyhan.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 375

    Line 375; <?php if ($StatPressV_Option[‘StatPressV_Dont_Show_domain_name’]==’checked’) echo “<th scope=’col’>Domain</th>” ?>

    —————————————————————

    Error 9;

    Notice: Undefined property: stdClass::$user in C:\Inetpub\vhosts\yunusceyhan.com\tuhaf\wp-content\plugins\statpress-visitors\admin\luc_admin.php on line 407

    Line 407; if ($rk->user != ”)

    http://wordpress.org/plugins/statpress-visitors/

Viewing 1 replies (of 1 total)
  • Plugin Author luciole135

    (@luciole135)

    The errors Undefined offset, Undefined index and Undefined variable has no impact on your site or PHP, otherwise the pages would not display. These errors indicate that the tested variables do not exist. In this case, php returns NULL and TEST returns FALSE. To avoid these errors appear, it would test the existence of the variable before testing its contents, making to make 2 times more tests.

    Error # 9 can be corrected by replacing “feed, language,” with “feed, user, language,” on line 390.

Viewing 1 replies (of 1 total)
  • The topic ‘Debug errors.’ is closed to new replies.