WordPress.org

Ready to get started?Download WordPress

Forums

WP MediaTagger
Mediatagger - Warning: division by zero on results page (3 posts)

  1. chabride
    Member
    Posted 1 year ago #

    On my results page after a search or by hitting a tag in the tag cloud there is the following text repeated 7 times:
    Warning: Division by zero in /nfs/giovanni11/dw21/d35/chabride/wordpress/wp-content/plugins/wp-mediatagger/mediatagger.php on line 527

    Warning: Division by zero in /nfs/giovanni11/dw21/d35/chabride/wordpress/wp-content/plugins/wp-mediatagger/mediatagger.php on line 534

    A link to the results page: http://students.washington.edu/chabride/wordpress/?page_id=176

    I am running wordpress on my student page from a University server.

    Here are the lines of code (I think):
    527 $img_ratio = $img_info->h/$img_info->w;
    534 $img_h = round($img_info->h * $img_w / $img_info->w, 0);

    This is the info from the plug-in footer.
    WP MediaTagger 3.2 | PHP 5.2.9 | MySQL 5.0.45 | GD Lib bundled (2.0.34 compatible)

    Any help would be appreciated. The results do appear below the warnings, but it would be great not to have the warnings at all.

    Thank you

    http://wordpress.org/extend/plugins/wp-mediatagger/

  2. phd38
    Member
    Plugin Author

    Posted 1 year ago #

    Means that $img_info->w was set to zero in your configuration for a reason I cannot explain yet.

  3. chimmytime
    Member
    Posted 1 year ago #

    Had the same problem, and debugged it.

    For my situation i found out that the server that this particular website was running on had allow_url_fopen disabled.

    once i changed the php.ini to

    allow_url_fopen = 1

    it works fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic