[mythtv-users] Division by zero error in MythWeb video section

Jim Stichnoth stichnot at gmail.com
Tue Jul 21 02:23:07 UTC 2009

On Mon, Jul 20, 2009 at 5:52 PM, Johnny<jarpublic at gmail.com> wrote:
> I am getting the following error when I go to the video section in MythWeb:
>  Error at /usr/share/mythtv/mythweb/objects/Video.php, line 56:
>  Division by zero
>  Error at /usr/share/mythtv/mythweb/objects/Video.php, line 57:
>  Division by zero
> These are lines 56 and 57 of Video.php:
>  $wscale = video_img_width / $width;
>  $hscale = video_img_height / $height;
> I am not sure what is going on but I seem to have some problem with my
> thumbnails. I don't go into the video section that often in mythweb so
> I am not exactly sure when this problem started. Any ideas?

I had this problem recently.  Make sure the posters are readable by
the mythweb user, e.g. "chmod 644 /storage/posters/*".


More information about the mythtv-users mailing list