{"action":"created","issue":{"url":"https://api.github.com/repos/flarum/core/issues/1587","repository_url":"https://api.github.com/repos/flarum/core","labels_url":"https://api.github.com/repos/flarum/core/issues/1587/labels{/name}","comments_url":"https://api.github.com/repos/flarum/core/issues/1587/comments","events_url":"https://api.github.com/repos/flarum/core/issues/1587/events","html_url":"https://github.com/flarum/core/issues/1587","id":365673171,"node_id":"MDU6SXNzdWUzNjU2NzMxNzE=","number":1587,"title":"Can't install Flarum, if Markdown or BBCode is enabled","user":{"login":"LukBukkit","id":8070210,"node_id":"MDQ6VXNlcjgwNzAyMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8070210?v=4","gravatar_id":"","url":"https://api.github.com/users/LukBukkit","html_url":"https://github.com/LukBukkit","followers_url":"https://api.github.com/users/LukBukkit/followers","following_url":"https://api.github.com/users/LukBukkit/following{/other_user}","gists_url":"https://api.github.com/users/LukBukkit/gists{/gist_id}","starred_url":"https://api.github.com/users/LukBukkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukBukkit/subscriptions","organizations_url":"https://api.github.com/users/LukBukkit/orgs","repos_url":"https://api.github.com/users/LukBukkit/repos","events_url":"https://api.github.com/users/LukBukkit/events{/privacy}","received_events_url":"https://api.github.com/users/LukBukkit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-01T22:48:44Z","updated_at":"2018-10-01T23:44:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Bug Report\r\n\r\n**Current Behavior**\r\nI want to install Flarum, but when it's time for the Markdown (or BBCode) extension to migrate it throws an error.\r\n\r\n**Steps to Reproduce**\r\n1. Clone the latest Flarum skleton\r\n\r\n2. Edit the following files\r\n\r\n`composer.json`\r\n```json\r\n{\r\n    \"name\": \"flarum/flarum\",\r\n    \"description\": \"Delightfully simple forum software.\",\r\n    \"type\": \"project\",\r\n    \"keywords\": [\"forum\", \"discussion\"],\r\n    \"homepage\": \"https://flarum.org/\",\r\n    \"license\": \"MIT\",\r\n    \"authors\": [\r\n        {\r\n            \"name\": \"Toby Zerner\",\r\n            \"email\": \"toby.zerner@gmail.com\"\r\n        },\r\n        {\r\n            \"name\": \"Franz Liedke\",\r\n            \"email\": \"franz@develophp.org\"\r\n        }\r\n    ],\r\n    \"support\": {\r\n        \"issues\": \"https://github.com/flarum/core/issues\",\r\n        \"source\": \"https://github.com/flarum/flarum\",\r\n        \"docs\": \"https://flarum.org/docs/\"\r\n    },\r\n    \"require\": {\r\n        \"flarum/core\": \"dev-master\",\r\n        \"flarum/flarum-ext-english\": \"dev-master\",\r\n        \"flarum/flarum-ext-likes\": \"dev-master\",\r\n        \"flarum/flarum-ext-lock\": \"dev-master\",\r\n        \"flarum/flarum-ext-markdown\": \"dev-master\",\r\n        \"flarum/flarum-ext-mentions\": \"dev-master\",\r\n        \"flarum/flarum-ext-sticky\": \"dev-master\",\r\n        \"flarum/flarum-ext-subscriptions\": \"dev-master\",\r\n        \"flarum/flarum-ext-suspend\": \"dev-master\",\r\n        \"flarum/flarum-ext-tags\": \"dev-master\"\r\n    },\r\n    \"config\": {\r\n        \"preferred-install\": \"dist\",\r\n        \"sort-packages\": true\r\n    },\r\n    \"minimum-stability\": \"dev\",\r\n    \"prefer-stable\": true\r\n}\r\n```\r\n\r\n`install.json`\r\n```json\r\n{\r\n    \"debug\": \"true\",\r\n    \"baseUrl\": \"http://flarumsecond.localhost\",\r\n    \"databaseConfiguration\": {\r\n        \"driver\": \"mysql\",\r\n        \"host\": \"localhost\",\r\n        \"port\": 3306,\r\n        \"database\": \"flarum_second\",\r\n        \"username\": \"flarum\",\r\n        \"password\": \"password\",\r\n        \"prefix\": \"\"\r\n    },\r\n    \"adminUser\": {\r\n        \"username\": \"admin\",\r\n        \"password\": \"password\",\r\n        \"password_confirmation\": \"password\",\r\n        \"email\": \"admim@example.com\"\r\n    },\r\n    \"settings\": {\r\n        \r\n    }\r\n}\r\n```\r\n\r\n3. Run the install command\r\n`./flarum install -f install.json`\r\n\r\n4. After the Flarum migrations, there will be an error when migrating the Markdown extension\r\n```\r\nEnabling extension: flarum-markdown\r\n\r\nIn Container.php line 752:\r\n\r\n  Class cache.store does not exist\r\n```\r\nSee the [full log](https://gist.github.com/LukBukkit/4886345eca13249ce64e3aaac3b87d61).\r\n\r\nA similar problem also happens when installing on the web, but there isn't a nice error message shown, instead of the message mentioned above there's another error:\r\n```\r\nError booting Flarum: Too few arguments to function Illuminate\\Support\\Manager::createDriver(), 0 passed in D:\\lukas\\Coding\\PhpstormProjects\\flarum\\flarum\\vendor\\illuminate\\support\\Manager.php on line 88 and exactly 1 expected\r\n```\r\nRead more about this on [#1169](https://github.com/flarum/core/issues/1169#issuecomment-425908605).\r\n\r\n**Expected Behavior**\r\nIt should install without any error.\r\n\r\n**Environment**\r\n- Flarum version: 655aa9cea91dab571b67d917f37cc95ce3615285\r\n- Webserver: apache and cli\r\n- Hosting environment: Windows 10\r\n- PHP version: 7.1.11\r\n- Browser: Firefox Dev. Edition 63.0b10 (64-Bit)\r\n\r\n```\r\n$ ./flarum info\r\nFlarum core 0.1.0-beta.7 (737d33826e9d4caf1d07fa8ee5509d1ff06066d6)\r\nPHP version: 7.1.11\r\nLoaded extensions: Core, bcmath, calendar, ctype, date, filter, hash, iconv, json, mcrypt, SPL, pcre, readline, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, xml, wddx, xmlreader, xmlwriter, openssl, curl, fileinfo, gd, gettext, mbstring, exif, mysqli, pdo_mysql, pdo_sqlite, soap, sockets, sqlite3, tidy, Phar, ftp\r\n+----------------------+------------+--------+\r\n| Flarum Extensions    |            |        |\r\n+----------------------+------------+--------+\r\n| ID                   | Version    | Commit |\r\n+----------------------+------------+--------+\r\n| flarum-english       | dev-master |        |\r\n| flarum-likes         | dev-master |        |\r\n| flarum-lock          | dev-master |        |\r\n| flarum-mentions      | dev-master |        |\r\n| flarum-sticky        | dev-master |        |\r\n| flarum-subscriptions | dev-master |        |\r\n| flarum-suspend       | dev-master |        |\r\n| flarum-tags          | dev-master |        |\r\n+----------------------+------------+--------+\r\nBase URL: http://flarumsecond.localhost\r\nInstallation path: P:\\Programme\\XAMPP\\htdocs\\flarum-test2\r\nDebug mode: ON\r\nDon't forget to turn off debug mode! It should never be turned on in a production system.\r\n\r\n```\r\n\r\n**Possible Solution**\r\nI'll look into this tomorrow.\r\n\r\n**Additional Context**\r\nThe installation works fine with the latest beta build (0.1-beta7) and when using the latest repository (development) version without the `Markdown` and `BBCode` extensions. See this [installation log](https://gist.github.com/LukBukkit/1ba3cab0ac819c83d12b4d685dd47a9e), where I excluded those extensions from the `composer.json`.\r\n"},"comment":{"url":"https://api.github.com/repos/flarum/core/issues/comments/426099815","html_url":"https://github.com/flarum/core/issues/1587#issuecomment-426099815","issue_url":"https://api.github.com/repos/flarum/core/issues/1587","id":426099815,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjA5OTgxNQ==","user":{"login":"tobscure","id":128862,"node_id":"MDQ6VXNlcjEyODg2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/128862?v=4","gravatar_id":"","url":"https://api.github.com/users/tobscure","html_url":"https://github.com/tobscure","followers_url":"https://api.github.com/users/tobscure/followers","following_url":"https://api.github.com/users/tobscure/following{/other_user}","gists_url":"https://api.github.com/users/tobscure/gists{/gist_id}","starred_url":"https://api.github.com/users/tobscure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobscure/subscriptions","organizations_url":"https://api.github.com/users/tobscure/orgs","repos_url":"https://api.github.com/users/tobscure/repos","events_url":"https://api.github.com/users/tobscure/events{/privacy}","received_events_url":"https://api.github.com/users/tobscure/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T23:44:34Z","updated_at":"2018-10-01T23:44:34Z","author_association":"MEMBER","body":"@franzliedke seems like this could be related to the Sites rewrite?"}}
{"actor":{"display_login":"tobscure"}}