{"action":"created","issue":{"url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor/issues/2","repository_url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor","labels_url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor/issues/2/comments","events_url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor/issues/2/events","html_url":"https://github.com/tinkerspy/Automaton-Machine-Editor/issues/2","id":188760077,"number":2,"title":"PHP Error","user":{"login":"leseigneur","id":19383577,"avatar_url":"https://avatars.githubusercontent.com/u/19383577?v=3","gravatar_id":"","url":"https://api.github.com/users/leseigneur","html_url":"https://github.com/leseigneur","followers_url":"https://api.github.com/users/leseigneur/followers","following_url":"https://api.github.com/users/leseigneur/following{/other_user}","gists_url":"https://api.github.com/users/leseigneur/gists{/gist_id}","starred_url":"https://api.github.com/users/leseigneur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leseigneur/subscriptions","organizations_url":"https://api.github.com/users/leseigneur/orgs","repos_url":"https://api.github.com/users/leseigneur/repos","events_url":"https://api.github.com/users/leseigneur/events{/privacy}","received_events_url":"https://api.github.com/users/leseigneur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-11T13:28:00Z","updated_at":"2016-11-15T14:47:18Z","closed_at":null,"body":"Hello tinkerspy,\r\nI'm trying to run your Machine editor on my Ubuntu (16) dev server with PHP 5.6 & nginx\r\nIt somewhats works, only .h and .cpp generated files complain about simplexml :\r\n\r\n```\r\nFatal error: Call to undefined function simplexml_load_string() in /var/www/html/lib/libatm.php on line 510\r\n/* \r\nAutomaton::ATML::begin - Automaton Markup Language\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<machines>\r\n  <machine name=\"Atm_machine\">\r\n    <states>\r\n    </states>\r\n    <events>\r\n    </events>\r\n    <connectors>\r\n    </connectors>\r\n    <methods>\r\n    </methods>\r\n  </machine>\r\n</machines>\r\n\r\nAutomaton::ATML::end \r\n*/\r\n```\r\nAt first, I did not have simplexml installed, and that yield to blank pages and error messages in nginx error.log. I have fixed that now and no more have errors in the log file.\r\n\r\nHere is the error file, seams clean to me:\r\n\r\n```\r\njy@dev-ubuntu:/var/www/html$ tail -f /var/log/nginx/error.log\r\n2016/11/11 14:24:07 [error] 1345#1345: *1 FastCGI sent in stderr: \"PHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 522\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 531\r\nPHP message: PHP Notice:  Use of undefined constant events - assumed 'events' in /var/www/html/lib/libatm.php on line 551\r\nPHP message: PHP Notice:  Use of undefined constant events - assumed 'events' in /var/www/html/lib/libatm.php on line 560\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 564\r\nPHP message: PHP Notice:  Use of undefined constant connectors - assumed 'connectors' in /var/www/html/lib/libatm.php on line 569\r\nPHP message: PHP Notice:  Undefined index: create in /var/www/html/index.php on line 52\r\nPHP message: PHP Notice:  Undefined index: txt_rename in /var/www/html/index.php on line 61\" while reading response header from upstream, client: 192.168.1.101, server: 192.168.1.30, request: \"GET /index.php HTTP/1.1\", upstream: \"fastcgi://unix:/run/php/php5.6-fpm.sock:\", host: \"192.168.1.30\", referrer: \"http://192.168.1.30/cppheader.php\"\r\n2016/11/11 14:24:10 [error] 1345#1345: *1 FastCGI sent in stderr: \"PHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 522\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 531\r\nPHP message: PHP Notice:  Use of undefined constant events - assumed 'events' in /var/www/html/lib/libatm.php on line 551\r\nPHP message: PHP Notice:  Use of undefined constant events - assumed 'events' in /var/www/html/lib/libatm.php on line 560\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 564\r\nPHP message: PHP Notice:  Use of undefined constant connectors - assumed 'connectors' in /var/www/html/lib/libatm.php on line 569\r\nPHP message: PHP Notice:  Undefined index: txt_rename in /var/www/html/index.php on line 61\" while reading response header from upstream, client: 192.168.1.101, server: 192.168.1.30, request: \"POST /index.php HTTP/1.1\", upstream: \"fastcgi://unix:/run/php/php5.6-fpm.sock:\", host: \"192.168.1.30\", referrer: \"http://192.168.1.30/index.php\"\r\n2016/11/11 14:24:13 [error] 1345#1345: *1 FastCGI sent in stderr: \"PHP message: PHP Notice:  Undefined variable: coll in /var/www/html/navigation.php on line 11\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 522\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 531\r\nPHP message: PHP Notice:  Use of undefined constant events - assumed 'events' in /var/www/html/lib/libatm.php on line 551\r\nPHP message: PHP Notice:  Use of undefined constant events - assumed 'events' in /var/www/html/lib/libatm.php on line 560\r\nPHP message: PHP Notice:  Use of undefined constant states - assumed 'states' in /var/www/html/lib/libatm.php on line 564\r\nPHP message: PHP Notice:  Use of undefined constant connectors - assumed 'connectors' in /var/www/html/lib/libatm.php on line 569\" while reading response header from upstream, client: 192.168.1.101, server: 192.168.1.30, request: \"GET /cppcode.php HTTP/1.1\", upstream: \"fastcgi://unix:/run/php/php5.6-fpm.sock:\", host: \"192.168.1.30\", referrer: \"http://192.168.1.30/index.php\"\r\n```\r\n\r\nI have spent several hours on that, but I'm stuck now.\r\nYour help would be much appreciated.\r\njy :)"},"comment":{"url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor/issues/comments/260660272","html_url":"https://github.com/tinkerspy/Automaton-Machine-Editor/issues/2#issuecomment-260660272","issue_url":"https://api.github.com/repos/tinkerspy/Automaton-Machine-Editor/issues/2","id":260660272,"user":{"login":"tinkerspy","id":13277092,"avatar_url":"https://avatars.githubusercontent.com/u/13277092?v=3","gravatar_id":"","url":"https://api.github.com/users/tinkerspy","html_url":"https://github.com/tinkerspy","followers_url":"https://api.github.com/users/tinkerspy/followers","following_url":"https://api.github.com/users/tinkerspy/following{/other_user}","gists_url":"https://api.github.com/users/tinkerspy/gists{/gist_id}","starred_url":"https://api.github.com/users/tinkerspy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinkerspy/subscriptions","organizations_url":"https://api.github.com/users/tinkerspy/orgs","repos_url":"https://api.github.com/users/tinkerspy/repos","events_url":"https://api.github.com/users/tinkerspy/events{/privacy}","received_events_url":"https://api.github.com/users/tinkerspy/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T14:47:18Z","updated_at":"2016-11-15T14:47:18Z","body":"Have you tried this? \r\nsudo apt-get install php7.0-xml\r\n\r\nRgdz,\r\nTinkerspy\r\n"}}
{"actor":{"display_login":"tinkerspy"}}