-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP incompatibility on PHP > 8? #140
Comments
There should be no limit on PHP version, I'm running 8.1 myself though not in docker but I doubt that's relevant. The error on that line number is where it is trying to add 2 to a variable. The variable is a string but it should be a numeric string so that should work. Would you be able to post the contents of prefs/prefs.var here? That file does contain some passwords so if you'd rather not do that then the variable of interest is 'http_port_for_mopidy' which ought to look something like this: "http_port_for_mopidy";s:4:"6680" |
This is what i get in the current config. ....."http_port_for_mopidy";s:0:"";s:10:"multihosts".... I am one of the crazy ones that have multiple Mopidy targets (2) on same machine (and other ones on other machines) and is NOT using the HTTP interface for those as - as i had discussed in the past with you - i think that meant i could not use them as they have different HTTP ports (but only one could be defined for all of the targets in the past). Maybe i should reopen the old docker container and remove temporarily the other players and then add them back? Let me know if you think this cunning plan should work! matteo |
i think i solved that via the cunning plan. now i can reach Rompr as before and settings appear there! by converse once i connect - and tried as recommended keeping the prefs and albumart folders - this is what i get on the top right of the page once the connection is successful Should i perhaps kill the albumart folder and start from scratch? |
OK this is making sense now. I'd forgotten to account for the fact that the websocket port might not be a number. In version 2 you can now set the websocket port individually for each player, and I'd recommend you do it. The second error is odd, I'm not seeing that. But the fact that you're seeing it in the UI suggests that your PHP installation is in 'production' mode rather than 'development' mode - check your php.ini, display_errors should be Off and log_errors should be On. As for what the error means, it means I have to rewrite some code because PHP have decided I can't do a thing any more. Grr. |
If you're struggling to get rid of that error, you can edit util_classes/basealbumimage.class.php and add these lines above the definition of public function __construct
|
Thanks!
the last config only has one setting modified vs. production. I'll let you handle that change as i am more than happy to wait for that!! |
I've alreday fixed it on the develop branch but it won't make it to main until I do another release, which will be some months away. |
Fixed in 2.06 |
Hi, I have installed version 2.06 and PHP 8.2, the message about "creation of dynamic properties" still appears for 3 variables. Adding them to the list remove the message.
|
$basepath must also be added to be able to update podcasts. |
Hi
Not sure this is relevant but i realised that recently i cannot find /
update / subscribe to Apple Podcasts as it used to very easily.
Basically nothing is returned upon search, only individual episodes from
the other aggregator but not the entire series from apple.
But as usual... Excellent in general!
Regards
…On Tue, 19 Sep 2023, 10:40 François, ***@***.***> wrote:
$basepath must also be added to be able to update podcasts.
—
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4PJKXKXGKJ2ZNV3HT3NG3X3FK6TANCNFSM6AAAAAAT4EDK2U>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This error was silent on the interface, I found it out by activating the logs. Try activating the logs to see if it is the same problem. |
Thanks for reporting. I'll do a 2.07 release in the next day or so to add this fix. Apple podcasts are working for me. Which podcast were you searching for? It could be another PHP 8 error, but I'm developing using PHP 8.1. I really need to see a debug log. |
Hello, I have unsuccessfully tried to host Rompr 2.10 on a FreeBSD 14.0 box with PHP 8.3, I also tried PHP 8.1. Both PHP versions throw an error: "Rompr Backend Daemon Not Running". Reviewing the docs, I tried to run the following manually: $ /usr/local/bin/php rompr_backend.php It looks like it is failing out:
|
I have never tried FreeBSD but I can guess what the error is. The error message you're showing me means your prefs folder is not writable by PHP when you run the command by hand. This is an oversight in the docs, I very much doubt it's the actual problem. The backend daemon is a process that is spawned automatically when you first try to load RompR. The method for spawning the process depends on the OS. On Linux I have to do one thing, on MacOS I have to do another. At a guess I'd say that FreeBSD needs the same treatment as MacOS, but I'm not detecting FreeBSD so it's defaulting to the Linux method. |
OK I think I'm closer. For anyone else running FreeBSD running into this issue: I didn't realize running "php rompr_backend.php" from the webserver directory (for me, /usr/local/www/apache24/data) was necessary to get it to work, without failing out. Once I got it to work and run properly, it still wasn't recognized by RompR which, delving into the code, was a result of RompR not seeing the backend in the list of running processes (internally, /includes/functions.php runs So the following is a quick and dirty (and probably, subject to much improvement) rc.d init file: /usr/local/etc/rc.d/romprbackend:
This requires first running:
This has issues shutting down cleanly but it is at least up and running, and I can play with the Rompr interface now. PS: I realize this has gotten quite a bit off the original topic, as PHP is working fine for me now. |
Thanks for that, I'll add it to the docs when I remember. The backend is responsible for starting an romonitor.php process for each of your players, you should check that is running, otherwise some features won't work correctly. |
Thanks. Yes, romonitor.php is running, the backend service autoruns as it's supposed to on jail restart, and everything looks like it's running smoothly. Thanks again. |
That's cool. The only thing you'll need to remember to do is to restart your backend service whenever you update to a new release of RompR. It is possible that refreshing the browser after an update might kill the previous process, but it won't be able to start it again. This might get messy if database changes are needed. I'll need to look into it in a bit more depth before I do a new release to make sure it's all safe. Thanks for reporting. |
hi
I found when trying to start v 2.00 (at the related commit) the following when running via docker that this error pops up in console and nothing really shows up on the webpage.
Is there a maximum requirement on PHP? using PHP-FPM with docker-compose. worked as a charm with 8.1 and 1.61
Let me know if you need to know anything else.
As usual - thanks for the great work
The text was updated successfully, but these errors were encountered: