WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Auto Tagger] fatal error on activate. WP 2.3.3. (6 posts)

  1. patyuen
    Member
    Posted 6 years ago #

    fatal error on activate. WP 2.3.3.

    [Relates to: http://wordpress.org/extend/plugins/wp-auto-tagger/ ]

  2. iDope
    Member
    Posted 6 years ago #

    Please tell me the full error message including the line number.

  3. gourmetcoffeesnob
    Member
    Posted 5 years ago #

    I get the following when using your plug:

    Warning: Missing argument 2 for auto_gettags() in /home/sherril/public_html/gourmetcoffeesnob/wp-content/plugins/auto-tagger.php on line 86

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sherril/public_html/gourmetcoffeesnob/wp-content/plugins/auto-tagger.php on line 128

    Warning: array_walk() [function.array-walk]: The argument should be an array in /home/sherril/public_html/gourmetcoffeesnob/wp-content/plugins/auto-tagger.php on line 129

    Warning: array_unique() [function.array-unique]: The argument should be an array in /home/sherril/public_html/gourmetcoffeesnob/wp-content/plugins/auto-tagger.php on line 130

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sherril/public_html/gourmetcoffeesnob/wp-content/plugins/auto-tagger.php on line 131

    Warning: Cannot modify header information - headers already sent by (output started at /home/sherril/public_html/gourmetcoffeesnob/wp-content/plugins/auto-tagger.php:86) in /home/sherril/public_html/gourmetcoffeesnob/wp-includes/pluggable.php on line 331

    comments/suggestions

  4. chainas
    Member
    Posted 5 years ago #

    Hello,

    i receive the same error message, when this bug will be fixed?

    Thank You

  5. Anonymous
    Unregistered
    Posted 5 years ago #

    Hi,
    I only can fix partial problem. Still looking for bugs.

    Replace *ORGINAL CODE*:
    => $tags=array_merge(explode(',',$tags), $results['ResultSet']['Result']);

    With:
    => $resultsResult = (is_array($results['ResultSet']['Result']))?$results['ResultSet']['Result']:array();
    $tags=array_merge(explode(',',$tags), $resultsResult);

    Reason Behind: "$results['ResultSet']['Result']" may return empty string, array_merge function need an array to pass through. So, just need to check for empty string and convert to empty array if needed to.

    Thanks.

    All the Best.
    Cloud Siah

  6. iDope
    Member
    Posted 5 years ago #

    This has been fixed. Please download the updated version.

Topic Closed

This topic has been closed to new replies.

About this Topic