oneclickpocket
oneclickpocket copied to clipboard
Error when saving plugin data
Hi
When i try to save Consumer Key and Access Token, this error appears on an "information popup" on top of screen :
Warning: Missing argument 2 for db_escape_string(), called in ~/public_html/plugins/oneclickpocket/init.php on line 23 and defined in ~/public_html/include/db.php on line 44 Warning: mysql_real_escape_string() expects parameter 2 to be resource, string given in ~/public_html/include/db.php on line 50 Warning: Missing argument 2 for db_escape_string(), called in ~/public_html/plugins/oneclickpocket/init.php on line 26 and defined in ~/public_html/include/db.php on line 44 Warning: mysql_real_escape_string() expects parameter 2 to be resource, string given in ~/public_html/include/db.php on line 50 Consumer Key set to
Access Token set to
(yes, there are no values after "set to")
My ttrss instance seems to be up-to-date (according to update tab), my PHP version is a bit old (debian 6, will be upgraded soon)
I'm totally new to pocket, and didn't really understood application authentification procedure, but the problem seems to be in the code, between what this plugin does and what ttrss expects
Thanks in advance
Oh ok no update since 2013 ^^
I forked to repair, corrected the same "missing link" bug in pocket retrieving query, and sent a pull request :)
Thank you very much for your fix! I just merged the pull request.
(Even without this correction it worked for me since 2013, so there was no need for updates – at least no needs I realized.)
Just to be sure, did you update ttrss from git since ttrss shift to a rolling release model ? I also was surprised by this shifting and missed many upgrades because of it