MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-07-29, 05:32   #11 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 582
Thanks: 17
Thanked 22 Times in 20 Posts

Country:

My System

Default

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
Anyone able to give some advice?

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
rekenaar is offline   Reply With Quote
Old 2007-07-29, 10:15   #12 (permalink)
MP Donator
 
level20peon's Avatar
 
Join Date: Jan 2007
Location: Aachen
Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts

Country:

My System

Send a message via ICQ to level20peon
Default

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
level20peon is offline   Reply With Quote
Old 2007-07-29, 11:26   #13 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 582
Thanks: 17
Thanked 22 Times in 20 Posts

Country:

My System

Default

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
rekenaar is offline   Reply With Quote
Old 2007-07-29, 11:34   #14 (permalink)
MP Donator
 
level20peon's Avatar
 
Join Date: Jan 2007
Location: Aachen
Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts

Country:

My System

Send a message via ICQ to level20peon
Default

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
level20peon is offline   Reply With Quote
Old 2007-07-29, 12:04   #15 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 582
Thanks: 17
Thanked 22 Times in 20 Posts

Country:

My System

Default

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
rekenaar is offline   Reply With Quote
Old 2007-08-03, 12:59   #16 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 582
Thanks: 17
Thanked 22 Times in 20 Posts

Country:

My System

Default

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
rekenaar is offline   Reply With Quote
Old 2007-08-03, 13:05   #17 (permalink)
MP Donator
 
level20peon's Avatar
 
Join Date: Jan 2007
Location: Aachen
Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts

Country:

My System

Send a message via ICQ to level20peon
Default

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
around line 105
Code:
$sqlquerychannels="SELECT idChannel, name from Channel WHERE isRadio!=1 ORDER BY sortOrder limit 30";

-level20peon
level20peon is offline   Reply With Quote
Old 2007-08-03, 13:18   #18 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 582
Thanks: 17
Thanked 22 Times in 20 Posts

Country:

My System

Default

That's exactly what I did.

Code:
AND Cha.SortOrder BETWEEN 1 AND 30
the second place looks slightly different but I guess its because it connects to different database (??):
Code:
$sqlquerychannels="SELECT TOP 30 idChannel, [name] from dbo.Channel WHERE  isRadio=0 ORDER BY SortOrder";
I am not at home now, but maybe I should try and change the second line to what you have.
__________________
Ondersteun Afrikaans!
******************
Most wanted feature:
playlist-on-steroids
******************

Rekenaar
rekenaar is offline   Reply With Quote
Old 2007-08-03, 13:22   #19 (permalink)
MP Donator
 
level20peon's Avatar
 
Join Date: Jan 2007
Location: Aachen
Age: 26
Posts: 991
Thanks: 14
Thanked 38 Times in 34 Posts

Country:

My System

Send a message via ICQ to level20peon
Default

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 ?
level20peon is offline   Reply With Quote
Old 2007-08-07, 17:02   #20 (permalink)
Portal Member
 
Join Date: Oct 2005
Location: Karlstad
Age: 23
Posts: 49
Thanks: 11
Thanked 0 Times in 0 Posts

Country:

My System

Default

is there any screenshots of Team MP webinterface or is that project scrapt ?
how's the development going goatse ??
ZeroX is offline   Reply With Quote
Reply

Bookmarks

Tags
interface, tve3, user, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT +1. The time now is 23:39.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress