PHP output on edit video and TV screen

A forum for items relating to the installation and use of SwissCenter on Linux platforms.

PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 10:04 am

HI
when i selct edit TV or Video i gert th efollowing code outputted at the top of th epage befor eth elist of TV edpisodes or Movies.

Code: Select all
FALSE, XML_OPTION_SKIP_WHITE => TRUE); $xml = new XPath(FALSE, $options); $xml->importFromString(''); $movie_path = '/movie[1]'; $xml->appendChild($movie_path,''); if ( !empty( $details[0]["SYNOPSIS"] ) ) $xml->appendChild($movie_path,''.utf8_encode(htmlspecialchars($details[0]["SYNOPSIS"])).''); // Actors $actor_list = db_toarray("select actor_name name from actors a, actors_in_movie aim where aim.actor_id = a.actor_id and movie_id=".$file_id); if ( !empty( $actor_list ) ) { $actors_path = $xml->appendChild($movie_path,''); foreach ($actor_list as $actor) { $xpath = $xml->appendChild($actors_path,''); $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($actor["NAME"])).''); } } // Certificates if ( !empty( $details[0]["CERTIFICATE"] ) ) { $certificate = db_toarray("select name, scheme from certificates where cert_id = ".$details[0]["CERTIFICATE"]); $xpath = $xml->appendChild($movie_path,''); $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($certificate[0]["NAME"])).''); } // Genres $genre_list = db_toarray("select genre_name name from genres g, genres_of_movie gom where gom.genre_id = g.genre_id and movie_id=".$file_id); if ( !empty( $genre_list ) ) { $xpath = $xml->appendChild($movie_path,''); foreach ($genre_list as $genre) $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($genre["NAME"])).''); } // Directors $director_list = db_toarray("select director_name name from directors d, directors_of_movie dom where dom.director_id = d.director_id and movie_id=".$file_id); if ( !empty( $director_list ) ) { $xpath = $xml->appendChild($movie_path,''); foreach ($director_list as $director) $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($director["NAME"])).''); } // Running Time if ( !empty( $details[0]["LENGTH"] ) ) $xml->appendChild($movie_path,''.floor($details[0]["LENGTH"]/60).'');... //


any ideas cheers
rob
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby Pernod » Mon Oct 13, 2008 10:25 am

That's not right. Has it always done this for you, or have you recently updated?

Maybe try updating to the latest development version, it looks as though one or more of your files have become corrupted somehow.

Nigel
Players : Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
Webserver : Simese v2.6.5 | Apache 2.2.21 | PHP v5.2.17 | MySQL v5.1.32
Server : Windows 7 Professional 64bit - Intel i7-4770K @4.2GHz - 16GB RAM - 5TB HDD | Synology DS412+
AV : Pioneer VSX-915 | Samsung LE40C650

Image
User avatar
Pernod
Senior Member
Senior Member
Developer
 
Posts: 4339
Age: 43
Joined: Thu Jan 25, 2007 6:21 am
Location: Croydon, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 10:31 am

Nigel - hi this is only occuring on my newly built NAS running the latest dev build.... so i thinkn it has always happed on this partiucular build.

coudl be relqted the other post i made re .ifo?
cheers
rob
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby Pernod » Mon Oct 13, 2008 10:36 am

This is not related to your ifo issue.

If everything is working correctly on your Vista server then I'd suggest comparing files on each server. The edit TV and video pages are in the files config_tv.php and config_movie.php. Also check xml_sidecar.php since that is the file being displayed.
Players : Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
Webserver : Simese v2.6.5 | Apache 2.2.21 | PHP v5.2.17 | MySQL v5.1.32
Server : Windows 7 Professional 64bit - Intel i7-4770K @4.2GHz - 16GB RAM - 5TB HDD | Synology DS412+
AV : Pioneer VSX-915 | Samsung LE40C650

Image
User avatar
Pernod
Senior Member
Senior Member
Developer
 
Posts: 4339
Age: 43
Joined: Thu Jan 25, 2007 6:21 am
Location: Croydon, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 11:11 am

HI i copoed the files over fomr my vista server ( made backups :)) to the NAS and on config_monive i get

"Unknown column 'MEDIA_TYPE_DVD' in 'where clause'"

I did notice that the DVD media type is not listed in the verson running on the NAS (SwissCenter : SVN Revision [1103]) where it is onthe simese version (SwissCenter : SVN Revision [1088])

