| |||||||
| Development You want to code something for the TV-Server? Share it in here! |
![]() |
| | Thread Tools | Display Modes |
| | #11 (permalink) |
| Portal Member | I would like to try out this webinterface, but I am receiving the errors below: Code: Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'dbo.Channel'., SQL state S0002 in SQLExecDirect in C:\xampp\htdocs\htpc\index.php on line 145 Warning: odbc_fetch_array(): supplied argument is not a valid ODBC result resource in C:\xampp\htdocs\htpc\index.php on line 146 Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'dbo.Channel'., SQL state S0002 in SQLExecDirect in C:\xampp\htdocs\htpc\index.php on line 159 Warning: odbc_fetch_array(): supplied argument is not a valid ODBC result resource in C:\xampp\htdocs\htpc\index.php on line 162 I am using Friday's version of TV3 and MP. Vista. MS SQL Server 2005 XAMPP ODBC connection test successfull. Thank you
__________________ Ondersteun Afrikaans! ****************** Most wanted feature: playlist-on-steroids ****************** Rekenaar |
| | |
| | #12 (permalink) |
| MP Donator ![]() Join Date: Jan 2007 Location: Aachen Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts
Country: | You don't need the ODBC driver when you use MS SQL Server 2005, uninstall it. Also use Goatse's version of the Webinterface when using MS SQL Server 2005 not mine. -level20peon
__________________ some of my [HowTo] guides Backup your TV-Server configuration (advanced) Backup your MediaPortal configuration WebEPG (XMLTV) configuration most annoying bugs TV + 7 or more audio channels = lockup DVD + seek = lockup |
| | |
| | #13 (permalink) |
| Portal Member | I am using goatse's version (1st post). What did he mean in his post at point number 3 - Configure ODBC Connection? I did the following: Administrative Tools - Data Sources - Add. If I remove it, I am receiveing the following error in addition to the errors previously opsted: Code: Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\xampp\htdocs\htpc\index.php on line 6
__________________ Ondersteun Afrikaans! ****************** Most wanted feature: playlist-on-steroids ****************** Rekenaar |
| | |
| | #14 (permalink) |
| MP Donator ![]() Join Date: Jan 2007 Location: Aachen Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts
Country: | You might have misunderstood me, sorry. I said you don't need the "ODBC driver" not the "ODBC connection" at all. If you haven't installed the driver everything is fine. So configure your ODBC connection like you did and make sure you change the index.php like this: Code: < ?PHP // DB SETTINGS $ server="ENTERSERVER_NAME/IP_HERE"; $ username="YOUR_SERVER'S_USERNAME"; $ password="YOUR_SERVER'S_PASSWORD"; $ sqlconnect = odbc_connect($server, $username, $password); Don't modify line 6 ![]() -level20peon
__________________ some of my [HowTo] guides Backup your TV-Server configuration (advanced) Backup your MediaPortal configuration WebEPG (XMLTV) configuration most annoying bugs TV + 7 or more audio channels = lockup DVD + seek = lockup |
| | |
| | #15 (permalink) |
| Portal Member | UBF = User Brain Failure There is a setting for default database in the data source connection setup. Changed that to TvLibrary and now it is working. Thanks for trying to help.
__________________ Ondersteun Afrikaans! ****************** Most wanted feature: playlist-on-steroids ****************** Rekenaar |
| | |
| | #16 (permalink) |
| Portal Member | When I try to increase the number of visible channels, something does not work. I am using the version in the 1st post. It seems that there are 2 place that I need to change from 6 to lets say 30. The 1ste few channels show fine, but then the heading and the detail get out of sinc resulting in major confusion. My last 4 column headings then have no program data underneath. Any ideas to resolve another possible UBF from my side?
__________________ Ondersteun Afrikaans! ****************** Most wanted feature: playlist-on-steroids ****************** Rekenaar |
| | |
| | #17 (permalink) |
| MP Donator ![]() Join Date: Jan 2007 Location: Aachen Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts
Country: | You need to change the following lines, since the line-numbers may differ from your version you have to look for them manually around line 100 Code: AND Cha.SortOrder BETWEEN 1 AND 30 Code: $sqlquerychannels="SELECT idChannel, name from Channel WHERE isRadio!=1 ORDER BY sortOrder limit 30"; -level20peon
__________________ some of my [HowTo] guides Backup your TV-Server configuration (advanced) Backup your MediaPortal configuration WebEPG (XMLTV) configuration most annoying bugs TV + 7 or more audio channels = lockup DVD + seek = lockup |
| | |
| | #18 (permalink) |
| Portal Member | That's exactly what I did. Code: AND Cha.SortOrder BETWEEN 1 AND 30 Code: $sqlquerychannels="SELECT TOP 30 idChannel, [name] from dbo.Channel WHERE isRadio=0 ORDER BY SortOrder";
__________________ Ondersteun Afrikaans! ****************** Most wanted feature: playlist-on-steroids ****************** Rekenaar |
| | |
| | #19 (permalink) |
| MP Donator ![]() Join Date: Jan 2007 Location: Aachen Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts
Country: | The second line is OK when you use MS SQL 2005, I use MySQL so I had to alter the code. -level20peon EDIT: Please post a screenshot of your error. Is the EPG shown correctly inside MediaPortal ?
__________________ some of my [HowTo] guides Backup your TV-Server configuration (advanced) Backup your MediaPortal configuration WebEPG (XMLTV) configuration most annoying bugs TV + 7 or more audio channels = lockup DVD + seek = lockup |
| | |
![]() |
| Bookmarks |
| Tags |
| interface, tve3, user, web |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| User interface on second dispay? | wewes | Support | 2 | 2007-03-23 13:26 |
| Updated interface for MP Web Controller | quiller | Skins | 0 | 2007-01-21 07:14 |
| MPW (Web Interface) Does not start recording. | laura25 | Codecs, External Players | 4 | 2005-12-28 11:33 |
| Web Interface like xbmc? | brandenpro | Plugins | 1 | 2005-09-05 08:19 |
| Web Interface...... | spo | General Development (no feature request here!) | 24 | 2004-11-07 11:33 |