{"action":"created","issue":{"url":"https://api.github.com/repos/sulu/sulu/issues/3854","repository_url":"https://api.github.com/repos/sulu/sulu","labels_url":"https://api.github.com/repos/sulu/sulu/issues/3854/labels{/name}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/3854/comments","events_url":"https://api.github.com/repos/sulu/sulu/issues/3854/events","html_url":"https://github.com/sulu/sulu/issues/3854","id":306194435,"number":3854,"title":"PHP Warnings when executing \"sulu:build search_index\"","user":{"login":"fdyckhoff","id":14044108,"avatar_url":"https://avatars2.githubusercontent.com/u/14044108?v=4","gravatar_id":"","url":"https://api.github.com/users/fdyckhoff","html_url":"https://github.com/fdyckhoff","followers_url":"https://api.github.com/users/fdyckhoff/followers","following_url":"https://api.github.com/users/fdyckhoff/following{/other_user}","gists_url":"https://api.github.com/users/fdyckhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/fdyckhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdyckhoff/subscriptions","organizations_url":"https://api.github.com/users/fdyckhoff/orgs","repos_url":"https://api.github.com/users/fdyckhoff/repos","events_url":"https://api.github.com/users/fdyckhoff/events{/privacy}","received_events_url":"https://api.github.com/users/fdyckhoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-17T22:04:55Z","updated_at":"2018-03-24T19:20:05Z","closed_at":null,"author_association":"NONE","body":"| Q | A\r\n| --- | ---\r\n| Bug? | yes\r\n| New Feature? | no\r\n| Sulu Version | v1.6.14\r\n| Browser Version | -\r\n| PHP Version | 7.0.25\r\n\r\n#### Actual Behavior\r\n\r\nWhen executing following command, the console output is disrupted by PHP Warnings (PHP 7.0):\r\n\r\n```Shell\r\nphp bin/adminconsole sulu:build search_index \r\n```\r\n\r\n> PHP Warning:  str_repeat(): Second argument has to be greater than or equal to 0 in /path/to/project/vendor/symfony/symfony/src/Symfony/Component/Console/Helper/ProgressBar.php on line 512\r\n\r\n[sulu-build-search-index-console-warning-with-debug-info.txt](https://github.com/sulu/sulu/files/1822133/sulu-build-search-index-console-warning-with-debug-info.txt)\r\n\r\nWhen executing with --env=prod the warnings are only displayed and the command proceeds.\r\n*When executing with --env=dev the command fails.*\r\n\r\nThe warnings appear only for some of the sulu documents and doctrine entities (e.g. FileVersionMeta and PageDocument).\r\nThe warnings do not appear, when executing the reindex-command directly (`massive:search:reindex`).\r\n\r\n#### Expected Behavior\r\n\r\nThe command can be executed without warnings.\r\n\r\n#### Steps to Reproduce\r\n\r\nI'm not sure yet, how to reproduce this. I didn't have any warnings at the beginning (fresh installation with initial content / `sulu:build dev`). The warnings occurred some time after editing and adding more content.\r\n"},"comment":{"url":"https://api.github.com/repos/sulu/sulu/issues/comments/375917992","html_url":"https://github.com/sulu/sulu/issues/3854#issuecomment-375917992","issue_url":"https://api.github.com/repos/sulu/sulu/issues/3854","id":375917992,"user":{"login":"wachterjohannes","id":1464615,"avatar_url":"https://avatars2.githubusercontent.com/u/1464615?v=4","gravatar_id":"","url":"https://api.github.com/users/wachterjohannes","html_url":"https://github.com/wachterjohannes","followers_url":"https://api.github.com/users/wachterjohannes/followers","following_url":"https://api.github.com/users/wachterjohannes/following{/other_user}","gists_url":"https://api.github.com/users/wachterjohannes/gists{/gist_id}","starred_url":"https://api.github.com/users/wachterjohannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wachterjohannes/subscriptions","organizations_url":"https://api.github.com/users/wachterjohannes/orgs","repos_url":"https://api.github.com/users/wachterjohannes/repos","events_url":"https://api.github.com/users/wachterjohannes/events{/privacy}","received_events_url":"https://api.github.com/users/wachterjohannes/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T19:20:05Z","updated_at":"2018-03-24T19:20:05Z","author_association":"OWNER","body":"👍 thanks for investigating time for this issue! the PR looks good and i will try that on monday before merging 😀"}}
{"actor":{"display_login":"wachterjohannes"}}