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

MySQL cache #413

Closed
mit686 opened this issue Jul 27, 2015 · 3 comments
Closed

MySQL cache #413

mit686 opened this issue Jul 27, 2015 · 3 comments

Comments

@mit686
Copy link

mit686 commented Jul 27, 2015

MAMP PHP Version 5.6.7

Getting error:

Warning: substr() expects parameter 1 to be string, array given in XXX/simplepie/library/SimplePie/Cache/MySQL.php on line 102

Notice: Array to string conversion in XXX/simplepie/library/SimplePie/Cache/MySQL.php on line 106

Warning: PDO::__construct() expects parameter 2 to be string, array given in XXX/simplepie/library/SimplePie/Cache/MySQL.php on line 106

Fatal error: Call to a member function query() on null in XXX/simplepie/library/SimplePie/Cache/MySQL.php on line 116

Anybody can help?

@rayjun
Copy link

rayjun commented Aug 12, 2015

I get the problem too!!!

@borjasanes
Copy link

I solved it with $feed->enable_cache(false);

@ifsnop
Copy link
Contributor

ifsnop commented Mar 15, 2016

This is probably caused by a wrong set_cache_location string. See http://simplepie.org/wiki/1.3/caching for details. Check that you are using the following construction:

$feed->set_cache_location('mysql://username:password@hostname:port/database');

Of course, disabling caching also works 😄

@ifsnop ifsnop closed this as completed Mar 15, 2016
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

4 participants