[mythtv] Mythweb shows only blank page.

Lorenz Hahn lorenz at gesindel.org
Mon Jan 30 21:47:40 UTC 2006


Chris Petersen wrote:
>>deactivated the first and activated the second statement. And something
>>changed - one error less:
>>
>>[Mon Jan 30 00:33:07 2006] [error] [client 10.10.60.5] PHP Notice:
>>Undefined index:  PATH_INFO in /var/www/mythweb/includes/init.php on line 30
>>[Mon Jan 30 00:33:07 2006] [error] [client 10.10.60.5] PHP Notice:
>>Undefined index:  PATH_INFO in /var/www/mythweb/includes/init.php on line 32
>>
>>The original problem presented the same error message again in line 34.
>>
>>Does this tell you anything? (Don't know what I'm doing here...)
> 
> 
> Actually, it does.  Those are just notifications, not errors (you're 
> running with all errors/notifications/warnings enabled, like perl's -w 
> mode).  The fact that it doesn't show the last one tells me that your 
> mod_rewrite seems to be doing what it's supposed to (both of them) and 
> that the error itself is happening further down the execution path.
> 
> You should be able to use either mod_rewrite setup.
> 
> Go ahead and update to the latest mythweb svn, which should hide those 
> notices.
> 
> Beyond this, it looks like you'll have to do some more serious 
> debugging..  Which for the most part involves adding stuff like:
> 
>      echo time();exit;
> 
> throughout the code to figure out where it's dying.  You might also 
> check your apache error logs, though I can't remember if you said you'd 
> done that already or not.
Yes, I did. Nothing there, only the startup message of apache2 and thats
perfectly ok.

I've inserted (and removed) the statements in several places. I'm stuck
here:

includes/db.php ------------------------ 8< ---------------------------

    function Database($db_name, $login, $password, $server='localhost'){
    // Connect to the database
    // For now, all we have is mysql -- maybe someday we get other stuff.
    echo time();
        $this->dbh = @mysql_connect($server, $login, $password)
            or $this->error("Can't connect to the database server.");
    echo time();exit;
        if ($this->dbh) {
            @mysql_select_db($db_name)
                or $this->error("Can't access the database file.");
        }
    }
-------------------------------- >8 ----------------------------------

The time is only printed once, so the script dies at the attempt to
connect the db I think. Why doesn't the error message appear?

<having a look at debian php+mysql-packages, maybe something is missing.../>

gotcha! After

apt-get install php4-mysql

and /etc/init.d/apache2 restart I've got something like a mythweb splash
screen.

Is a module test with error message possible for php dummies like me?

Thanks,
Lorenz



More information about the mythtv-dev mailing list