{"action":"created","issue":{"url":"https://api.github.com/repos/craftcms/cms/issues/3364","repository_url":"https://api.github.com/repos/craftcms/cms","labels_url":"https://api.github.com/repos/craftcms/cms/issues/3364/labels{/name}","comments_url":"https://api.github.com/repos/craftcms/cms/issues/3364/comments","events_url":"https://api.github.com/repos/craftcms/cms/issues/3364/events","html_url":"https://github.com/craftcms/cms/issues/3364","id":368616724,"node_id":"MDU6SXNzdWUzNjg2MTY3MjQ=","number":3364,"title":"Error creating product entry with variable used in Asset path","user":{"login":"fantasticmachine","id":827065,"node_id":"MDQ6VXNlcjgyNzA2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/827065?v=4","gravatar_id":"","url":"https://api.github.com/users/fantasticmachine","html_url":"https://github.com/fantasticmachine","followers_url":"https://api.github.com/users/fantasticmachine/followers","following_url":"https://api.github.com/users/fantasticmachine/following{/other_user}","gists_url":"https://api.github.com/users/fantasticmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasticmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasticmachine/subscriptions","organizations_url":"https://api.github.com/users/fantasticmachine/orgs","repos_url":"https://api.github.com/users/fantasticmachine/repos","events_url":"https://api.github.com/users/fantasticmachine/events{/privacy}","received_events_url":"https://api.github.com/users/fantasticmachine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-10T11:18:31Z","updated_at":"2018-10-11T13:07:24Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nAn error along the lines of \r\n\r\n> Failed to load Twig template \"_includes/field\", index \"99371000\": cache is corrupted.\r\n\r\nIs shown when creating a new Commerce product if the product type has an Assets field which uses a variable in its path setting.\r\n\r\nI have tried clearing the cache to no avail\r\n\r\n### Steps to reproduce\r\n\r\n1. Create an assets field type pointing at a valid asset source and set the path to contain a variable such as `{slug}`\r\n2. Add the field to a product type\r\n3. Create a new product entry for that type\r\n\r\n### Additional info\r\n\r\n- Craft version: 3.0.26.1\r\n- PHP version: 7.1.12\r\n- Database driver & version: MySQL5.6.38\r\n- Plugins & versions: Commerce 2.0.0.beta.11\r\n\r\n### Stack Trace\r\n```\r\nTwig_Error_Runtime: Failed to load Twig template \"_includes/field\", index \"99371000\": cache is corrupted. in /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/templates/_includes/field.html:28\r\nStack trace:\r\n#0 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Environment.php(40): Twig_Environment->loadTemplate('_includes/field', '99371000')\r\n#1 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(330): craft\\web\\twig\\Environment->loadTemplate('_includes/field', '99371000')\r\n#2 /Users/pete/Projects/OurName/ClientName/dev/build/storage/runtime/compiled_templates/07/07e1c86c54ad2da9cf8c867bb194e1a36a092ecbdb53ca5c30631c27ab8d6d6d.php(96): Twig_Template->loadTemplate('_includes/field', '_includes/field', 28, '99371000')\r\n#3 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_a4afff2ba76d8eaddfb93c603b393101ea4ad355865589a53331b8d1c3f305b7->doDisplay(Array, Array)\r\n#4 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(49): Twig_Template->displayWithErrorHandling(Array, Array)\r\n#5 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(367): craft\\web\\twig\\Template->displayWithErrorHandling(Array, Array)\r\n#6 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(31): Twig_Template->display(Array, Array)\r\n#7 /Users/pete/Projects/OurName/ClientName/dev/build/storage/runtime/compiled_templates/b3/b3ce7b00bf6b1a7af298fa4f9e0e86a0833b9a0101bd77477200e7e66d5ac6dc.php(47): craft\\web\\twig\\Template->display(Array)\r\n#8 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_07e51379636458911a874d3d5fe4b2384a27e7feb5079fb73eeca93be7c3f68d->doDisplay(Array, Array)\r\n#9 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(49): Twig_Template->displayWithErrorHandling(Array, Array)\r\n#10 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(367): craft\\web\\twig\\Template->displayWithErrorHandling(Array, Array)\r\n#11 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(31): Twig_Template->display(Array, Array)\r\n#12 /Users/pete/Projects/OurName/ClientName/dev/build/storage/runtime/compiled_templates/5a/5a53d05b22f4366cfd6f2da922b790ad4a27adb7db5155fc5ffe6462a0d360af.php(83): craft\\web\\twig\\Template->display(Array)\r\n#13 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_1da6780498b8a7ae3501b4e664837b12e98965f63878a8e1d5e6160e336ebf5f->doDisplay(Array, Array)\r\n#14 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(49): Twig_Template->displayWithErrorHandling(Array, Array)\r\n#15 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(367): craft\\web\\twig\\Template->displayWithErrorHandling(Array, Array)\r\n#16 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(31): Twig_Template->display(Array, Array)\r\n#17 /Users/pete/Projects/OurName/ClientName/dev/build/storage/runtime/compiled_templates/5d/5d67f46f0277b2943d1ae3973de13a576f197fcdec06c4023e9a5d94e052005b.php(206): craft\\web\\twig\\Template->display(Array)\r\n#18 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_bc07c81b287dc708149fc6284f040c4c93df0221c68ee766ef3808c5542c1d0e->doDisplay(Array, Array)\r\n#19 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(49): Twig_Template->displayWithErrorHandling(Array, Array)\r\n#20 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(367): craft\\web\\twig\\Template->displayWithErrorHandling(Array, Array)\r\n#21 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/twig/Template.php(31): Twig_Template->display(Array, Array)\r\n#22 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Template.php(375): craft\\web\\twig\\Template->display(Array)\r\n#23 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array)\r\n#24 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/View.php(331): Twig_Environment->render('commerce/produc...', Array)\r\n#25 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/commerce/src/helpers/VariantMatrix.php(43): craft\\web\\View->renderTemplate('commerce/produc...', Array)\r\n#26 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/commerce/src/controllers/ProductsController.php(118): craft\\commerce\\helpers\\VariantMatrix::getVariantMatrixHtml(Object(craft\\commerce\\elements\\Product))\r\n#27 [internal function]: craft\\commerce\\controllers\\ProductsController->actionEditProduct('tiles', NULL, NULL, NULL)\r\n#28 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)\r\n#29 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/yiisoft/yii2/base/Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)\r\n#30 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/Controller.php(103): yii\\base\\Controller->runAction('edit-product', Array)\r\n#31 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/yiisoft/yii2/base/Module.php(528): craft\\web\\Controller->runAction('edit-product', Array)\r\n#32 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/Application.php(282): yii\\base\\Module->runAction('commerce/produc...', Array)\r\n#33 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/yiisoft/yii2/web/Application.php(103): craft\\web\\Application->runAction('commerce/produc...', Array)\r\n#34 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/craftcms/cms/src/web/Application.php(271): yii\\web\\Application->handleRequest(Object(craft\\web\\Request))\r\n#35 /Users/pete/Projects/OurName/ClientName/dev/build/vendor/yiisoft/yii2/base/Application.php(386): craft\\web\\Application->handleRequest(Object(craft\\web\\Request))\r\n#36 /Users/pete/Projects/OurName/ClientName/dev/build/public/index.php(21): yii\\base\\Application->run()\r\n#37 {main}\r\n```"},"comment":{"url":"https://api.github.com/repos/craftcms/cms/issues/comments/428948066","html_url":"https://github.com/craftcms/cms/issues/3364#issuecomment-428948066","issue_url":"https://api.github.com/repos/craftcms/cms/issues/3364","id":428948066,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODk0ODA2Ng==","user":{"login":"brandonkelly","id":47792,"node_id":"MDQ6VXNlcjQ3Nzky","avatar_url":"https://avatars1.githubusercontent.com/u/47792?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonkelly","html_url":"https://github.com/brandonkelly","followers_url":"https://api.github.com/users/brandonkelly/followers","following_url":"https://api.github.com/users/brandonkelly/following{/other_user}","gists_url":"https://api.github.com/users/brandonkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonkelly/subscriptions","organizations_url":"https://api.github.com/users/brandonkelly/orgs","repos_url":"https://api.github.com/users/brandonkelly/repos","events_url":"https://api.github.com/users/brandonkelly/events{/privacy}","received_events_url":"https://api.github.com/users/brandonkelly/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T13:07:24Z","updated_at":"2018-10-11T13:07:24Z","author_association":"MEMBER","body":"We were able to get a different error, which is likely related, actually, even if not exactly what you’re seeing."}}
{"actor":{"display_login":"brandonkelly"}}