... cheers
rob
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby Pernod » Mon Oct 13, 2008 12:23 pm

The DVD media type is now included with the Video media type in the latest development version.

When I suggested comparing files I assumed both your servers were running the same version, obviously not. Update your Windows server and then compare again.
Players : Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
Webserver : Simese v2.6.5 | Apache 2.2.21 | PHP v5.2.17 | MySQL v5.1.32
Server : Windows 7 Professional 64bit - Intel i7-4770K @4.2GHz - 16GB RAM - 5TB HDD | Synology DS412+
AV : Pioneer VSX-915 | Samsung LE40C650

Image
User avatar
Pernod
Senior Member
Senior Member
Developer
 
Posts: 4339
Age: 43
Joined: Thu Jan 25, 2007 6:21 am
Location: Croydon, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 1:10 pm

Sorry .... yep you are right not much point doing a copare across two versions.....

Ok so both now running SwissCenter : SVN Revision [1103] and the vista one is fine no issues, the one on NAS ( Debian) still gives me the dump on the screen.

copied over
config_movie.php
config_movie.php

to /config

and

xml_sidecar.php to /base

reastrted Apache, same result....

cheers
rob
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby Pernod » Mon Oct 13, 2008 1:24 pm

Any chance of a screenshot?
Players : Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
Webserver : Simese v2.6.5 | Apache 2.2.21 | PHP v5.2.17 | MySQL v5.1.32
Server : Windows 7 Professional 64bit - Intel i7-4770K @4.2GHz - 16GB RAM - 5TB HDD | Synology DS412+
AV : Pioneer VSX-915 | Samsung LE40C650

Image
User avatar
Pernod
Senior Member
Senior Member
Developer
 
Posts: 4339
Age: 43
Joined: Thu Jan 25, 2007 6:21 am
Location: Croydon, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 1:32 pm

Yes see attached file as i coudl nto get images to work .
Attachments
error1.jpg
File attachment
error1.jpg (313.53 KiB) Viewed 366 times
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby Pernod » Mon Oct 13, 2008 1:41 pm

Think I found the problem:

Open xml_sidecar.php with a decent text editor and change the first line:

<?

to

<?php
Players : Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
Webserver : Simese v2.6.5 | Apache 2.2.21 | PHP v5.2.17 | MySQL v5.1.32
Server : Windows 7 Professional 64bit - Intel i7-4770K @4.2GHz - 16GB RAM - 5TB HDD | Synology DS412+
AV : Pioneer VSX-915 | Samsung LE40C650

Image
User avatar
Pernod
Senior Member
Senior Member
Developer
 
Posts: 4339
Age: 43
Joined: Thu Jan 25, 2007 6:21 am
Location: Croydon, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 1:50 pm

Fixed coool ... thansk for the help much appreciated.
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby Pernod » Mon Oct 13, 2008 2:23 pm

In your php.ini on your NAS I presume you have:

short_open_tag=Off

and on Vista:

short_open_tag=On

We don't intentially use the short tags so I'll submit the change for release.
Players : Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
Webserver : Simese v2.6.5 | Apache 2.2.21 | PHP v5.2.17 | MySQL v5.1.32
Server : Windows 7 Professional 64bit - Intel i7-4770K @4.2GHz - 16GB RAM - 5TB HDD | Synology DS412+
AV : Pioneer VSX-915 | Samsung LE40C650

Image
User avatar
Pernod
Senior Member
Senior Member
Developer
 
Posts: 4339
Age: 43
Joined: Thu Jan 25, 2007 6:21 am
Location: Croydon, UK
Country: United Kingdom (uk)

Re: PHP output on edit video and TV screen

Postby bobbo » Mon Oct 13, 2008 2:33 pm

Correctly diagnosed B)
Player: EVA700
Server1:
Windows Vista PC
Server2:
Device: Buffalo LS Pro NAS
OS: Freelink Debian etch
Web Server: lighttpd 1.4.13
MYSql: v5.0.30-Debian_3
PHP: v5.2.0-8+etch11
bobbo
Member
Member
Contributor 2008
Contributor 2009
 
Posts: 207
Joined: Fri Nov 30, 2007 11:03 am
Location: Newcastle, UK
Country: United Kingdom (uk)


Return to Linux Related

Who is online

Users browsing this forum: No registered users and 1 guest

cron