Skip to content
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 7.1 - PHP Warning: file_get_contents() #1584

Closed
auricom opened this issue Jun 14, 2017 · 3 comments
Closed

PHP 7.1 - PHP Warning: file_get_contents() #1584

auricom opened this issue Jun 14, 2017 · 3 comments
Milestone

Comments

@auricom
Copy link

auricom commented Jun 14, 2017

Hello,

When using greader API with PHP 7.1, there is some warning in my nginx error log :

*31 FastCGI sent in stderr: "PHP message: PHP Warning: file_get_contents(): Failed to seek to position -1 in the stream in /config/www/freshrss/p/api/greader.php on line 26" while reading response header from upstream, client: 172.17.0.1, server: , request: "GET /api/greader.php/reader/api/0/stream/items/ids?output=json&s=user%2F-%2Fstate%2Fcom.google%2Freading-list&xt=user/-/state/com.google/read&n=10000&r=n HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxxx"

With PHP 7.0 this warning don't occur.

It seems that file_get_contents() got updated with PHP 7.1, and FreshRSS php code should be updated : neos/flow-development-collection#821

@thomasrenes
Copy link
Contributor

I'm seeing the same error in "/p/api/pshb.php" with PHP 7.1:

PHP Warning: file_get_contents(): Failed to seek to position -1 in the stream in /p/api/pshb.php on line 14

@Alkarex Alkarex added this to the 1.8.0 milestone Jun 14, 2017
Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Jun 14, 2017
@Alkarex
Copy link
Member

Alkarex commented Jun 14, 2017

Thanks for the bug reports. Could you please try this fix? #1585

@thomasrenes
Copy link
Contributor

Thanks, the warning messages are gone in my logs after applying the fix.

Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Jun 20, 2017
@Alkarex Alkarex closed this as completed Jun 20, 2017
@Alkarex Alkarex modified the milestones: 1.8.0, 1.7.1 Aug 19, 2017
javerous pushed a commit to javerous/FreshRSS that referenced this issue Jan 20, 2020
javerous pushed a commit to javerous/FreshRSS that referenced this issue Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants