-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
No content after fresh install (v1.3.0) #366
Comments
Hello @cryptosteve2 ! Can you confirm I can close this issue? |
Sorry that I can not reproduce this bug (as a had that day for many times) ... yes, I think you can close this bug. I'll contact you (wiht my sqlite-db) if this issue occurs again. |
Same issue using sqlite and lighttpd. |
Do you have errors in your lighttpd logs? |
Can you run poche_compatibility_test.php (this file is in your poche folder)? |
nicosomb, as you asked in IRC I also use lighttpd. I had no errors in my log files. |
Maybe the problem is here. |
No errors in lighttpd log neither in php log. With Poche 1.3.0 In acces.log I foundLoading poche home page
Poching a page
Refreshing home page
Compatibility test
Test result
Poche 1.0 ????? (maybe ok) With poche 1.2.0Refresh home page
Poching a page
Reloading home page
I see no differences ! |
Can you make a test with poche 1.3.1 please? |
Sorry ! Same result. |
I have test a fresh install of 1.3.1. |
@cryptosteve2 @fkieber Can you test dev branch please? https://github.com/wallabag/wallabag/tree/dev |
Fresh install, same issue. Compatibility test gives : wallabag 1: Compatibility Test
Bottom Line: Yes, you can! Your webhost has its act together! |
@Faless @mariroz @cryptosteve2 Can you reproduce this problem? |
Hi @nicosomb . The problem is that wallabag uses a third party library to convert the web page to something more readable. This library is called with file_get_contents on a local URL making an http(s) request to the local server. I was experiencing this problem with previous versions since I was using Basic Authentication on apache. So I request to store the page, the server makes an http request to itself (third party library folder) without authentication failing due to 403 not authorized. In your recent commit the issue was fixed for me since you added some lines in file inc/poche/Poche.class.php ( function getPageContent ) to provide the request with the same Basic Auth parameter received by wallabag to the third party library. The problem is that you didn't consider the Digest Auth ( http://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html ) so if the user is using a Digest Authentication method the problem is still there. Specifically if you add this to your apache config:
and create the htdigest file with:
You will be able to reproduce the problem. I see two main ways to solve this problem: I'm sorry I cannot help you further in code developing for now since these days I'm really busy. I hope you got the point since my English is far from perfect. If you have any doubt let me know. |
tnx to @Faless, reproduced this error by me too. |
have worked a bit on the problem. Short conclusion is below.
However, as a temporary alternative solution, I can propose third way to work this problem out: once someone needs to use Digest auth, he can allow access to makefulltextfeed.php from any location (or from his host IP only). For example for Apache web server: <Location /inc/3rdparty/makefulltextfeed.php>
Satisfy any
</Location> this can help for some time. |
a bit more about how I see fix of the problem using way 1.
|
I implemented a patch that includes the script instead of using file_get_contents . It use a function scope to hide/restore the global context and the session so the 3rdparty library cannot access wallabag session and server vars. |
@Faless, have tested your solution: it works by me too. |
@mariroz |
@Faless , n.p. - tested new commit - works by me too. |
It work also with lighttpd. |
… Tnx to @Faless. Fix issues wallabag#366 and wallabag#463
Do you still have this problem with last version? (please test dev branch please) |
No, sorry, I can't reproduce this bug as I said before in I had this issue the first days with poche/wallabag and never again |
@fkieber is that good for you? Can I close this issue? |
Great new theme. |
I have test update. |
Thank you! |
Hi, I set up a new poche installation based on poche-1.3.0.zip. After performing the (correct) setup thats sqlite-based, I have no content in saved entries.
e.g. https://adler.crashmail.de/~stell/screenshots/screenshot-20131224@215357.png
Setup seems to be ok: https://adler.crashmail.de/~stell/screenshots/screenshot-20131225@072036.png
In a sqlite-installation I found this error message in the debug mode:
2013/12/25_10:52:37 - 178.3.140.119 - storage type sqlite
2013/12/25_10:52:37 - 178.3.140.119 - execute query error : SQLSTATE[HY000]: General error: 1 table tags_entries already exists
After that I switched to mysql and got this error (and cannot save any new links anymore):
2013/12/25_10:54:42 - 178.3.140.119 - execute query error : SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null
After that, I start another fresh installation based von poche-1.0.0 and right after finishing this installation I upgraded to poche-1.3.0 ... an now it works. So, a fresh 1.3.0 doesn't work, a newly set up 1.0.0 upgraded to 1.3.0 works like a charm.
No idea where to search for a solution :)
The text was updated successfully, but these errors were encountered: