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

Undefined function ccache_update() since latest updates to tt-rss code #27

Open
ghost opened this issue May 8, 2017 · 3 comments
Open

Comments

@ghost
Copy link

ghost commented May 8, 2017

Since the latest updates to the tt-rss code I'm getting this error about an undefined function. I'm not sure if this function used to be part of tt-rss and was deleted? It doesn't appear to be part of PHP.

2017/05/08 10:30:16 [error] 61785#0: *1051 FastCGI sent in stderr: "PHP message:
PHP Fatal error: Uncaught Error: Call to undefined function ccache_update() in /www/tt-rss/plugins.local/repos/fever/fever/fever_api.php:716
Stack trace:
#0 /www/tt-rss/plugins.local/repos/fever/fever/fever_api.php(724)$ FeverAPI->setItem(106359, 1, 0)
#1 /www/tt-rss/plugins.local/repos/fever/fever/fever_api.php(850)$ FeverAPI->setItemAsRead(106359, NULL)
#2 /www/tt-rss/plugins.local/repos/fever/fever/index.php(52): FeverAPI->index(NULL)
#3 {main}
thrown in /www/tt-rss/plugins.local/repos/fever/fever/fever_api.php on line 716" while reading response header from upstream, client: 10.10.10.10, server: www.example.com, request: "POST /tt-rss/fever/?api HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "example.com"

@ghost
Copy link
Author

ghost commented May 8, 2017

New pull request which fixes this: #28

@ThomasTr
Copy link

ThomasTr commented May 8, 2017

Hi @matt-xtaz good tip, but ccache::ccache_update() doesent exists I used CCache::update() instead, and it seems to work: https://tt-rss.org/fox/tt-rss/blob/master/classes/ccache.php#L95

@ghost
Copy link
Author

ghost commented May 8, 2017

Ahhhh. Interesting. What I said worked fine for me!? I wonder if something in PHP 7.1.4 is mapping it. You're right though it looks like it should be ccache::update(). That also works for me. I'll redo the pull request.

New PR: #30

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

1 participant