Giter Club home page Giter Club logo

Comments (3)

hypnotoad avatar hypnotoad commented on July 30, 2024

PS: Thanks a lot for your work. I would be happy to provide a fix for this issue if you guide me in the right direction.

from rompr.

fatg3erman avatar fatg3erman commented on July 30, 2024

Hmmm. Well this makes no sense :) I can't reproduce it and looking at the code I can see exactly where it's going wrong, but it's one of those places where it can't possibly go wrong :)
There is a slight possibility it might be a timing thing, and there were a few lines of code that should have been updated when I updated to jQuery 3, so I suppose it might be that. You could try pulling the head from the 'develop' branch and see if that fixes it.

from rompr.

hypnotoad avatar hypnotoad commented on July 30, 2024

After I initially thought that it is a problem in JS, I found out now that it is rather something in my server setup. The following stack trace is reported from nginx when the page is not loaded fully:

2023/10/31 23:54:48 [error] 33#33: *96353 FastCGI sent in stderr: "PHP message: PHP Warning:  fopen(prefs/jsoncache/commradio/a2ae1e1ba06dfca0e9f47111a6d9337c): Failed to open stream: Permission denied in /var/www/rompr2/util_classes/url_downloader.class.php on line 128; PHP message: PHP Fatal error:  Uncaught TypeError: curl_setopt(): supplied argument is not a valid File-Handle resource in /var/www/rompr2/util_classes/url_downloader.class.php:129
Stack trace:
#0 /var/www/rompr2/util_classes/url_downloader.class.php(129): curl_setopt()
#1 /var/www/rompr2/browser/apis/cache_handler.class.php(32): url_downloader->get_data_to_file()
#2 /var/www/rompr2/streamplugins/classes/commradioplugin.class.php(102): cache_handler->get_cache_data()
#3 /var/www/rompr2/search/g_search_commradio.class.php(13): commradioplugin->get_country_list()
#4 /var/www/rompr2/includes/search_handler.class.php(64): g_search_commradio->__construct()
#5 /var/www/rompr2/skins/desktop/skin.php(207): search_handler->create_search_panel()
#6 /var/www/rompr2/index.php(323): include('...')
#7 {main}
  thrown in /var/www/rompr2/util_classes/url_downloader.class.php on line 129" while reading upstream, client: 192.168.178.93, server: rompr, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "rompr.lan"

The "permission denied" was the problem. Sometimes it would create cache files in this commradio directory which for some unknown reason did not have write permissions for php.

In my web server setup, nginx accesses the files from git (as you call it /home/YOU/web here). It has www-data write permissions for the prefs directory, but apparently not for commradio.

As I think that this cannot happen if one follows https://fatg3erman.github.io/RompR/Installation.html, I close this issue as I guess it was my fault. But I don't really understand how I ended up with broken permissions.

Thank you!

from rompr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.