WordPress.org

Ready to get started?Download WordPress

Forums

Thematic
[resolved] Thematic PHP errors (4 posts)

  1. buster13
    Member
    Posted 3 years ago #

    [11-Jun-2011 19:13:12] PHP Notice: Undefined offset: 1 in /home/lleitmot/public_html/wp-content/themes/thematic/library/extensions/dynamic-classes.php on line 349
    [11-Jun-2011 21:26:57] PHP Notice: Undefined index: HTTP_USER_AGENT in /home/lleitmot/public_html/wp-content/themes/thematic/library/extensions/dynamic-classes.php on line 314
    [11-Jun-2011 22:14:25] PHP Notice: Undefined offset: 0 in /home/lleitmot/public_html/wp-content/themes/thematic/library/extensions/helpers.php on line 69
    [11-Jun-2011 22:14:25] PHP Notice: Undefined offset: 0 in /home/lleitmot/public_html/wp-content/themes/thematic/library/extensions/helpers.php on line 71

    Got the above errors in my error.log
    Wordpress 3.1.3
    Thematic Child Theme 0.9.7.7

    May I know what is causing above errors? Thanks!

  2. buster13
    Member
    Posted 3 years ago #

    Resolved.

    The errors are not displayed on screen by default because of WordPress.
    For my case, i had error_reporting(E_ALL); hence i was able to view these errors.

    Above errors are present in the original unmodified Thematic theme 0.9.7.7 hence i feel that the developers should solve these errors.

  3. buster13
    Member
    Posted 3 years ago #

    Oh ya, i did these comments off modifications to helpers.php to eliminate the PHP offset errors.

    /* COMMENTED because with error_reporting(E_ALL); in config.php -> Notice: Undefined offset: 0 in helpers.php on line 69
    // prettify tag operator, if any
    if ($tag_ops[$tag_ops_counter] == ',') {
    $tag_ops[$tag_ops_counter] = ', ';
    } elseif ($tag_ops[$tag_ops_counter] == '+') {
    $tag_ops[$tag_ops_counter] = ' + ';
    }
    */
    // concatenate display name and prettified operators
    //$nice_tag_query = $nice_tag_query.$tag->name.$tag_ops[$tag_ops_counter];

  4. buster13
    Member
    Posted 3 years ago #

    ...
    ..
    // concatenate display name and prettified operators
    //$nice_tag_query = $nice_tag_query.$tag->name.$tag_ops[$tag_ops_counter];
    $nice_tag_query = $nice_tag_query.$tag->name;

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags