Error in include when uploading site [closed]

-2

Hello! I'll be brief. I'm having problems on 000webhost.com server. Upload my test site to check how the facebook login would look on the air. The error is this:

  

Warning:   include (/storage/ssd2/781/3154781/public_html/lib/Facebook/autoload.php):   failed to open stream: No such file or directory in   /storage/ssd2/781/3154781/public_html/users/loginFace.php on line 6

     

Warning: include (): Failed opening   '/storage/ssd2/781/3154781/public_html/lib/Facebook/autoload.php' for   inclusion (include_path = '.: / usr / share / pear: / usr / share / php') in   /storage/ssd2/781/3154781/public_html/users/loginFace.php on line 6

     

Fatal error: Uncaught Error: Class 'Facebook \ Facebook' not found in   /storage/ssd2/781/3154781/public_html/users/loginFace.php:10 Stack   trace: # 0 /storage/ssd2/781/3154781/public_html/index.php(2):   include_once () # 1 {main} thrown in   /storage/ssd2/781/3154781/public_html/users/loginFace.php on line 10

Part of the code where the error occurs:

if(!isset($_SESSION)) { 
   session_start(); 
}

include($_SERVER['DOCUMENT_ROOT'].'/lib/Facebook/autoload.php');
/*require('../lib/Facebook/autoload.php');*/

unset($_SESSION['face_access_token']);
$fb  =  new  \Facebook\Facebook([ 
'app_id' => '1511055948960318' ,
 'app_secret' => '710b34a0395d103abdbfe8909878e82e' ,
  'default_graph_version ' => ' v2.9 ' , 
  // ' Default_access_token '=>' {access-token} ', // opcional
]);

The code on the Wamp server works perfectly. All folders and subfolders are correct. can anybody help me? Thanks!

    
asked by anonymous 09.10.2017 / 16:26

1 answer

1

If you are using the free account you give up, this Hosting is full of non-configurable rules, which they leave default for security.

Unexplainable errors end up working perfectly in another place and it does not work and you end up wasting hours trying to kill an error that does not exist, I use this hosting only for small test scripts

In this your error says that the path is wrong or the file not found check the Permissions may help

    
09.10.2017 / 18:56