@seanvree@hotmail.com said:
is this still active?
Still want to include some functionality but unfortunately don’t have time to do so for the time being. I will certainly fix errors e.g. if the API changes.
@seanvree@hotmail.com said:
Do you know why I’m getting this error in the browser?
Seems that I can get to the front end, but oddly when using a Chrome incognito session, I get this error.
This is a JavaScript error. I did not do the JavaScript myself but used some free jquery plugins. So I actually can’t help you on this error.
My guess is that the incognito mode prevents chrome from loading the jquery library which is required to execute the jquery plugins.
@mlocher75 , well it’s a great project! I hope you find time to dev more!
As far as the error, I actually get the error both incognito and not, but the diff is when using incognito, randomly I can’t get to the front page which displays all the libraries - it will be replaced with an error similar to “unable to display libraries, check your PLEX settings” or something to that effect. I can’t get the error right now as it seems to be working.
@mlocher75 , well it’s a great project! I hope you find time to dev more!
Thanks, I hope so too.
As far as the error, I actually get the error both incognito and not, but the diff is when using incognito
Had a short look and found the reason for the JavaScript error. I will fix it in a next release. Thanks for pointing out this error to me.
randomly I can’t get to the front page which displays all the libraries - it will be replaced with an error similar to “unable to display libraries, check your PLEX settings” or something to that effect. I can’t get the error right now as it seems to be working.
The error occurs when the php script cannot connect to the Plex server. If it only occurs randomly there might be some random connection issues.
I don’t have the line " bootstrap.min.js " but i DO have " trunk8.min.js "
Did you mean to flip those?
no it seems to not be processing that line in the php file…
you need to add it to templates/index.tpl
EDIT: i now understand why it seems the dev misunderstood howthe default: works in a switch statement.
PHP default: executes code if n is different from all above case’s and not as how the comment in the code says “In any case we include the trunk8 jquery plugin and the script header for the modal and trunk8 javascript” this means that
so the actual fix is this (attached is a already patched version)
in the file index.php
find this line $plppOutput['IncludeJS'] .= ' <script type="text/javascript" src="'.PLPP_JS_PATH.'trunk8.min.js"></script>'.PHP_EOL;
and move this to above this line
// If we show photos, we include the lightbox javascript and css
so it looks like this // In any case we include the trunk8 jquery plugin and the script header for the modal and trunk8 javascript default: { $plppOutput['ScriptCode'] .= ' <script type="text/javascript">'.PHP_EOL; } } $plppOutput['IncludeJS'] .= ' <script type="text/javascript" src="'.PLPP_JS_PATH.'trunk8.min.js"></script>'.PHP_EOL; // If we show photos, we include the lightbox javascript and css
The code is based on v0.9 (last version which was published here and on GitHub first) with some code cleanup and typo corrections.
Also includes the fix for the trunk8.js javascript error due to the javascript file not being loaded (see above).
Because I will not have much time for any further enhancements and I think the code is ready to leave beta status I have decided to release it now as v1.0 as the initial release on GitHub.
Fatal error: Can’t use method return value in write context in /home/robert/public_html/plex/plpp/index.php on line 104
Fatal error: Can’t use method return value in write context in /home/robert/public_html/plex/plpp/settings.php on line 496
both refer to this:
if (empty($plex->getToken())) {
$plppErrors[count($plppErrors)] = 'No token received! Plex.tv not reachable or wrong credentials!';
}
This means you are most probably using a PHP v5.4 (or even older) which does not support the empty() function to be used in this way.
Please update to PHP v5.6. PLPP has only been tested with PHP v5.6 and above.
I am getting server errors for lines 324 in index.php and lines 512 and 515 in the settings.php files. It looks like syntax errors according to dreamweaver. I am trying to troubleshoot but not having much luck as I have never dabbled in php before.
PHP Parse error: syntax error, unexpected ‘)’, expecting ‘]’ in /var/www/html/plpp/index.php on line 324
@“Landwehr Home” said:
I am getting server errors for lines 324 in index.php and lines 512 and 515 in the settings.php files. It looks like syntax errors according to dreamweaver. I am trying to troubleshoot but not having much luck as I have never dabbled in php before.
PHP Parse error: syntax error, unexpected ‘)’, expecting ‘]’ in /var/www/html/plpp/index.php on line 324
The error refers to the call to the sorting routine. Although the arguments are indeed quite nested in different kind of brackets actually everything is correct.
Can you give some further info: What web server are you using, in which version and on what os? What is your php version?
I got it up and running but those lines kept coming up while I was debugging and trying to figure out the problem. They also showed up in my apache error log.
Could I please ask for help?
I got PMS and all my libraries on a server at home (remote access is activated ad works) and PLPP on another server on a different network, not at home.
Selecting the libraries and the frontend on PLPP is impossible. The issue i got always, is this error: connection time-out after waiting 10000 milliseconds.
I really don’t know how to fix it.
Wow, this is amazing. I’m hoping it still works given how old it is. It’s exactly what I need to advertise my library!
Quick question before I get going. The requirements state that it needs a web server of some sort. Plex kinda has it’s own built in web server now, is it enough? Or do I need a separate install of apache or something? I only ask because I don’t know if Plex had that html functionality back in 2016 when this was released.
If however someone happens to know that this project is 100% incompatible with current plex, please warn me quick before I waste time.