composer-php

proc_open error when try to run artisan dump-autoload

喜夏-厌秋 提交于 2019-12-24 03:00:32
问题 When I try to run php artisan dump-autoload, I got this error: root@server:/var/mysite# php artisan dump-autoload Generating optimized class loader [Symfony\Component\Process\Exception\RuntimeException] The Process class relies on proc_open, which is not available on your PHP installation. dump-autoload root@server:/var/mysite# I'm on Ubuntu 12.10 x64 on DigitalOcean. any idea? 回答1: It seems that the proc_open is disabled in your php.ini. Usually for security reason. To be sure search the

Symfony composer update messes with SymfonyRequirements path

做~自己de王妃 提交于 2019-12-24 02:58:29
问题 I created a new Symfony project symfony new test . Then if I check Symfony Requirements php bin/symfony_requirements , it works as expected. bin/symfony_requirements require_once dirname(__FILE__).'/../var/SymfonyRequirements.php'; But when I made a composer update , in bin/symfony_requirements and in web/config.php , the path to SymfonyRequirements.php is changed to : bin/symfony_requirements and web/config/php require_once dirname(__FILE__).'/./SymfonyRequirements.php'; So obviously,

Git Invalid revision range Symfony2 composer external bundle

[亡魂溺海] 提交于 2019-12-24 02:58:14
问题 [RuntimeException] Failed to execute git log 18efcf67d236d5bbf46ac67820250dffd0474b6e..94e2146f525fa1367e15646fa273e5b34f921e68 --pretty=format:"%h - %an: %s" fatal: Invalid revision range 18efcf67d236d5bbf46ac67820250dffd0474b6e..94e2146f525fa1367e15646fa273e5b34f921e68 I had this error when I created a custom external Symfony2 bundle and accidentally tagged it with 0.1 and then changed it to 1.0.0. (I had also changed the parent project's composer.json from: "bundle/mycustombundle": "0.1."

Composer not working in docker container: “https://packagist.org/packages.json” does not contain valid JSON

徘徊边缘 提交于 2019-12-24 02:55:09
问题 I have a docker container that's running a Symfony application (which works fine). Composer install/require commands (e.g. composer require annotations ) inside the container often fail with the following error: [Seld\JsonLint\ParsingException] "https://packagist.org/packages.json" does not contain valid JSON Parse error on line 1: \\\\\\u��n[7 ��� ^ Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[' I haven't really been able to find a pattern on when the commands succeed

Composer autoloader working in local but not in server

谁说胖子不能爱 提交于 2019-12-24 02:48:05
问题 I'm having trouble finding the reason why composer autoloader is not woking in our server. Made sure composer is installed in the server. I am using it in a plugin in Wordpress. I'm trying to activate the plugin but it's returning an error. In my local the composer autoloader is working fine. All classes are being found. Here's the error I'm getting in the server: Plugin could not be activated because it triggered a fatal error. Fatal error: Class 'App\Settings\Menu' not found in /home

Composer permission denied (publickey)

a 夏天 提交于 2019-12-24 01:56:14
问题 I Have a private repo on BitBucket, Im trying to install on localhost using composer install, here is my composer.json file: { "repositories": [ { "type": "git", "url": "git@bitbucket.org:username/repo.git" } ] } When I run composer install from the command line I get: [RuntimeException] Failed to execute git clone --mirror "git@bitbucket.org:username/repo.git" "C:/Users/...../" Cloning into bare repository 'C:/Users/.....'... Permission denied (publickey). fatal: Could not read from remote

How to upgrade symfony2 version?

橙三吉。 提交于 2019-12-24 01:48:16
问题 Is there a easy way to upgrade your symfony2.1.6 to 2.1.7 via command line or so? I am using composer.json 回答1: Download composer.phar and then run in the symfony folder php composer.phar update If you get some errors try removing first the vendors and try again. rm - R vendor/* 来源: https://stackoverflow.com/questions/14924867/how-to-upgrade-symfony2-version

Failure to update Laravel 5.1 to 5.2 (these conflict with your requirements or minimum-stability)

落爺英雄遲暮 提交于 2019-12-24 01:25:50
问题 Couple weeks ago I asked this question about trying to upgrade from Laravel 5.1 to 5.2 - Updating Larael from 5.1.35 to 5.2.* - fails to upgrade symfony/css-selector Although I was given very nice and clear answer, that did not help. As instructed, I have updated "lucadegasperi/oauth2-server-laravel" to "~5.1" , but I still have the same error. My composer.json { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "type

Laravel - composer update: Connection refused

别等时光非礼了梦想. 提交于 2019-12-24 00:46:51
问题 When I do $ composer update on prod server, I get this message: [Composer\Downloader\TransportException] The "https://larapack.io/packages.json" file could not be downloaded: failed to open stream: Connection refused It used to work fine a month ago. Here is the list of my installed packages (if it helps): arrilot/laravel-widgets 3.9.0 A powerful alternative to view composers. Asynchronous widgets, reloadable widgets, console... balping/json-raw-encoder v1.0.0 Encode arrays to json with raw

Laravel - composer update: Connection refused

北城以北 提交于 2019-12-24 00:41:08
问题 When I do $ composer update on prod server, I get this message: [Composer\Downloader\TransportException] The "https://larapack.io/packages.json" file could not be downloaded: failed to open stream: Connection refused It used to work fine a month ago. Here is the list of my installed packages (if it helps): arrilot/laravel-widgets 3.9.0 A powerful alternative to view composers. Asynchronous widgets, reloadable widgets, console... balping/json-raw-encoder v1.0.0 Encode arrays to json with raw