MythWeb fixes on Kubuntu/Edgy
Bad substitution on install
If you get the follow error when installing/upgrading mythweb:
/var/lib/dpkg/info/mythweb.postinst: 31: Syntax error: Bad substitution
You'll need to patch the post-install script, changing the shell from sh to bash as follows:
--- /var/lib/dpkg/info/mythweb.postinst.orig 2006-09-30 01:27:29.000000000 -0400
+++ /var/lib/dpkg/info/mythweb.postinst 2006-09-30 01:25:42.000000000 -0400
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
set -e
Once you've done that, rerun `sudo aptitude upgrade` and it should install cleanly.
Apache Permissions, PHP, etc
If you can't get mythweb permissions so that it is viewable via Apache, refer to the MythWeb section of http://www.northern.ca/projects/mythslug/README
data/tv_icons directory is not writable
If when attempting to browse to the "Listings" you get:
Error
data/tv_icons directory is not writable by www-data. Please check permissions.
change the permissions on the directory to "world-writable" like so:
sudo chmod 777 /usr/share/mythtv/mythweb/data/tv_icons
SeriesId can't be null when creating a scheduled recording
If you see the following error when you go to create or save a scheduled recording:
error string: SQL Error: Column 'seriesid' cannot be null [#1048]
You'll need to apply the fix for bug #2366 grab the patch to fix it from here. (http://cvs.mythtv.org/trac/attachment/ticket/2366/mythweb-seriesid_programid_not_null.patch)
# Assuming mythweb-seriesid_programid_not_null.patch was downloaded to your Desktop
cat ~/Desktop/mythweb-seriesid_programid_not_null.patch | sudo patch --forward /usr/share/mythtv/mythweb/includes/recording_schedules.php
Thanks for that fix, its been bugging me for a week now :-)