{"action":"created","issue":{"url":"https://api.github.com/repos/AnimalDesign/bolt-translate/issues/82","repository_url":"https://api.github.com/repos/AnimalDesign/bolt-translate","labels_url":"https://api.github.com/repos/AnimalDesign/bolt-translate/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/AnimalDesign/bolt-translate/issues/82/comments","events_url":"https://api.github.com/repos/AnimalDesign/bolt-translate/issues/82/events","html_url":"https://github.com/AnimalDesign/bolt-translate/issues/82","id":181908078,"number":82,"title":"[BUG] Not filling in all translations causes 404s and exceptions","user":{"login":"jnvsor","id":5260644,"avatar_url":"https://avatars.githubusercontent.com/u/5260644?v=3","gravatar_id":"","url":"https://api.github.com/users/jnvsor","html_url":"https://github.com/jnvsor","followers_url":"https://api.github.com/users/jnvsor/followers","following_url":"https://api.github.com/users/jnvsor/following{/other_user}","gists_url":"https://api.github.com/users/jnvsor/gists{/gist_id}","starred_url":"https://api.github.com/users/jnvsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnvsor/subscriptions","organizations_url":"https://api.github.com/users/jnvsor/orgs","repos_url":"https://api.github.com/users/jnvsor/repos","events_url":"https://api.github.com/users/jnvsor/events{/privacy}","received_events_url":"https://api.github.com/users/jnvsor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-09T20:11:57Z","updated_at":"2016-12-29T12:05:29Z","closed_at":null,"body":"Simply creating a page and marking it as published in a default bolt install with translate goes very wrong.\n\nAssuming the defaults, the English version throws an exception, and the german version throws a 404 (Despite showing up in the default \"All pages\" list)\n## Details\n- Translate Version: 4\n- Install type: Extension Repository\n- Bolt Version: 3.1.4\n- PHP version: both 5.6 and 7\n- Used webserver: Apache 2.4.23-5\n## Reproduction\n- Plain bolt install:\n  `composer create-project bolt/composer-install <root> --prefer-dist`\n- Go to website, make user, login.\n- Go to extensions and add translate.\n- Edit page in `contenttypes.yml` to include `dedata`, `endata`, `locale` etc fields and add `is_translateable: true` to title field as per readme\n- Create a published page\n  - title: test\n  - status: published\n\nDespite showing up in the german \"All pages\" list, the german version 404s\n\nViewing the page in English throws:\n\n```\nSymfony\\Component\\Routing\\Exception\\InvalidParameterException thrown with message \"Parameter \"slug\" for route \"contentlink\" must match \"[^/]++\" (\"\" given) to generate a corresponding URL.\"\n\nStacktrace:\n#17 Symfony\\Component\\Routing\\Exception\\InvalidParameterException in <root>/vendor/symfony/routing/Generator/UrlGenerator.php:177\n#16 Symfony\\Component\\Routing\\Generator\\UrlGenerator:doGenerate in <root>/vendor/symfony/routing/Generator/UrlGenerator.php:136\n#15 Symfony\\Component\\Routing\\Generator\\UrlGenerator:generate in <root>/vendor/bolt/bolt/src/Routing/UrlGeneratorFragmentWrapper.php:42\n#14 Bolt\\Routing\\UrlGeneratorFragmentWrapper:generate in <root>/extensions/vendor/animal/translate/src/Routing/LocalizedUrlGenerator.php:42\n#13 Bolt\\Extension\\Animal\\Translate\\Routing\\LocalizedUrlGenerator:generate in <root>/extensions/vendor/animal/translate/src/TranslateExtension.php:254\n#12 Bolt\\Extension\\Animal\\Translate\\TranslateExtension:getCurrentLocaleStructure in <root>/extensions/vendor/animal/translate/src/TranslateExtension.php:208\n#11 Bolt\\Extension\\Animal\\Translate\\TranslateExtension:Bolt\\Extension\\Animal\\Translate\\{closure} in <root>/vendor/pimple/pimple/lib/Pimple.php:201\n#10 Pimple:{closure} in <root>/vendor/pimple/pimple/lib/Pimple.php:83\n#9 Pimple:offsetGet in <root>/vendor/bolt/bolt/src/Render.php:57\n#8 Bolt\\Render:render in <root>/vendor/bolt/bolt/src/Controller/Base.php:76\n#7 Bolt\\Controller\\Base:render in <root>/vendor/bolt/bolt/src/Controller/Frontend.php:182\n#6 Bolt\\Controller\\Frontend:record in <root>/extensions/vendor/animal/translate/src/Frontend/LocalizedFrontend.php:78\n#5 Bolt\\Extension\\Animal\\Translate\\Frontend\\LocalizedFrontend:record in <root>/vendor/symfony/http-kernel/HttpKernel.php:144\n#4 call_user_func_array in <root>/vendor/symfony/http-kernel/HttpKernel.php:144\n#3 Symfony\\Component\\HttpKernel\\HttpKernel:handleRaw in <root>/vendor/symfony/http-kernel/HttpKernel.php:64\n#2 Symfony\\Component\\HttpKernel\\HttpKernel:handle in <root>/vendor/silex/silex/src/Silex/Application.php:586\n#1 Silex\\Application:handle in <root>/vendor/silex/silex/src/Silex/Application.php:563\n#0 Silex\\Application:run in <root>/public/index.php:14\n```\n\nCSV export of database row:\n\n```\nid,slug,datecreated,datechanged,datepublish,datedepublish,username,ownerid,status,templatefields,title,image,teaser,body,template,locale,dedata,deslug,endata,enslug\n1,test,2016-10-09 20:03:29,2016-10-09 20:03:29,2016-10-09 20:03:04,,\"\",1,published,[],test,[],\"\",\"\",\"\",\"\",\"\",\"\",[],test\n```\n\nSwitching to the german version and saving there too fixes the problem\n"},"comment":{"url":"https://api.github.com/repos/AnimalDesign/bolt-translate/issues/comments/269621171","html_url":"https://github.com/AnimalDesign/bolt-translate/issues/82#issuecomment-269621171","issue_url":"https://api.github.com/repos/AnimalDesign/bolt-translate/issues/82","id":269621171,"user":{"login":"madc","id":343392,"avatar_url":"https://avatars.githubusercontent.com/u/343392?v=3","gravatar_id":"","url":"https://api.github.com/users/madc","html_url":"https://github.com/madc","followers_url":"https://api.github.com/users/madc/followers","following_url":"https://api.github.com/users/madc/following{/other_user}","gists_url":"https://api.github.com/users/madc/gists{/gist_id}","starred_url":"https://api.github.com/users/madc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madc/subscriptions","organizations_url":"https://api.github.com/users/madc/orgs","repos_url":"https://api.github.com/users/madc/repos","events_url":"https://api.github.com/users/madc/events{/privacy}","received_events_url":"https://api.github.com/users/madc/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T12:05:29Z","updated_at":"2016-12-29T12:05:29Z","body":"I think, this is the same issue as seen in #92."}}
{"actor":{"display_login":"madc"}}