PlexWWWatch

Do you have Plex Home enabled? That is most likely your problem.

I do, makes sense I guess.

Getting really confused with this.  I get no error messages, but can't see any history.  I can see the recently added stuff but nothing in the plexWatch.db file seems to be getting pulled in.  Its on a network share (windows) but I even made a local copy and it doesn't read that one either.

Getting really confused with this.  I get no error messages, but can't see any history.  I can see the recently added stuff but nothing in the plexWatch.db file seems to be getting pulled in.  Its on a network share (windows) but I even made a local copy and it doesn't read that one either.


This started happening to me recently (possibly around the same time I last updated my Plex server) If you try hitting /PlexWWWatch/backend/watched.php with php errors enabled on your local server it should help you narrow down what the error is.
 
I am guessing you are having the same issue that I saw where certain entries are returning a duration of "0" which causes an error when trying to calculate the progress. I made a little tweak to the script to mark the progress of anything with a duration of 0 as 100%. Not a good way to fix the problem but it gets the job done.
 
If you want to do the same, change line 119-125 to:
private function get_progress() {
        if($this->duration == 0){
            $progress = 100;
        } else {
            $progress = ($this->viewOffset / $this->duration) * 100;
        }
        if ($progress > 90) {
            $progress = 100;
        }
        return $this->progress = $progress;
    }
I have a feeling this will need to be properly fixed somewhere higher up the line though(PlexWatch or Plex itself)

Thanks a lot for the response, but it seems my error is more basic.  I can't get either this or plexwatchweb to work (I see you replied on there too, thanks), the error I get from this one was very similar to the plexwatchweb one in that it can't open the database, guessing its permissions related but I tried a local copy and that didn't work either:

[28-Dec-2014 13:04:27 Europe/Dublin] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in C:\inetpub\wwwroot\PlexWWWatch\plex-watch\PlexWatch.php:12
Stack trace:
#0 C:\inetpub\wwwroot\PlexWWWatch\plex-watch\PlexWatch.php(12): PDO->__construct('sqlite:p:\\plexW...')
#1 C:\inetpub\wwwroot\PlexWWWatch\PlexWWWatch.php(89): PlexWatch->__construct('p:\\plexWatch.db', false)
#2 C:\inetpub\wwwroot\PlexWWWatch\PlexWWWatch.php(104): PlexWWWatch->plexWatch()
#3 C:\inetpub\wwwroot\PlexWWWatch\public\backend\statistics.php(6): PlexWWWatch->statistics()
#4 {main}
  thrown in C:\inetpub\wwwroot\PlexWWWatch\plex-watch\PlexWatch.php on line 12

I having issues getting PlexWWWatch working. I have it installed on Tomcat on Windows 7.  

I start tomcat and go to the setting page.  So far so good.  When I try to give it the path for PlexWatch DB it is not allowing me to type anything in. Same goes with the media center fields with in setting.  

Everything is empty with in the PlexWWWatch web.

I have file permissions all open (Full Control in windows)  in the PlexWWWatch web.  I can find only one error and it is in the console:

Error: [$resource:badcfg] http://errors.angularjs.org/1.2.14-build.2320+sha.1b1413a/$resource/badcfg?p0=array&p1=object

    at Error (native)

Any help would be appreciated.

I also have problems seeing results (they are empty).

Recently added works just fine. 

My web server error log says:

PHP Warning:  PDO::prepare(): SQLSTATE[HY000]: General error: 14 unable to open database file in /www/PlexWWWatch/plex-watch/PlexWatch.php on line 130, referer: http://10.1.2.112/PlexWWWatch/public/
[Tue Feb 10 14:24:43.723508 2015] [:error] [pid 12875] [client 10.1.3.111:56076] PHP Fatal error:  Call to a member function execute() on a non-object in /www/PlexWWWatch/plex-watch/PlexWatchWatchedIterator.php on line 8, referer: http://10.1.2.112/PlexWWWatch/public/

I am on Mac OS X Server 10.10.2. with full read rights on /opt/plexWatch/

Any ideas? 

Anybody got this setup in a Docker for unRAID? Curious to give this a shot and don't want to re-invent the wheel.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.