{"action":"created","issue":{"url":"https://api.github.com/repos/elabftw/elabftw/issues/156","labels_url":"https://api.github.com/repos/elabftw/elabftw/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/elabftw/elabftw/issues/156/comments","events_url":"https://api.github.com/repos/elabftw/elabftw/issues/156/events","html_url":"https://github.com/elabftw/elabftw/issues/156","id":77040623,"number":156,"title":"Database problem when creating new item","user":{"login":"nilouvai","id":6140619,"avatar_url":"https://avatars.githubusercontent.com/u/6140619?v=3","gravatar_id":"","url":"https://api.github.com/users/nilouvai","html_url":"https://github.com/nilouvai","followers_url":"https://api.github.com/users/nilouvai/followers","following_url":"https://api.github.com/users/nilouvai/following{/other_user}","gists_url":"https://api.github.com/users/nilouvai/gists{/gist_id}","starred_url":"https://api.github.com/users/nilouvai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilouvai/subscriptions","organizations_url":"https://api.github.com/users/nilouvai/orgs","repos_url":"https://api.github.com/users/nilouvai/repos","events_url":"https://api.github.com/users/nilouvai/events{/privacy}","received_events_url":"https://api.github.com/users/nilouvai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-16T13:33:33Z","updated_at":"2015-05-16T21:32:35Z","closed_at":null,"body":"Dear all,\r\nI am running the latest version of elabftw (may 16, 2015... just ran the update tool) and I tried to create a new item in my database. The window open correctly but showed a weird kind of html source instead of the processed template. I saved it (cliking on save and go back) and my explorer is stuck on a blank page with this address: https://myserver/elabftw/app/editDB-exec.php\r\nIf I go back to the server using the history, I find the new item in the database, but it can only be edited by using html. No tag can be added for instance.\r\nI tried to use elabftw with Opera and Safari (both correctly updated) and got similar behavior. \r\n\r\nAny idea?"},"comment":{"url":"https://api.github.com/repos/elabftw/elabftw/issues/comments/102699894","html_url":"https://github.com/elabftw/elabftw/issues/156#issuecomment-102699894","issue_url":"https://api.github.com/repos/elabftw/elabftw/issues/156","id":102699894,"user":{"login":"nilouvai","id":6140619,"avatar_url":"https://avatars.githubusercontent.com/u/6140619?v=3","gravatar_id":"","url":"https://api.github.com/users/nilouvai","html_url":"https://github.com/nilouvai","followers_url":"https://api.github.com/users/nilouvai/followers","following_url":"https://api.github.com/users/nilouvai/following{/other_user}","gists_url":"https://api.github.com/users/nilouvai/gists{/gist_id}","starred_url":"https://api.github.com/users/nilouvai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilouvai/subscriptions","organizations_url":"https://api.github.com/users/nilouvai/orgs","repos_url":"https://api.github.com/users/nilouvai/repos","events_url":"https://api.github.com/users/nilouvai/events{/privacy}","received_events_url":"https://api.github.com/users/nilouvai/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T21:32:35Z","updated_at":"2015-05-16T21:32:35Z","body":"Here are the three last entries of my /var/log/apache2/error.log:\r\n\r\n[Sat May 16 21:16:51 2015] [error] [client 162.38.147.146] PHP Notice:  Constant ELAB_ROOT already defined in /var/www/elabftw/config.php on line 7, referer: https://162.38.147.7/elabftw/database.php?mode=view&id=61\r\n\r\n[Sat May 16 21:16:52 2015] [error] [client 162.38.147.146] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'elabftw.items_revisions' doesn't exist' in /var/www/elabftw/inc/editDB.php:123\\nStack trace:\\n#0 /var/www/elabftw/inc/editDB.php(123): PDOStatement->execute(Array)\\n#1 /var/www/elabftw/database.php(39): require_once('/var/www/elabft...')\\n#2 {main}\\n thrown in /var/www/elabftw/inc/editDB.php on line 123, referer: https://162.38.147.7/elabftw/database.php?mode=view&id=61\r\n\r\n[Sat May 16 21:17:41 2015] [error] [client 162.38.147.146] PHP Notice:  Constant ELAB_ROOT already defined in /var/www/elabftw/config.php on line 7, referer: https://162.38.147.7/elabftw/database.php?mode=edit&id=61"}}