selfoss icon indicating copy to clipboard operation
selfoss copied to clipboard

WebUI Body is missing

Open OneClickPonyy opened this issue 2 years ago • 12 comments

My WebUI Body is "missing". Its something with Java i guess i also get this when im looking in to the dev tools: image

This is what the page looks like: image

*The machine is set up new so i dont have the problem after a update or something

Thanks in advance :)

OneClickPonyy avatar Jan 12 '22 09:01 OneClickPonyy

Hi. How did you install selfoss? Particularly, what web server (Apache/nginx/…) and OS do you use?

This looks like the assets are not correctly pointed to the public/ directory. With Apache, this is controlled by .htaccess file, which it is not enabled by default.

jtojnar avatar Jan 12 '22 10:01 jtojnar

Hei,

the OS im using is centos7 release 7.9.2009 Apache: httpd-2.4.6.97.el7 php: 5.4.16 composer: 2.2.4 mysql: ver 15.1 mariadb 5.5.68

this is the manual ive used: https://www.vultr.com/docs/how-to-install-selfoss-rss-reader-on-a-centos-7-lamp-vps hope this info helps : )

OneClickPonyy avatar Jan 12 '22 12:01 OneClickPonyy

This part should have taken care of that:

Open the file:

sudo vi /etc/httpd/conf/httpd.conf

Then find the section that starts with <Directory "/var/www/html"> and change AllowOverride none to AllowOverride All. The end result (with all comments removed) will look something like this:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Now save and close the Apache configuration file.

Assuming you installed selfoss under /var/www/html.

And do not forget to restart Apache (using sudo systemctl restart httpd).

jtojnar avatar Jan 12 '22 14:01 jtojnar

This part should have taken care of that:

Open the file:

sudo vi /etc/httpd/conf/httpd.conf

Then find the section that starts with <Directory "/var/www/html"> and change AllowOverride none to AllowOverride All. The end result (with all comments removed) will look something like this:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Now save and close the Apache configuration file.

Assuming you installed selfoss under /var/www/html.

And do not forget to restart Apache (using sudo systemctl restart httpd).

The file was already configurated like this image

and the files from selfoss are in the right directory image

ive also done systemctl restart httpd

OneClickPonyy avatar Jan 12 '22 15:01 OneClickPonyy

Then that looks alright. Could you also check the contents of the public/ directory and what URL do you get when you click on the link in the browser developer tools? Either the files are missing or selfoss is somehow incorrectly detecting a base path and producing wrong URLs.

jtojnar avatar Jan 12 '22 15:01 jtojnar

Then that looks alright. Could you also check the contents of the public/ directory and what URL do you get when you click on the link in the browser developer tools? Either the files are missing or selfoss is somehow incorrectly detecting a base path and producing wrong URLs.

so in public it looks like this: image

and wehen i click on the dev URL it comes to this site: https://www.chromium.org/developers/design-documents/create-amazing-password-forms

OneClickPonyy avatar Jan 13 '22 10:01 OneClickPonyy

Sorry, I meant the links on the right in the failed requests (like all.js). Alternately, you can check the network panel.

jtojnar avatar Jan 13 '22 15:01 jtojnar

nothing is happening its just empty field when i click on it - on all links on the right side from the error :(

OneClickPonyy avatar Jan 17 '22 07:01 OneClickPonyy

Sorry, I misremembered how the dev tools work in Chromium. You need to right click it and then click “Open in new tab”. Then you should be able to see the URL in the address bar. At least I hope so, my console is somewhat different when I tried to simulate this by deleting some file:

Chromium console showing a HTTP 404 error

jtojnar avatar Jan 17 '22 18:01 jtojnar

Sorry, I misremembered how the dev tools work in Chromium. You need to right click it and then click “Open in new tab”. Then you should be able to see the URL in the address bar. At least I hope so, my console is somewhat different when I tried to simulate this by deleting some file:

Chromium console showing a HTTP 404 error

okay so in every link i opened in a new tab i get error 404 every time. image so the files exist that means some path are set false as you said

OneClickPonyy avatar Jan 18 '22 12:01 OneClickPonyy

From that error, it looks like the files are being found relative to document root (/), which should be correctly resolved to the public/ directory using the following rule:

https://github.com/fossar/selfoss/blob/2.18/.htaccess#L25

So it looks like the issue is in Apache configuration but I exhausted my Apache knowledge and the few troubleshooting guides I found do not provide anything much interesting either.

jtojnar avatar Jan 18 '22 13:01 jtojnar

I guess you could try putting some gibberish to the top of the .htaccess file. That should cause an Error 500 if the file is loaded by Apache.

jtojnar avatar Jan 18 '22 13:01 jtojnar

selfoss 2.19 has been released, which completely revamps the asset loading. Please open a new issue if you still have problems.

jtojnar avatar Oct 16 '22 01:10 jtojnar