The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. chabride
    Posted 3 years 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


  2. phd38
    Plugin Author

    Posted 3 years ago #

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

  3. chimmytime
    Posted 3 years 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

  • WP MediaTagger
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic