{"action":"closed","issue":{"url":"https://api.github.com/repos/digitalmethodsinitiative/dmi-tcat/issues/166","repository_url":"https://api.github.com/repos/digitalmethodsinitiative/dmi-tcat","labels_url":"https://api.github.com/repos/digitalmethodsinitiative/dmi-tcat/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/digitalmethodsinitiative/dmi-tcat/issues/166/comments","events_url":"https://api.github.com/repos/digitalmethodsinitiative/dmi-tcat/issues/166/events","html_url":"https://github.com/digitalmethodsinitiative/dmi-tcat/issues/166","id":141853544,"number":166,"title":"import json","user":{"login":"arnoutponsioen","id":17899995,"avatar_url":"https://avatars.githubusercontent.com/u/17899995?v=3","gravatar_id":"","url":"https://api.github.com/users/arnoutponsioen","html_url":"https://github.com/arnoutponsioen","followers_url":"https://api.github.com/users/arnoutponsioen/followers","following_url":"https://api.github.com/users/arnoutponsioen/following{/other_user}","gists_url":"https://api.github.com/users/arnoutponsioen/gists{/gist_id}","starred_url":"https://api.github.com/users/arnoutponsioen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnoutponsioen/subscriptions","organizations_url":"https://api.github.com/users/arnoutponsioen/orgs","repos_url":"https://api.github.com/users/arnoutponsioen/repos","events_url":"https://api.github.com/users/arnoutponsioen/events{/privacy}","received_events_url":"https://api.github.com/users/arnoutponsioen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-18T12:37:34Z","updated_at":"2016-03-18T14:07:50Z","closed_at":"2016-03-18T14:07:50Z","body":"Hi,\r\n\r\nJust tried the import function of json dump, but got all kinds of errors.\r\nThe actual .json file is in /var/www/dmi-tcat/import\r\n\r\nroot@server:/var/www/dmi-tcat/import# php import-jsondump.php                                                                                                                      \r\nThe query bin 'energietransitiexxx' already exists. Are you sure you want to add tweets to 'energietransitiexxx'? (yes/no)                                                         \r\nyes                                                                                                                                                                                \r\nprocessing ../import/test.json                                                                                                                                                     \r\nPHP Warning:  Invalid argument supplied for foreach() in /var/www/dmi-tcat/capture/common/functions.php on line 1129                                                               \r\nPHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/dmi-tcat/capture/common/functions.php on line 1140                                        \r\nPHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/dmi-tcat/capture/common/functions.php on line 1143                                        \r\nPHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/dmi-tcat/capture/common/functions.php on line 1144                                        \r\nPHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual th\r\nat corresponds to your MariaDB server version for the right syntax to use near ')' at line 1' in /var/www/dmi-tcat/capture/common/functions.php:1274                               \r\nStack trace:                                                                                                                                                                       \r\n#0 /var/www/dmi-tcat/capture/common/functions.php(1274): PDOStatement->execute()                                                                                                   \r\n#1 /var/www/dmi-tcat/import/import-jsondump.php(68): Tweet->isInBin('energietransiti...')                                                                                          \r\n#2 /var/www/dmi-tcat/import/import-jsondump.php(44): process_json_file_timeline('../import/test....', Object(PDO))                                                                 \r\n#3 {main}                                                                                                                                                                          \r\n  thrown in /var/www/dmi-tcat/capture/common/functions.php on line 1274   \r\n\r\nThe import-jsnondump.php file has been changed according the instruction. \r\n\r\n// specify the name of the bin here \r\n$bin_name = 'energietransitiexxx';\r\n// specify dir with the user timelines (json)\r\n$dir = '../import';\r\n// set type of dump ('import follow' or 'import track')\r\n$type = 'import track';\r\n// if 'import track', specify keywords for which data was captured\r\n$queries = array('energietransitie');\r\n\r\nAny suggestions?\r\n\r\nArnout"}}