Site isn't seeing the autoload - php

I'm getting this error:
Warning: require(/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php): failed to open stream: No such file or directory in /home/wiseman/public_html/facebook.php on line 3
Fatal error: require(): Failed opening required '/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wiseman/public_html/facebook.php on line 3
The sdk has been installed by the host server and I can see the autoload file in exactly the path it's looking for. Anyone know what the problem could be? I'm new to working with facebook and am really green so be gentle! :)

Related

Failed opening 'PHPUnit/Autoload.php'

I've been searching and searching for solutions but I still can't figure out why is this happening. I have another project with the same setup but it doesnt give this error. Runs fine in local but throws error like this in scrutinizer
Warning Error: include(PHPUnit/Autoload.php): failed to open stream:
No such file or directory in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
2018-01-19 07:45:23 Warning: include(PHPUnit/Autoload.php): failed to
open stream: No such file or directory in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
Warning Error: include(): Failed opening 'PHPUnit/Autoload.php' for
inclusion
(include_path='/home/scrutinizer/build:/home/scrutinizer/build/lib:.:/home/scrutinizer/.phpenv/versions/7.1.12/pear:/home/scrutinizer/.phpenv/versions/7.1.12/share/pyrus/.pear/php')
in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
2018-01-19 07:45:23 Warning: include(): Failed opening
'PHPUnit/Autoload.php' for inclusion
(include_path='/home/scrutinizer/build:/home/scrutinizer/build/lib:.:/home/scrutinizer/.phpenv/versions/7.1.12/pear:/home/scrutinizer/.phpenv/versions/7.1.12/share/pyrus/.pear/php')
in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
Error: Please install PHPUnit framework v3.7 (http://www.phpunit.de)
#0 /home/scrutinizer/build/lib/Cake/Console/ShellDispatcher.php(218):
As you already said that you didn't experienced any problem with previous setup.
I suggest you please check the absolute path of the script.
/home/scrutinizer/build/lib/Cake/TestSuite
I am talking about this path.
and tell if you have solved out the problem.I can't tell more than this as you have provided the error only.If I need to help you more then you should provide more details.
Good luck

Connecting MySQL to php files (pear error)

Warning: require_once(book/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\book\book.php on line 48
Fatal error: require_once(): Failed opening required 'book/autoload.php' (include_path='C:\xampp\php\PEAR;;/book;/book/classes;/book/pear/PEAR') in C:\xampp\htdocs\book\book.php on line 48
I added this to the file:
require_once('book/autoload.php');
include_path('C:\xampp\php\PEAR;;/book;/book/classes;/book/pear/PEAR');
This is very rudimentary, but it's still not working. Have mercy, this is my first php project.
You can try this
require_once('book/autoload.php');
and must check that your folder path is correct.

Can access joomla via ip but not through domain (Warning: require_once error)

All of a sudden one of my client's sites stopped working
Error:
Warning: require_once(/home/logosist/public_html/includes/defines.php): failed to open stream: No such file or directory in /home/logosist/public_html/index.php on line 18
Fatal error: require_once(): Failed opening required '/home/logosist/public_html/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/logosist/public_html/index.php on line 18
From the error I can see that the directory path is wrong:
Should be
/home/public_html/logosist/includes/defines.php
and not
/home/logosist/public_html/includes/defines.php
Any idea on how to solve this problem?
Check you directories and files access permissions. I don't think that it is path problem. I've had the same and setting correct permissions solved it.

My Laravel 4 app shows errors when uploaded to my website

I am new to Laravel 4. When I upload my app to my website it shows errors. How should I configure it to fix it?
Warning: require(__DIR__/../bootstrap/autoload.php) [function.require]: failed to open stream: No such file or directory in /home/a4651312/public_html/laravel/public/index.php on line 21
PHP Error Message Fatal error: require() [function.require]: Failed opening required '__DIR__/../bootstrap/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4651312/public_html/laravel/public/index.php on line 21.
I put my app (name laravel) in public_htmt and sent a link from default.html to public.

link path solution in localhost environment: http:// wrapper is disabled in the server configuration by allow_url_include=0

I have seen this question asked and answered many times, but I can't seem to get a solution for myself
Here is my basic folder structure:
http://localhost/cms/
To grab all my code I have a utilities file located here:
http://localhost/cms/includes/utilities.inc.php
and within that file I have requires()s to include classes, as such:
require('classes/Post.php');
require('classes/User.php');
require('classes/Comments.php');
require('classes/Category.php');
when I try and include my http://localhost/cms/includes/utilities.inc.php file into the following directory it doesn't work! http://localhost/cms/admin/
when I try I get this error:
Warning: require(classes/Post.php): failed to open stream: No such file or directory in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Fatal error: require(): Failed opening required 'classes/Post.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
When Using Absolute Paths In My Utility File:
require('http://localhost/cms/classes/Post.php');
require('http://localhost/cms/classes/User.php');
require('http://localhost/cms/classes/Comments.php');
require('http://localhost/cms/classes/Category.php');
I get the following error:
Warning: require(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Warning: require(http://localhost/cms/classes/Post.php): failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Fatal error: require(): Failed opening required 'http://localhost/cms/classes/Post.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
How can I get a system that will link properly (preferably WITHOUT anything PEAR related)?

Categories