Forums

[resolved] [Plugin: Scissors] Error: Division by zero (and commands never finishing) (4 posts)

  1. Fabio Santana
    Member
    Posted 3 years ago #

    Hello,

    I'm using WordPress 2.7 (Brazilian Portuguese) on my website and downloaded Scissors 0.95. Whenenver I open the dialog to upload an image, the following message appears at the top:

    Warning: Division by zero in /home/gamerlifestyle/www/wp-content/plugins/scissors/scissors.php on line 42

    By the way, this is line 42:
    $thumbAspectRatio = intval(get_option("thumbnail_size_w")) / intval(get_option("thumbnail_size_h"));

    Also, I tried to crop and resize the images anyway, but the progress bar keeps rolling and the command never concludes, even if I wait forever.
    I tried downloading and installing the development version, 0.96, but the same problem occurs every time. Is there any solution to this problem?

    Thank you for your time and congratulations for your great work!

  2. stephanreiter
    Member
    Posted 3 years ago #

    Hey, thanks for the kind words. To address your problem, make sure you have specified valid thumbnail dimensions in the multimedia settings of your blog. Tell me, if it works.

  3. Fabio Santana
    Member
    Posted 3 years ago #

    Hey Stephan,

    You were absolutely right! I checked my Multimedia settings and every box had a "0" as a value. I adjusted it and not only the error message disappeared, but every command works like a charm as well! Thank you very much for your help and keep up the great work!

  4. stephanreiter
    Member
    Posted 3 years ago #

    Fabio,

    You're welcome! I'm glad it works now.
    I'll see what I can do to make error messages a tad more comprehensible in one of the next releases. :)

    Take care,
    Stephan

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags