Webinterface data.php syntax error (2005_11_07 patch) (1 Viewer)

htpcoz

Portal Pro
July 25, 2005
127
1
Brisbane
Home Country
Country flag
Area: Webinterface
MP Version:
CVS build from 15/11/2005,
Webinterface 0.3.2 (Patch 2005_11_07_19_45)
Skin: BlueTwo
Windows Version: Windows XP SP2, .NET 2.0
CPU Type: Intel P4 2.8Ghz
Memory: 512MB, DualChannel
Motherboard Chipset: ? (Intel 865)
Video Card: Radeon X700
Video Card Driver: Catalyst 5.9
Video Card Resolution: 1920x1080i
Video Render Type: VMR9
Video Codec Type & Version: Nvidia
Audio Codec Type & Version: Nvidia
TV Card: DNTV
TV Card: Haup 150MCE
Optional Log: N/A
Optional References:N/A

Synopsis:

The Web interface intermittently generates the following message;

Parse error: parse error, unexpected ';' in C:\Program Files\Team MediaPortal\MediaPortal\MPWebControl\htdocs\webscheduler\functions\data.php on line 11

It appears that the data.php file is constantly rewritten as you traverse the web interface, sometimes when the file is rewritten it is rewritten with some values missing as follows:

$defaultPaddingStart = ;
$defaultPaddingEnd = ;
?>

In this state I need to edit the data.php file manually to restore operation, and then after a variable number of actions in the web scheduler the file will again become corrupted.
 

htpcoz

Portal Pro
July 25, 2005
127
1
Brisbane
Home Country
Country flag
OK I think I've found what the problem is...

It is related to when you change the channel group, there is some code in there that re-saves the configuration file, however the function call does not include to two new arguments (for padding), so these values are saved as empty strings...

In function.php:

function doTVGroup_HTML($param,$updater)
{

.....

saveConfig(array($MPpath,$dbpath,$primetime,$showTB,$timeform,$language,$param,$viewlegend,$viewchannelno));

}

change this last line to;

saveConfig(array($MPpath,$dbpath,$primetime,$showTB,$timeform,$language,$param,$viewlegend,$viewchannelno,1,10));

This hardcodes the padding values of 1 and 10 in, which fixes the problem with the corrupted file, however a better option would be to store this in a global variable (just like $MPpath is) and call upon that variable in this place.

But in the short term if you hack this in you won't end up with the corrupted data.php.
 

Maschine

Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    Hi htpcoz,

    thanks for reporting this and giving also the solution :) I never use these channel groups, so that's why I didn't notice ;-) I will change this asap, though I think there's no need for hardcoded values as the padding time already is used as global value like the path...

    Thanks again,
    Maschine
     

    Maschine

    Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    Khris said:
    Now if I can only get the damn Web Remote to show a screenshot, I'll be even happier! :D

    That's (as I was said) a problem because the title of the MP program window changed it's name to "MediaPortal" instead of "Media Portal" and so it's not recognized correctly anymore. I'll look at the webinterface soon and then also try to fix this bug.

    Maschine
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Country flag
    You can easily change this by open "snapshot.asmx" with notepad & find "winHandle = GetWindow( "Media Portal" )" and edit "Media Portal" to "MediaPortal".

    Works fine here... :lol:
    Regards
    Roy
     

    Khris

    Portal Pro
    July 2, 2005
    449
    0
    Edmonton, AB
    Home Country
    Canada Canada
    ronilse said:
    You can easily change this by open "snapshot.asmx" with notepad & find "winHandle = GetWindow( "Media Portal" )" and edit "Media Portal" to "MediaPortal".

    Works fine here... :lol:
    Regards
    Roy

    WOOT! Thanks! :) I downloaded an updated snapshot.asmx from the website thinking that would fix it however it didn't, and I wasn't sure a fix would be this easy! :D
     

    Maschine

    Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    ronilse said:
    You can easily change this by open "snapshot.asmx" with notepad & find "winHandle = GetWindow( "Media Portal" )" and edit "Media Portal" to "MediaPortal".

    Coool, thanks ronilse :) So I don't need to search 8)

    Maschine
     

    Users who are viewing this thread

    Similar threads

    Sorry for the late response. In my experience, the EPG grabbing of a single transponder takes 2 to 3 minutes. Afterwards it takes 1 to 2 minutes to write the data to disk. To speed up the EPG stuff (not only writing but also reading the EPG guide in MediaPortal), I changed the program table (and only that table) from InnoDB to...
    Sorry for the late response. In my experience, the EPG grabbing of a single transponder takes 2 to 3 minutes. Afterwards it takes...
    I get a few "Continuity error..." after the EPG scan finished: [2021-01-30 18:56:10,278] [4c45530] [18c8] - mhw reset [2021-01-30...
    Replies
    2
    Views
    1K
    • Locked
    Thread moved to public forum. Please note that the status of this thread is "Not open for further replies", which actually means team-members and plugin devs can reply, but others can not, hence it is "read only".
    Thread moved to public forum. Please note that the status of this thread is "Not open for further replies", which actually means...
    Dear community, I started this thread some time ago in the internal team forums, but we think it is time to share it with you. It...
    Replies
    82
    Views
    12K
    Got it working:) Installed MP temporarily running Windows 7 where MP setup launched just fine so knew it wasn't a hardware issue then went back and re-installed XP SP3 along with .NET 3.5 and all updates. This time no EventType clr20r3 error and crash. Below are my notes to myself about this process in case it helps. Cheers...
    Got it working:) Installed MP temporarily running Windows 7 where MP setup launched just fine so knew it wasn't a hardware issue...
    I've been running MP 1.2 on my IBM ThinkCentre for years now and love it:) Thought it was time for an upgrade so loaded XP Pro SP3...
    Replies
    5
    Views
    2K
    MediaPortal Version: 1.2.0 MediaPortal Skin: default Windows Version: Win7 SP1 CPU Type: Intel Core 2 Duo P7550 2,26GHz HDD: Macmini HD Memory: 2GB Motherboard: Macmini Video Card: Geforce 9400 Video Card Driver: nvidia 8.15.11.8684 Sound Card: Onboard Sound Card AC3: Sound Card Driver: Realtek 6.0.1.5936 1. TV Card: EyeTV Hybrid 1...
    MediaPortal Version: 1.2.0 MediaPortal Skin: default Windows Version: Win7 SP1 CPU Type: Intel Core 2 Duo P7550 2,26GHz HDD...
    MediaPortal Version: 1.2.0 MediaPortal Skin: default Windows Version: Win7 SP1 CPU Type: Intel Core 2 Duo P7550 2,26GHz HDD...
    Replies
    0
    Views
    2K
    MediaPortal Version: MediaPortal 1.22 MediaPortal Skin: DefaultWide Windows Version: Windows 7 x86 CPU Type: Intel Core2Duo 2.4Ghz HDD: Seagate 160GB SATA Memory: 8GB Motherboard: Lenovo Video Card: nVidia Quadro NVS 140 Video Card Driver: nVidia Driver...
    MediaPortal Version: MediaPortal 1.22 MediaPortal Skin: DefaultWide Windows Version: Windows 7 x86 CPU Type...
    MediaPortal Version: MediaPortal 1.22 MediaPortal Skin: DefaultWide Windows Version: Windows 7 x86 CPU Type...
    Replies
    0
    Views
    828
    Top Bottom