• This is in AskApache RewriteRules Viewer version: 3.2

    PHP throws two notices right on plugin activation:
    PHP Notice: Undefined index: Plugin URI in /wp-content/plugins/askapaches-rewriterules-viewer/askapaches-rewriterules-viewer.php on line 376
    and
    PHP Notice: Undefined index: Author URI in /wp-content/plugins/askapaches-rewriterules-viewer/askapaches-rewriterules-viewer.php on line 377

    Both are in one function – get_plugin_data().
    So I debugged it and it appears that author of the plugin has misjudged needed read length for file header by putting it at 1000 on line 368. Or maybe there were way too many tags introduced after writing that code.

    I corrected the bug by replacing
    $data = fread( $fp, 1000 ); on line 368
    with
    $data = fread( $fp, 1300 );
    and I also converted EOL characters to Unix so file is (N*lines) bytes smaller. Now 1233 bytes should be exactly enough.

    http://wordpress.org/extend/plugins/askapaches-rewriterules-viewer/

  • The topic ‘[Plugin: AskApache RewriteRules Viewer] PHP notices while activating plugin’ is closed to new replies.