-2
Hello! I’ll be brief. I’m having problems on the server 000webhost.com. Upload my website test to check how the login on facebook would look on the air. That is the mistake:
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 right. Can anyone help me? Thanks!
And in the folder
/storage/ssd2/781/3154781/public_html/users/loginFace.php
there is the file??– Don't Panic
yes, if it is from the above code where the error is. loginFace.php
– Rodrigo Souza Jesus
Isn’t that what the error message is saying, you checked if there is no case difference in the letters? Ex: longinface.php or Users
– Leandro Angelo