Kodi Community Forum
MediaFrontPage - Web interface with widget type architecture to control multiple apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: MediaFrontPage - Web interface with widget type architecture to control multiple apps (/showthread.php?tid=83304)



- DejaVu - 2011-01-30

The webserver you have installed, does it come with PHP? Moreover, what system are you trying to run on? Full blown Ubuntu, XBMCLive?

Try a test.php script to see if it shows.


- rascalli - 2011-01-30

very nice ..

Only problem it does not work with the XBMC on old xbox
As that one uses the API & not json

Any idea on how to get that working ??


- rflores2323 - 2011-01-31

DejaVu77 Wrote:The webserver you have installed, does it come with PHP? Moreover, what system are you trying to run on? Full blown Ubuntu, XBMCLive?

Try a test.php script to see if it shows.

I am installed Xampp for linux 1.7.4 and it shows php is on the list of installed components.

I am running on a full ubuntu 10.04 desktop. I have put a test file and it shows up however when I try to go to the mediafrontpage it just shows a page "The web server software is running but no content has been added, yet"

I dont know if my congifuration file is correct. My config file


- alshain - 2011-01-31

Can you please post a tree of your htdocs folder? Also indicate, which URLs you have entered and what worked.


- rflores2323 - 2011-01-31

alshain Wrote:Can you please post a tree of your htdocs folder? Also indicate, which URLs you have entered and what worked.

/opt/lampp/htdocs

I put the test folder with a test.htm and I see file when I go to http://192.168.1.11/test.

I then put the folder mediafrontpage (renamed) to the same place and go to http://192.168.1.11/mediafrontpage/
and get a message sayings

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

however how do I get my widgets to show and get all the options like sickbeard, couch potato, etc.. to show? Here is my config file. http://pastebin.com/NKiWSjUQ


- alshain - 2011-01-31

What happens when you go to mediafrontpage/index.php instead?

Also, try replacing your test.html with a test.php with the following content:

Code:
<?php
phpinfo();
?>



- rflores2323 - 2011-01-31

alshain Wrote:What happens when you go to mediafrontpage/index.php instead?

Also, try replacing your test.html with a test.php with the following content:

Code:
<?php
phpinfo();
?>

when I go to http://192.168.1.11/mediafrontpage/index.php I get the below
Quote:Warning: require_once(m/mobile_device_detect.php) [function.require-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/mediafrontpage/index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'm/mobile_device_detect.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/mediafrontpage/index.php on line 3

I then put a test1 folder and added a test1.php file inside. I go to http://192.168.1.11/test1/ and can see an indexpage with the file

my index.php page is as per below
Code:
<?php
  // Redirect if on a mobile browser
  require_once "m/mobile_device_detect.php";
  if( mobile_device_detect(true,true,true,true,true,true,true,false,false) ) {
    header('Location: m/');
    exit();
  }
?>

<html>
  <head>
    <title>Media Center</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
  </head>

  <frameset rows='38, *' frameborder=0 border=0 framespacing=0>
    <frame src=nav.php name=nav noresize scrolling='no'>
    <frame src=mediafrontpage.php name=main noresize>
  </frameset>
  <noframes>
    <p>Your browser does not support frames</p>
  </noframes>
</html>


HuhHuhHuh


- alshain - 2011-01-31

rflores2323 Wrote:Warning: require_once(m/mobile_device_detect.php) [function.require-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/mediafrontpage/index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'm/mobile_device_detect.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/mediafrontpage/index.php on line 3

That is pretty self explanatory, no?
rflores2323 Wrote:I then put a test1 folder and added a test1.php file inside. I go to http://192.168.1.11/test1/ and can see an indexpage with the file
I don't know why you'd go to that page and not to test1.php directly... but anyway, the above error shows, that PHP is working.


- rflores2323 - 2011-01-31

FInally got it working.. thanks Alshain for the help


- mwkurt - 2011-02-01

Hello,

I am going to work on getting this installed tonight. I have a couple questions that I hope someone can answer. I have read through most of the thread and was not clear on the following:

I install this on my server pc running windows 7. If I install this on my server pc, I can access the main screen of this application from any other computer on my network? Is this correct?

I am sure I will have more questions later. One more though...I know nothing about PHP, JSON or programming in general. Does anyone know if it is possible to make a widget that allows control of FlexRaid?

http://www.openegg.org/forums/posts/list/6.page

This link seems to be the one that tells how to create a client for FlexRaid.

Thanks,
Mark


- alshain - 2011-02-01

Yes, you can access it from other computers.


- Celox - 2011-02-01

ok i think i found something weird. in the last couple of weeks i noticed that my xbmc would crash randomly. so i compiled the latest git source and was carefully watching if it would happen again. and i think i found out why. everytime i access MFP which requests info through json my xbmc would crash.
so i went into the config.php to disable the json config.
it did not happen since that, i will be monitoring it further.
anyone else experiencing issues like that?

it did not happen before i had MFP running... Undecided


- Celox - 2011-02-01

looks like im not the only one
http://trac.xbmc.org/ticket/10905

has def. to do with json
http://forum.xbmc.org/showthread.php?tid=68263&page=52


- Nick8888 - 2011-02-02

What would help xbmc developers is if you could find if it is a specific json call which is crashing xbmc. For instance when you browse a specific movie or something.

In any case, it is a problem with xbmc not mfp and the xbmc developers have stated that xbmc should be able to handle any json calls (correct or erroneous)


- Celox - 2011-02-02

how can i debug the json calls? or where does it go to?
i don't see any json calls in the xbmc.log