Bug #227

Mythweb/Mythvideo errors

Added by mihanson almost 16 years ago. Updated almost 13 years ago.

Status:Closed Start date:
Priority:Normal Due date:12/31/1969
Assignee:jams % Done:

0%

Category:- Spent time: -
Target version:6.00.04

Description

When I click on the MythVideo icon in MythWeb, I'm greeted by a page of errors like this one:
Error at /data/srv/httpd/htdocs/mythweb/objects/Video.php, line 56: Division by zero
I think we've seen this before, but I forget what the fix was. Something in the php5 package maybe?

History

Updated by girkers over 15 years ago

I can confirm a different error with mine, I get:

Could not create a symlink to /myth/video, the local MythVideo directory for this hostname (mythtv). Please create a symlink to your MythVideo directory at data/video in order to use the video portions of MythWeb.

Updated by christian over 15 years ago

I believe this is an error in the original myth script and is not LinHES.

To fix this, I added an if check to verify the width and height were legal (ie. there is an image).
if (($width != 0) && ($height != 0)) {

so the code block looks like:
if (($width != 0) && ($height != 0)) { $wscale = video_img_width / $width; $hscale = video_img_height / $height; $scale = $wscale < $hscale ? $wscale : $hscale; $this->cover_scaled_width = floor($width * $scale); $this->cover_scaled_height = floor($height * $scale); }

Updated by jams over 15 years ago

division by zero error fixed upstream.
symlink error has been fixed in mythweb-0.21-18

Updated by jams almost 13 years ago

  • Target version changed from 8.0 to 6.00.04

Also available in: Atom PDF