selfoss
selfoss copied to clipboard
Error after installation through YunoHost
Hi @jtojnar, I just wanted to let you know (and the community) that there is a "Work In Pprogress" by @ericgaspar about integrating selfoss in the platform YunoHost. @ericgaspar and I are experiencing some JSON Parse error after installation is complete.
- The JSON Parse error we are currently experiencing: https://github.com/YunoHost-Apps/selfoss_ynh/commit/2cb317b33a88b47cc764626fa43c46a1a465a8da
- The WIP project: https://github.com/YunoHost-Apps/selfoss_ynh
- An issue related to YunoHost (not selfoss) when installing selfoss through it: https://github.com/YunoHost-Apps/selfoss_ynh/issues/2
Have a nice day.
For the JSON.parse
error, you can look at the requests in the Network panel of your Browser’s developer tools. You can see what the HTTP response contains.
When it’s ready, we can add a link to readme.
@jtojnar I've installed selfoss on yunohost, and got this "Load list error: parsererror SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data" error as well. I've looked into the developper tools in the network panel, the response is only the html code for the page, with nothing related to json or json code. What else could I investigate?
That is weird.
It should not show the HTML, when ajax
is passed in the query string for the GET
request:
https://github.com/fossar/selfoss/blob/2.18/controllers/Index.php#L35
Which should be the case:
https://github.com/fossar/selfoss/blob/2.18/public/js/selfoss-db.js#L107 https://github.com/fossar/selfoss/blob/2.18/public/js/selfoss-base.js#L25
Selfoss is now working nicely on YunoHost 🎉 https://github.com/YunoHost-Apps/selfoss_ynh