problem about composer-php-Collection of common programming errors


  • Martijn Pieters
    laravel laravel-4 composer-php
    I made one change in my composer.json including Facebook SDK package (http://packagist.org/packages/facebook/php-sdk).So during the composer update I got this error$ php artisan optimize PHP Fatal error: Interface ‘SessionHandlerInterface’ not found in /Users/Leandro/www/bootstrap/compiled.php on line 2644After this, I can’t run artisan or composer commands. Always get the same error.I tried to remove Facebook SDK from composer json but not works.Some help? Using –no-scripts the command works f

  • Antonio Carlos Ribeiro
    laravel laravel-4 composer-php
    I have the latest Laravel 4 beta 5 build from Laravel’s github repo.I have built a simple web API and it is working fine. I wanted to duplicate the project to another folder and continue working on it from the copy. However, when I try that, I get the following error message:InvalidArgumentException Driver [native] not supported./Users/tolga/Sites/l4api-copy/bootstrap/compiled.phpLine 10908: throw new \InvalidArgumentException(“Driver [{$driver}] not supported.”);Here is what I did in order to c

  • edorian
    php phpunit phpstorm composer-php
    I’m now trying for hours to setup phpstorm for unit testing. Whatever I do, I get thisProcess finished with exit code 1 Cannot find PHPUnit in include path …phpunit is (via commandline) asseccible from anywhere; I’ve set the correct include path and have added phpunit to the external libraries. No chance.Is it possible at all or does it only work with installations via pear? I’ve worked through all related questions here, am on mac and phpunit is running smoothly cia cli.

  • Antonio Carlos Ribeiro
    php laravel laravel-4 composer-php
    I’m running into issues installing Laravel 4… I am following the instructions posted here:http://badubizzle.blogspot.com/2013/01/setting-up-laravel-4-on-webfaction.htmlMy host allows multiple versions of PHP to run at the same time, so running the command php will run php 5.2.17 on whatever you specify next. I know you need greater than php 5.3 to run Laravel 4, so I am using php 5.4 to do so. I can either specifically type php54 to run the command under php 5.4, or an alias can be made in t

  • Ir1sh
    php amazon-web-services amazon-ec2 composer-php elastic-beanstalk
    So my application installs and deploys fine as long as I put it on an instance bigger than micro.when I deploy on micro when composer tries to install I get a php error about not being able to allocate enough memory. so I did some googling and it seems that you can create a swap file/disk on boot/ creating of the instance here are two tutorials one twothese might be dated so first question is can this still be done?Second question is how do I create a .ebextensions file to make this happen on d

  • mikeTheLiar
    php try-catch composer-php
    I am trying to install Composer (http://getcomposer.org/download/) on a GoDaddy-hosted Linux server but it’s not working. No matter which method I try, I eventually run up against some version of the following error:Parse error: syntax error, unexpected ‘{‘ on line 290.Line 290 refers to line 290 in this file: https://getcomposer.org/installer which is the start of a try-catch block. And, indeed, even a simple script like:echo ‘<?php echo “Hello World “; try {echo “Goodbye”;} catch (Except

  • Brodie
    php namespaces include composer-php autoloader
    I know you can use Composer’s files scheme to include functions or definitions automatically in every file.I’d like to take this one step further and never have to manually write a use classname as statement again in individual files. This is my ideal set up:/composer.json:{“require”: {“slim/slim”: “2.*”}”autoload”: {“files”: [“init.php”]} }/init.php:use Slim\Slim as Slim; use Slim\Route as Route; define(“RYAN”,”BRODIE”);/example.php:require ‘/vendor/autoload.php’; echo RYAN; // ? outputs “BROD

  • ign
    php composer-php
    I’ve been trying to install Composer on my machine (OS X 10.6) with no success so far.As per Composer docs, i executed this in Terminal: curl -s http://getcomposer.org/installer | php#!/usr/bin/env phpAnd this is the output:The detect_unicode setting must be disabled. Add the following to theend of your php.ini:detect_unicode = OffOf course, this is in my php.ini: detect_unicode = Off, located at /etc/php.ini.defaultphp -info tells me that php.ini file is being loaded from /etc/ (output is: Conf

  • Antonio Carlos Ribeiro
    git laravel laravel-4 composer-php
    I’m working on a Laravel 4 project. When I try to update my packages with Composer, it gets to doctrine/collections but then throws this error:[Runtime Exception] Failed to execute git status –porcelain –untracked-files=noerror: bad index file sha1 signature fatal: index file corruptException trace: http://pastebin.com/Js3nKrhyI tried removing the index in doctrine/collections but then I it tells me the format is incorrect in refs/remotes/origin/master.Any idea how to solve this issue? Thank

  • RayJ_inSJ
    git svn version-control composer-php
    How can I tell which packages require which version control? For example, I have the following Composer.json{“name”: “sample/app”,”description”: “sample app”,”require”: {“monolog/monolog”: “1.0.*”,”smarty/smarty”: “dev-trunk”,”zend/gdata”: “dev-master”} }The smarty lib gave me a runtime exception because I didn’t have svn installed. Compared this to zend/gdata which gives a runtime exception if git is not installed.

  • KevinM1
    php symfony2 shared-hosting composer-php
    I seem to be having some problems with cache permissions on shared hosting. Specifically, when I try to install/update vendors via Composer, I get a runtime exception:$ php composer.phar update -v -oScript Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception[RuntimeException] An error occurred when executing the “‘cache:clear –no-warmup'” command.Exception trace: () at /home/thesewingdiva/private/vendor/sensio/distr

  • Offlein
    drupal composer-php krumo
    I have an independent, small PHP webapp I’m writing, and I’ve included the “oodle/krumo” package in the root “require” key of my composer.json file.I also want my application to work well in conjunction with Drupal. Unfortunately, when Drupal hooks into it, if the “Devel” module is loaded, the Krumo classes are loaded as well and my custom app crashes.I want to use Krumo by default, but have my app not load Krumo if it exists from Drupal (or elsewhere). Is there a way to make Composer only autol

  • mucie
    php performance memory-leaks zend-framework2 composer-php
    We have an old facebook app, running smoothly written in native php.This month we decided to rewrite it in zend-framework 2. Yesterday, after switching to new app it crashed our server with lots of out of memory errors. So we turned back to old app.I installed xdebug to profile the app. Using memory_get_peak_usage() function i noticed high memory usage.In the old app, a static page uses only 1 mb memory. But the new one using 7-8 mb approximately on the same page.Here’s the top two rows from web

  • Jean-Nicolas Boulay Desjardins
    php laravel laravel-4 composer-php laravel-artisan
    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 [–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]This shows after:Writing lock file Generating autoload filesI tried to delete all my folders in my v

  • Jen-Ya
    xampp zend-framework2 composer-php
    I’m stuck at the first step of the Zend Framework 2 Getting Started guide.My steps:I downloaded end extracted the newest version of composer to c:/xampp/composer/composer.phar I ran php composer.phar self-update just in case. I ran php composer.phar create-project –repository-url=”http://packages.zendframework.com” zendframework/skeleton-application ../htdocs/zf2-tutorial like it is stated in the guide.This is where I get this error message:Fatal error: Uncaught exception ‘ErrorException’ with

  • richelliot
    symfony2 symfony1 composer-php vendor
    I’m new to Symfony, and know very little. I have just been handed a project that works on my local machine but I have just moved it to a live server and some parts are now broken.I have done the following:php composer.phar update(Not sure what that does, but it outputs the following)Loading composer repositories with package information Updating dependencieswith this error:[RuntimeException] The “https://packa

  • user2026049
    git bash composer-php
    When I try to run composer install command on Git bash the following error message appears:Fatal error: Uncaught exception ‘ErrorException’ with message ‘proc_open(): CreateProcess failed, error code – 0’ in phar://C:/ProgramData/Composer/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:1013Stack trace:#0 [internal function]: Composer\Util\ErrorHandler::handle(2, ‘proc_open(): Cr…’, ‘phar://C:/Progr…’, 1013, Array)#1 phar://C:/ProgramData/Composer/bin/compos

  • Antonio Carlos Ribeiro
    php laravel laravel-4 composer-php
    I just can’t solve this one.I’m on Linode 1G RAM basic plan. Trying to install a package via Composer and it’s not letting me. My memory limit is set to “-1” on PHP.iniIs there anything else I can do to get this installed?Loading composer repositories with package information Updating dependencies (including require-dev)- Installing thujohn/rss (dev-master df80a7d)Downloading: 100% PHP Fatal error: Uncaught exception ‘ErrorException’ with message ‘proc_open(): fork failed – Cannot allo

  • user1838937
    doctrine2 zend-framework2 composer-php
    Hi i’m trying to install doctrine2 to zf2 via composer. I’m getting error: Fatal error: Uncaught exception ‘Zend\ModuleManager\Exception\RuntimeException’ with message ‘Module (DoctrineModule) could not be initialized.’ I followed this steps https://github.com/doctrine/DoctrineORMModulemy application.config looks like this:return array( ‘modules’ => array(‘Application’,’DoctrineModule’,’DoctrineORMModule’,’Album’,’User’ ), ‘module_listener_options’ => array(‘config_glob_paths’ => ar

  • Piotr Olaszewski
    php testing phpunit phpstorm composer-php
    I have little problem when I’m trying to run PHPUnit test in IDE PhpStorm.I use composer file which looks:{“require”: {“phpunit/phpunit”: “3.7.19”} }Now when I run test I recive exception: PHP Fatal error: Uncaught exception ‘PHPUnit_Framework_Exception’ with message ‘Class “PHPUnit_Extensions_RepeatedTest” does not extend PHPUnit_Framework_TestCase.’What is wrong? When I included pear installed version test working OK.//EDIT Sample test class:class ReaderTest extends PHPUnit_Framework_TestCase

  • Virgo
    zend-framework2 composer-php
    i am creating my first application in zf2. i followed Zend Offical website zf2 Skeleton Application.i have downloaded the skeleton app from github as in in the given link.when i extract it and put that in my folder and run it its showing this Fatal ErrorFatal error: Uncaught exception ‘RuntimeException’ with message ‘Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.’ in D:\projects\zf2\zf2_app\init_autoloader.php:50 Stack trace: #0 D:\projects\zf2\zf

  • Pazi
    symfony2 composer-php
    I want to install a 3rd party library and after searching I tryed to include this in app/autolad.php:loader->registerNamespace(‘libMyLib’, __DIR__.’/vendor/mylib/libmylib’);Which throws an error:Call to undefined method Composer\Autoload\ClassLoader::registerNamespace()Which searching looks like ClassLoader included in Symfony2 is not the same as component ClassLoader, and you must install this component in order to include third party libraries using this method.So, I try to follow the crypt

  • Labeeb
    php codeigniter codeigniter-2 composer-php codeigniter-form-helper
    In order to learn how composer worksI created composer.json to download codeigniter with all dependencies {“require”: {“rogeriopradoj/codeigniter”: “2.1.4”} }then created vendor directory using composerAfter loading all these I want to just use form helpers that comes with codeigniter and I want to all this using composer(to know how composer works).I created index.php having the following code and also have included require ‘vendor/autoload.php’;<?php // file name : index.php require ‘vendor

  • Fo.
    symfony2 composer-php
    Getting used to installing composer unaware packages for symfony2 using composer. The configuration for twitter/bootstrap was:”repositories”: [{“type”: “package”,”package”: {“name”: “twitter/bootstrap”,”version”: “2.3.0”,”source”: {“type”: “git”,”url”: “https://github.com/twitter/bootstrap”,”reference”: “v2.3.0”}}}],but with jasny/bootstrap this{“type”: “package”,”package”: {“name”: “jasny/bootstrap”,”version”: “2.3.0-j4″,”source”: {“type”: “git”,”url”: “https://github.com/jasny/bootstrap”,”refe

  • Daniel Saint James
    namespaces php-5.3 composer-php global-namespace
    So very strange issue. I only recently starting using auto loading in PHP 5.3+ and of course, this inevitably led to composer. I did a really simple install with composer with only one package, php Image Workshop. In addition to my own auto loader, I fire of the vendor/autoload.phpThen in my code:use PHPImageWorkshop\ImageWorkshop; $imagelayer = ImageWorkshop::initFromPath( $filename );The namespace is valid and I get into the class which immediately throws an error.PHP Fatal error: Call to und

  • Daniel Ingraham
    php wampserver zend-framework2 composer-php
    I have searched basically everywhere I could think of and can’t find anyone with the particular problem I’m running into. I’m still back in the bronze age on XP x64, running WAMP. I can get through the install process until the following point:php composer.phar installAt which point we get the following output:’mode’ is not recognized as an internal or external command, operable program or batch file.PHP Fatal error: Uncaught exception ‘ErrorException’ with message ‘Undefined offset: 4’ in ph

  • Martijn Pieters
    php composer-php autoloader
    I’m using Composer for module dependency management (loving using autoload.php instead of a ton of includes and requires!).I want to include a PHP file that is outside of the root Composer directory (for security) with credentials stored in defines().This isn’t working, composer.json:{“autoload”: {“classmap”: [“../credentials.php”]} }credentials.php:define(‘RYAN’,’BRODIE’);test.php:require_once __DIR__.’/../vendor/autoload.php’; echo RYAN;Results in Notice: Use of undefined constant RYAN. If Com

  • AdamWathan
    php laravel composer-php laravel-4
    Just playing with Laravel 4 for the first time after using version 3 for a few projects but can’t seem to get Artisan to work at all. I’ve done a bunch of searching and followed the troubleshooting steps I could find but no luck.I’ve got Mcrypt installed I had no bootstrap/compiled.php file to delete I have the latest version of the framework from Github I am on the latest version of ComposerWhen I try “composer update” I get this error:Script php artisan optimize handling the post-update-cmd ev

  • shiplu.mokadd.im
    php symfony2 composer-php
    Once I download composer to my remote web host. I try to run the command “php composer.phar install”Once I run this command like it says in the documentation, I get errors like no tomorrow.nwrepai1@******** [~/public_html]# php composer.phar install Content-type: text/html<br /> <b>Fatal error</b>: Uncaught exception ‘ErrorException’ with message ‘Undefined index: argv’ in phar:///home3/nwrepai1/public_html/composer.phar/vendor/symfony/console/Symfony/Component/Console/Input/A

  • GSto
    php composer-php
    I have a server that was recently upgraded to PHP 5.3. Now when I try to install composer, I get the following error messages:PHP Warning: PHP Startup: ffmpeg: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0How do I fix these errors and get the installer to run properly?

Web site is in building