amazon web services - Composer autoload.php AWS 500 error -


hey trying deploy website aws , getting error (500 (internal server error)) when reaches require line in php, supposed include composer's vendor file, autoload.php. weird thing is, works fine on local instance (and group member's local instances) . ideas? aws setting sort of permissions? tried including other php files outside of vendor folder , seem work fine.

i test echoing before , after each line figure out how far compiles. gets "above require"

thanks! update: after suggestion below, getting error read now, below.

warning: require(/var/app/current/vendor/composer/../facebook/graph-sdk/src/facebook/polyfills.php): failed open stream: no such file or directory in /var/app/current/vendor/composer/autoload_real.php on line 66 fatal error: require(): failed opening required

/var/app/current/vendor/composer/../facebook/graph-sdk/src/facebook/polyfills.php' (include_path='.:/usr/share/pear7:/usr/share/php7') in /var/app/current/vendor/composer/autoload_real.php on line 66

<?php     echo "above session";     session_start();     echo "above require ";     include '../vendor/autoload.php';     //testing passed ->> include 'db.inc.php';     //require_once __dir__ . '/vendor/autoload.php';     echo "under require\n";     $fb = new facebook\facebook([         'app_id' => '',         'app_secret' => '',         'default_graph_version' => 'v2.5',     ]);     echo "under facebook class dec\n"; 

i wasn't able figure out causing issue, sdk work did facebook recommended developers not do, install manually.

for problem in future, make sure update requires or includes(threw more errors ). remove old composer dependency using built in composer functions!


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -