{"id":6412,"date":"2014-04-17T02:01:45","date_gmt":"2014-04-17T02:01:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/17\/phplaravellaravel-4composer-phplaravel-artisanrelated-issues-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:47:13","modified_gmt":"2022-08-30T15:47:13","slug":"phplaravellaravel-4composer-phplaravel-artisanrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/17\/phplaravellaravel-4composer-phplaravel-artisanrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"php,laravel,laravel-4,composer-php,laravel-artisanRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/7xvUe.jpg?s=32&amp;g=1\" \/><br \/>\nIain<br \/>\napache-2.2 php centos suphp<br \/>\nWe have a server that&#8217;s handling uploads. The memory limit is set at a ridiculously high level in php.ini (800 M).. however we have gd, which is managing the image resizing, but it is dying at about 60M of memory usage (our error log is reporting a fatal error at this stage).From all our Apache config files (CPanel\/WHM managed), I can&#8217;t find a RLimitMem that&#8217;s set anywhere either.I&#8217;ve looked as well if there&#8217;s any limits set in our kernel, but can&#8217;t find anything there as well.Is there somethin<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/563c72fef22f25de58e45db2b8c3a678?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHaresh Vidja<br \/>\nubuntu php wordpress<br \/>\nI have moved my server data PHP + WordPress and database(mysql) from one server to another server&#8230; All things working fine&#8230; but some time i got page blank in click submit button.. This problem occures some time ..I didnt get any error or fatal error in errorLog file and not get access entry in accsessLog file also on time of blank page.. Black page issue occurs some time on same taskSo how can I fix this problem..<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/481707331ea4d07ae2490bb88ddfd7ca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nScott Pack<br \/>\napache-2.2 php centos<br \/>\nSo the same code works on my Ubuntu server but when I upload it to my dedicated hosting server running CentOS it seems to add an extra prefix of .:\/usr\/share\/pear:\/usr\/share\/php: I tried setting includepath to different things but it just doesn&#8217;t work. The file is in a directory called language in the same folder as the file that is including it and I&#8217;m using:include dirname(__FILE__).DIRECTORY_SEPARATOR.&#8221;language&#8221;.DIRECTORY_SEPARATOR.&#8221;storage.inc&#8221;; include dirname(__FILE__).&#8221;\/language\/language.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3867e5562a0c8382d6149f916b524d48?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmike<br \/>\nphp cpanel pdo<br \/>\nGetting this error: Fatal error: Class &#8216;PDO&#8217; not foundHave these lines in php.ini:extension=pdo.so extension=pdo_sqlite.so extension=sqlite.so extension=pdo_mysql.soThis shows up in php.info()&#8211; &#8211;enable-pdo=shared&#8217; &#8216;Have access to whm but there is no &#8220;software&#8221; tab from which to access easyapatche? Any suggestions??<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/efa357df02849a87e77de7377bfcd730?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMahbubur R Aaman<br \/>\nphp centos zend-framework<br \/>\nShows PHP Fatal Errormain(): Failed opening required &#8216;Zend\/Loader.php&#8217;I have installed ZF on \/usr\/share\/phpzf command is working. I can create project and do other works using zf command. But while including the library path then shows the error.Am i missing something?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dcfb3f966fc5d6ef1f37aa0e14e7ae1f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPassionate Developer<br \/>\napache-2.2 php<br \/>\nI am getting below errors despite setting memory_limit in php.ini to 64mb:Fatal error: Out of memory (allocated 6291456) (tried to allocate 91284 bytes) in \/home\/favstayc\/public_html\/coverbuddy2\/cake\/libs\/configure.php on line 1067What could I change to fix this issue?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/949e93aea69788cc3e8ce672a83da762?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBlaM<br \/>\nphp iis7 stdout stderr<br \/>\nOkay, this is slowly getting annoying. I&#8217;m used to work with Apache Webservers and never had any of these problems. IIS seems to try to be intelligent &#8211; or whatever.Here&#8217;s my situation: My customer wants a PHP website and it is supposed to run on an Windows IIS webserver.For my development environment I could use my Apache &#8211; but just to be sure I want to do it with IIS, too. So I set up a dev-server with Windows Vista, all the latest Updates and installed IIS. Everything fine!I quickly found ins<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/190363ec30ddc9f3a9dde0888bfe224e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWerkkreW<br \/>\napache-2.2 php varnish<br \/>\nWe recently migrated our site to a load balanced apache cluster behind varnish. Since that time a very small subset of users is reporting they cannot view any pages. I have narrowed the issue down quite a bit. This issue was not present before the move, the old infrastructure was a single large box.We are on Rackspace Cloud running 8 apache2 instances behind varnish 3.0 all load balanced using Rackspace Cloud load balancers (Zeus) and 2 mysql instances for a total of 10 servers, all linux.Use<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/LbXVy.jpg?s=32&amp;g=1\" \/><br \/>\nUvais Ibrahim<br \/>\nphp php-extensions pecl expect<br \/>\nI got some serious error while installing expect extension in PHP.I ran sudo pecl install channel:\/\/pecl.php.net\/expect-0.3.1I got error like this while running make,running: make \/bin\/bash \/tmp\/pear\/temp\/pear-build-rootvXp7LZ\/expect-0.3.1\/libtool &#8211;mode=compile cc -I. -I\/tmp\/pear\/temp\/expect -DPHP_ATOM_INC -I\/tmp\/pear\/temp\/pear-build-rootvXp7LZ\/expect-0.3.1\/include -I\/tmp\/pear\/temp\/pear-build-rootvXp7LZ\/expect-0.3.1\/main -I\/tmp\/pear\/temp\/expect -I\/usr\/include\/php5 -I\/usr\/include\/php5\/main -I\/u<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9fc5a15f52c68f1cbcf6c1d47fdca21c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJustin808<br \/>\nphp http httpd hostgator<br \/>\nOK, so I&#8217;m uploading a 350meg zip file. The file one uploaded is unzipped and the contents are processed. The processing consists of reading in a data file, then copying and thumbnailing images, the adding data to a database. This is all once process start to finish. I can see in the log that the datafile is processed. I can see on the filesystem the thumbnails get created. But then it looks like the whole this starts over from scratch with blank post data and it fails.When I look at the httpd l<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/24780fb6df85a943c7aea0402c843737?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMartijn Pieters<br \/>\nlaravel laravel-4 composer-php<br \/>\nI 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 &#8216;SessionHandlerInterface&#8217; not found in \/Users\/Leandro\/www\/bootstrap\/compiled.php on line 2644After this, I can&#8217;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 &#8211;no-scripts the command works f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4<br \/>\nI try Laravel 4 but get errorCatchable fatal error: Argument 1 passed to Illuminate\\Container\\Container::share() must be an instance of Closure, unknown given, called in \/host\/sites\/centos6\/laravel4\/bootstrap\/compiled.php on line 3131 and defined in \/host\/sites\/centos6\/laravel4\/bootstrap\/compiled.php on line 98please help me, thanks allps: sorry for my english<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6116ac3c4b5835c6745570ea73a85c1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCharles<br \/>\nphp laravel<br \/>\nhttp:\/\/localhost\/laravel\/app\/tests\/ExampleTest.phpif i run laravel it shows the following errorFatal error: Class &#8216;TestCase&#8217; not found in D:\\xampp\\htdocs\\laravel\\app\\tests\\ExampleTest.php on line 3 , any idea<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e1aa6fc39e4e2b9d58fd62b369e8d0e5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncitizen_of_noobville<br \/>\nphp laravel illuminate-container<br \/>\nI got a web app that works on my local computer, but not on my server. I get this error on server. I checked the code that the error mentions about, and there&#8217;s nothing wrong with it. Do you have any idea what causes this? Thank you very much in advance. Here&#8217;s my error message: Fatal error: Interface &#8216;Illuminate\\Exception\\ExceptionDisplayerInterface&#8217; not found in \/var\/www\/test-app.domain.com\/public_html\/vendor\/laravel\/framework\/src\/Illuminate\/Exception\/SymfonyDisplayer.php on line 6Here&#8217;s Symph<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6058c5546e4ac0bd181b82f0df2b4082?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJeemusu<br \/>\nphp forms laravel<br \/>\nWhen I&#8217;ve made multistep forms in the past I would generally place the form data into the session so that should the user refresh the page or use the browsers native back buttons the data persists.Transferring my past logic to Laravel I built the following form consisting of three stages [Input -&gt; Confirm -&gt; Success].Routes.phpRoute::group(array(&#8216;prefix&#8217; =&gt; &#8216;account&#8217;), function(){Route::get(&#8216;register&#8217;, array(&#8216;before&#8217; =&gt; &#8216;guest&#8217;,&#8217;as&#8217; =&gt; &#8216;account-create&#8217;,&#8217;uses&#8217; =&gt; &#8216;AccountCon<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4 composer-php<br \/>\nI have the latest Laravel 4 beta 5 build from Laravel&#8217;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(&#8220;Driver [{$driver}] not supported.&#8221;);Here is what I did in order to c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1ca002cde4542a629fdb5d00177b9401?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njdersen<br \/>\nphp validation model controller laravel<br \/>\nI&#8217;m trying to register a user in my application while keeping all business logic in the model and as little as possible in the controller. To accomplish this, I&#8217;m running user validation in the model&#8217;s boot() method when the Class::creating() event fires. If the validation fails, I simply return false, cancelling the event. You can see this here:public static function boot() {parent::boot();User::creating(function(){$validator = new Services\\Validators\\RUser;if (! $validator-&gt;passes()) return<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d69da0263a53dc51dcd53dae788ef1b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRyan<br \/>\nphp arrays sorting laravel laravel-4<br \/>\nI have a &#8220;Post&#8221; object, accessed via the IOC container. Various errors tell me this object&#8217;s type ends up as a &#8220;Collection&#8221;, which implements several interfaces, including IteratorAggregate and ArrayAccess.I want to display a user-defined group of posts according to a specific order, e.g.:$desired=array(&#8220;69&#8243;,&#8221;63&#8243;,&#8221;70&#8221;);\/\/these represent post id&#8217;sJust sorting an array in this manner seems complex, but I want to sort my collection. I have been researching various combinations of usort(), uksort(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dca0e4bfb2b82b33ad8416aedad875a2?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\njohnnyfittizio<br \/>\nphp html redirect laravel laravel-4<br \/>\nThis is the situation:In my Laravel 4 app, after validating, it redirect to the same page displaying a succesfull message. It works fine. The problem is that the page is quite heavy and so the redirecting process it takes up to 3 seconds. What i would like to do, is to display a message without redirecting. In order to save the time that takes to load the page again, and display the message instantly.This is the code:return Redirect::back()-&gt;with(&#8216;message&#8217;,'&lt;b&gt;Congratulations! You have<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4<br \/>\nI have problems understanding how Laravel handles exceptions. I registered Exception handlers in global.php like this: use MyNamespace\\Custom\\Exceptions\\NotAllowedException; App::error(function(NotAllowedException $exception, $code) {die(&#8220;MyNamespace\\Custom\\Exceptions\\NotAllowedException catched&#8221;); });App::error(function(\\Exception $exception) {echo &#8220;general exception thrown&lt;br\/&gt;&#8221;; });In a controller action I now throw a NotAllowedException. The strange part however is, that first Exce<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/24780fb6df85a943c7aea0402c843737?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMartijn Pieters<br \/>\nlaravel laravel-4 composer-php<br \/>\nI 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 &#8216;SessionHandlerInterface&#8217; not found in \/Users\/Leandro\/www\/bootstrap\/compiled.php on line 2644After this, I can&#8217;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 &#8211;no-scripts the command works f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4<br \/>\nI try Laravel 4 but get errorCatchable fatal error: Argument 1 passed to Illuminate\\Container\\Container::share() must be an instance of Closure, unknown given, called in \/host\/sites\/centos6\/laravel4\/bootstrap\/compiled.php on line 3131 and defined in \/host\/sites\/centos6\/laravel4\/bootstrap\/compiled.php on line 98please help me, thanks allps: sorry for my english<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4 composer-php<br \/>\nI have the latest Laravel 4 beta 5 build from Laravel&#8217;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(&#8220;Driver [{$driver}] not supported.&#8221;);Here is what I did in order to c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d69da0263a53dc51dcd53dae788ef1b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRyan<br \/>\nphp arrays sorting laravel laravel-4<br \/>\nI have a &#8220;Post&#8221; object, accessed via the IOC container. Various errors tell me this object&#8217;s type ends up as a &#8220;Collection&#8221;, which implements several interfaces, including IteratorAggregate and ArrayAccess.I want to display a user-defined group of posts according to a specific order, e.g.:$desired=array(&#8220;69&#8243;,&#8221;63&#8243;,&#8221;70&#8221;);\/\/these represent post id&#8217;sJust sorting an array in this manner seems complex, but I want to sort my collection. I have been researching various combinations of usort(), uksort(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dca0e4bfb2b82b33ad8416aedad875a2?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\njohnnyfittizio<br \/>\nphp html redirect laravel laravel-4<br \/>\nThis is the situation:In my Laravel 4 app, after validating, it redirect to the same page displaying a succesfull message. It works fine. The problem is that the page is quite heavy and so the redirecting process it takes up to 3 seconds. What i would like to do, is to display a message without redirecting. In order to save the time that takes to load the page again, and display the message instantly.This is the code:return Redirect::back()-&gt;with(&#8216;message&#8217;,'&lt;b&gt;Congratulations! You have<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4<br \/>\nI have problems understanding how Laravel handles exceptions. I registered Exception handlers in global.php like this: use MyNamespace\\Custom\\Exceptions\\NotAllowedException; App::error(function(NotAllowedException $exception, $code) {die(&#8220;MyNamespace\\Custom\\Exceptions\\NotAllowedException catched&#8221;); });App::error(function(\\Exception $exception) {echo &#8220;general exception thrown&lt;br\/&gt;&#8221;; });In a controller action I now throw a NotAllowedException. The strange part however is, that first Exce<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nphp laravel laravel-4 composer-php<br \/>\nI&#8217;m running into issues installing Laravel 4&#8230; 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/686d6ee7fb244de06831e4f5b6bb9fa2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarco Rivadeneyra<br \/>\nlaravel laravel-4 eloquent<br \/>\nI have a table Books: with an ID (int) and a ISBN (string) the ISBN is a unique key. I have another table where I store the isbn for the book. On the book model I have: $this-&gt;hasMany(&#8216;Other&#8217;, &#8216;isbn&#8217;, &#8216;isbn&#8217;); But that ignores the isbn. Do you know any way of doing this?Temporary fix:$this-&gt;primaryKey = &#8216;isbn&#8217;; return $this-&gt;hasMany(&#8216;Other&#8217;, &#8216;isbn&#8217;);<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nphp laravel laravel-4 crud<br \/>\nI&#8217;m just playing around with Laravel at the moment, trying to work out if it is a good choice of framework to use for a project.I&#8217;ve downloaded the generator bundle from here and created a resource, following the documentation.This gives me a form with author and body.The store method that gets generated looks like this:\/*** Store a newly created resource in storage.** @return Response*\/public function store(){$input = Input::all();$validation = Validator::make($input, Tweet::$rules);if ($valida<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0545a1c2ea3ba7e7ae93b3e87863ee78?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nskcin7<br \/>\nlaravel laravel-4<br \/>\nI&#8217;m getting an unexplained FatalErrorException when trying to implement a simple page layout using blade templating. I&#8217;m not sure if it&#8217;s something I&#8217;m doing wrong or Laravel is. I&#8217;m following the tutorial on L4&#8217;s documentation about Templating and my code seems to follow it. Here&#8217;s my code.app\/routes.php:&lt;?php Route::get(&#8216;\/&#8217;, &#8216;HomeController@showWelcome&#8217;);app\/views\/home\/welcome.blade.php:@extends(&#8216;layouts.default&#8217;) @section(&#8216;content&#8217;)&lt;h1&gt;Hello World!&lt;\/h1&gt; @stopapp\/views\/layouts\/d<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/24780fb6df85a943c7aea0402c843737?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMartijn Pieters<br \/>\nlaravel laravel-4 composer-php<br \/>\nI 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 &#8216;SessionHandlerInterface&#8217; not found in \/Users\/Leandro\/www\/bootstrap\/compiled.php on line 2644After this, I can&#8217;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 &#8211;no-scripts the command works f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nlaravel laravel-4 composer-php<br \/>\nI have the latest Laravel 4 beta 5 build from Laravel&#8217;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(&#8220;Driver [{$driver}] not supported.&#8221;);Here is what I did in order to c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8b2441c81d86272c38bf38e711d10878?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nedorian<br \/>\nphp phpunit phpstorm composer-php<br \/>\nI&#8217;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 &#8230;phpunit is (via commandline) asseccible from anywhere; I&#8217;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&#8217;ve worked through all related questions here, am on mac and phpunit is running smoothly cia cli.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\nphp laravel laravel-4 composer-php<br \/>\nI&#8217;m running into issues installing Laravel 4&#8230; 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9ba5862bd06ed58daef0b0592e2971b9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nIr1sh<br \/>\nphp amazon-web-services amazon-ec2 composer-php elastic-beanstalk<br \/>\nSo 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e44fdcfb1f25aea44e160db896104d22?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmikeTheLiar<br \/>\nphp try-catch composer-php<br \/>\nI am trying to install Composer (http:\/\/getcomposer.org\/download\/) on a GoDaddy-hosted Linux server but it&#8217;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 &#8216;{&#8216; 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 &#8216;&lt;?php echo &#8220;Hello World &#8220;; try {echo &#8220;Goodbye&#8221;;} catch (Except<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/680afad5e2027e554f8c31ff7a79f1cb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBrodie<br \/>\nphp namespaces include composer-php autoloader<br \/>\nI know you can use Composer&#8217;s files scheme to include functions or definitions automatically in every file.I&#8217;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:{&#8220;require&#8221;: {&#8220;slim\/slim&#8221;: &#8220;2.*&#8221;}&#8221;autoload&#8221;: {&#8220;files&#8221;: [&#8220;init.php&#8221;]} }\/init.php:use Slim\\Slim as Slim; use Slim\\Route as Route; define(&#8220;RYAN&#8221;,&#8221;BRODIE&#8221;);\/example.php:require &#8216;\/vendor\/autoload.php&#8217;; echo RYAN; \/\/ ? outputs &#8220;BROD<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f4812751a7b9c49805f63205d1696103?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nign<br \/>\nphp composer-php<br \/>\nI&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ce2a78842d9de0c9ab48e4ed3c473b3e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAntonio Carlos Ribeiro<br \/>\ngit laravel laravel-4 composer-php<br \/>\nI&#8217;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 &#8211;porcelain &#8211;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/167604893c61ff7268d1e73435b2e408?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRayJ_inSJ<br \/>\ngit svn version-control composer-php<br \/>\nHow can I tell which packages require which version control? For example, I have the following Composer.json{&#8220;name&#8221;: &#8220;sample\/app&#8221;,&#8221;description&#8221;: &#8220;sample app&#8221;,&#8221;require&#8221;: {&#8220;monolog\/monolog&#8221;: &#8220;1.0.*&#8221;,&#8221;smarty\/smarty&#8221;: &#8220;dev-trunk&#8221;,&#8221;zend\/gdata&#8221;: &#8220;dev-master&#8221;} }The smarty lib gave me a runtime exception because I didn&#8217;t have svn installed. Compared this to zend\/gdata which gives a runtime exception if git is not installed.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d0942191fb6abb8c3857049126aa6c03?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nSLim<br \/>\nphp laravel laravel-4 laravel-artisan<br \/>\nWould like to know how can i execute the PHP Artisan script inside my controller of Laravel? Tried the following code but it doesn&#8217;t work.php \/Users\/sl\/Dropbox\/Development\/ABC\/artisan currency:update;This is the error returned: syntax error, unexpected &#8216;currency&#8217; (T_STRING)Thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/911aa8c8d83d7f53d1650fa7c585dd92?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\na7omiton<br \/>\nphp cli laravel-artisan<br \/>\nI&#8217;ve looked around SO and couldn&#8217;t figure out what could be wrong with me running the php artisan serve command and getting the cli stopped working error.I&#8217;m running WAMP and executing the command within my laravel projects folder (wamp\/www\/project) and get the error.When I hit debug after Windows fails to find a solution, it shows a message saying &#8220;An unhandled win32 exception occured in php.exe [7236]&#8221;Anybody know how to fix this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6ab2fc0ca68903f2696a4c96f1c94dd0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJean-Nicolas Boulay Desjardins<br \/>\nphp laravel laravel-4 composer-php laravel-artisan<br \/>\nHere 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 filesI tried to delete all my folders in my v<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Iain apache-2.2 php centos suphp We have a server that&#8217;s handling uploads. The memory limit is set at a ridiculously high level in php.ini (800 M).. however we have gd, which is managing the image resizing, but it is dying at about 60M of memory usage (our error log is reporting a fatal error at [&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,8],"tags":[],"class_list":["post-6412","post","type-post","status-publish","format-standard","hentry","category-laravel","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6412","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=6412"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6412\/revisions"}],"predecessor-version":[{"id":8827,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6412\/revisions\/8827"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}