{"id":6327,"date":"2014-04-15T19:46:51","date_gmt":"2014-04-15T19:46:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/15\/my-composer-wont-update-completely-with-laravel-4-it-gets-stuck-with-artisan-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:45:33","modified_gmt":"2022-08-30T15:45:33","slug":"my-composer-wont-update-completely-with-laravel-4-it-gets-stuck-with-artisan-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/15\/my-composer-wont-update-completely-with-laravel-4-it-gets-stuck-with-artisan-collection-of-common-programming-errors\/","title":{"rendered":"My composer won&#39;t update completely with Laravel 4 it gets stuck with artisan-Collection of common programming errors"},"content":{"rendered":"<p>Here is the error I am getting:<\/p>\n<pre><code>Script php artisan optimize handling the post-update-cmd event returned with an error\n\n[RuntimeException]  \nError Output:\n\nupdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]\n<\/code><\/pre>\n<p>This shows after:<\/p>\n<pre><code>Writing lock file\nGenerating autoload files\n<\/code><\/pre>\n<p>I tried to delete all my folders in my vendor folder. But that did not change anything.<\/p>\n<p>I am using MAMP server on my Mac OS X.<\/p>\n<p>PHP Version 5.4.10<\/p>\n<p>mcrypt 2.5.8<\/p>\n<p>I just tried &#8220;sudo composer update &#8211;verbose&#8221; and I got this error:<\/p>\n<pre><code>sudo composer update --verbose\nPassword:\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nGenerating autoload files\nScript php artisan optimize handling the post-update-cmd event returned with an error\n\n  [RuntimeException]  \n  Error Output:\n    Exception trace:\n     () at phar:\/\/\/usr\/bin\/composer\/src\/Composer\/EventDispatcher\/EventDispatcher.php:148\n     Composer\\EventDispatcher\\EventDispatcher-&gt;doDispatch() at phar:\/\/\/usr\/bin\/composer\/src\/Composer\/EventDispatcher\/EventDispatcher.php:107\n Composer\\EventDispatcher\\EventDispatcher-&gt;dispatchCommandEvent() at phar:\/\/\/usr\/bin\/composer\/src\/Composer\/Installer.php:289\n Composer\\Installer-&gt;run() at phar:\/\/\/usr\/bin\/composer\/src\/Composer\/Command\/UpdateCommand.php:118\n Composer\\Command\\UpdateCommand-&gt;execute() at phar:\/\/\/usr\/bin\/composer\/vendor\/symfony\/console\/Symfony\/Component\/Console\/Command\/Command.php:244\n Symfony\\Component\\Console\\Command\\Command-&gt;run() at phar:\/\/\/usr\/bin\/composer\/vendor\/symfony\/console\/Symfony\/Component\/Console\/Application.php:897\n Symfony\\Component\\Console\\Application-&gt;doRunCommand() at phar:\/\/\/usr\/bin\/composer\/vendor\/symfony\/console\/Symfony\/Component\/Console\/Application.php:191\n Symfony\\Component\\Console\\Application-&gt;doRun() at phar:\/\/\/usr\/bin\/composer\/src\/Composer\/Console\/Application.php:117\n Composer\\Console\\Application-&gt;doRun() at phar:\/\/\/usr\/bin\/composer\/vendor\/symfony\/console\/Symfony\/Component\/Console\/Application.php:121\n Symfony\\Component\\Console\\Application-&gt;run() at phar:\/\/\/usr\/bin\/composer\/src\/Composer\/Console\/Application.php:83\n Composer\\Console\\Application-&gt;run() at phar:\/\/\/usr\/bin\/composer\/bin\/composer:43\n require() at \/usr\/bin\/composer:15\n<\/code><\/pre>\n<p>Here is the error I found in my PHP error logs:<\/p>\n<pre><code>[04-Nov-2013 20:45:44 Europe\/Berlin] PHP Fatal error:  Class 'Patchwork\\Utf8\\Bootup' not found in \/Applications\/MAMP\/htdocs\/-----\/bootstrap\/autoload.php on line 46\n<\/code><\/pre>\n<p>I just tried to test my composer:<\/p>\n<pre><code>sudo composer diagnose\nPassword:\nChecking platform settings: OK\nChecking http connectivity: OK\nChecking composer.json: FAIL\nNo license specified, it is recommended to do so. For closed-source software you may use \"proprietary\" as license.\nName \"andrew13\/Laravel-4-Bootstrap-Starter-Site\" does not match the best practice (e.g. lower-cased\/with-dashes). We suggest using \"andrew13\/laravel-4-bootstrap-starter-site\" instead. As such you will not be able to submit it to Packagist.\nChecking disk free space: OK\nChecking composer version: OK\n<\/code><\/pre>\n<p>Just applied the recommendation in the error massage from the last command. Now everything is showing as OK.<\/p>\n<p>I just tried this:<\/p>\n<pre><code>curl -sS https:\/\/getcomposer.org\/installer | php -- --check\n#!\/usr\/bin\/env php\nAll settings correct for using Composer\n<\/code><\/pre>\n<p>I am now getting new errors in my PHP Error logs:<\/p>\n<pre><code>[05-Nov-2013 05:45:45 Europe\/Berlin] PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class config does not exist' in \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php:165\nStack trace:\n#0 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(165): ReflectionClass-&gt;__construct('config')\n#1 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(142): Illuminate\\Container\\Container-&gt;build('config', Array)\n#2 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(444): Illuminate\\Container\\Container-&gt;make('config', Array)\n#3 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(233): Illuminate\\Foundation\\Application-&gt;make('config')\n#4 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(3151): Illuminate\\Container\\Container-&gt;offsetGet('config')\n#5 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(103): Illuminate\\Exception\\ExceptionServiceProvider-&gt;Illuminate\\Exception\\{closure}(Object(Illuminate\\Foundation\\Application))\n#6 \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php(163): Illuminate\\Container\\Container-&gt;Illum in \/Applications\/MAMP\/htdocs\/---\/bootstrap\/compiled.php on line 165\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is the error I am getting: Script php artisan optimize handling the post-update-cmd event returned with an error [RuntimeException] Error Output: update [&#8211;prefer-source] [&#8211;prefer-dist] [&#8211;dry-run] [&#8211;dev] [&#8211;no-dev] [&#8211;lock] [&#8211;no-plugins] [&#8211;no-custom-installers] [&#8211;no-scripts] [&#8211;no-progress] [&#8211;with-dependencies] [-v|vv|vvv|&#8211;verbose] [-o|&#8211;optimize-autoloader] [packages1] &#8230; [packagesN] This shows after: Writing lock file Generating autoload files I tried to delete all my folders [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-6327","post","type-post","status-publish","format-standard","hentry","category-laravel","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6327"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6327\/revisions"}],"predecessor-version":[{"id":8834,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6327\/revisions\/8834"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}