facebook access token error - php

Please help me to solve the following error.
Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/australi/public_html/fb/index.php on line 27
Warning: file_get_contents(https://graph.facebook.com/me?access_token=AAABempp6Ls0BANc98WmqZAreBbUzPnT1xyer9wtPmbvlwsnZCc4AKwuvCAVosLxw4yItvOkDoIK5hyCvBPZAk90nLx4PZACorrZCZAAi9pGgZDZD) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/australi/public_html/fb/index.php on line 27
Invalid Access Token

From what I can tell you need to allow the wrapper in your php.ini config file.

Related

How to include php page from different website to current website?

I have a created a domain but all the functions and classes of that domain is to be stored on another domain. but i am unable to get the page using include or require method. I am getting the following error:
Warning: include_once() [function.include-once]: Failed to enable crypto in /domain.com/includes/functions.php on line 3 Warning: include_once(https:/other_domain.com/access.php) [function.include-once]: failed to open stream: operation failed in /domain.com/includes/functions.php on line 3 Warning: include_once() [function.include]: Failed opening 'otherdomain.com/access.php' for inclusion (include_path='.:/opt/php52/lib/php') in /domain.com/includes/functions.php on line 3
The crypto error leads me to think this may be an issue with your SSL:
OPENSSL file_get_contents(): Failed to enable crypto

Magento URl error with PHP

I installed fresh magento 1.9.2.2. While installing and after it instaled, whenever i try my domain url the same error have been coming like shown below.
Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/website/public_html/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/website/php') in /home/website/public_html/app/Mage.php on line 50
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/website/public_html/app/Mage.php on line 51
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/website/php') in /home/website/public_html/app/Mage.php on line 51
Fatal error: Class 'Varien_Autoload' not found in /home/website/public_html/app/Mage.php on line 54
So I used
http://xxx.xxx.xxx.xxx [my ip address]/~website/
then in installtion I changed my path to my domain name. Its not working.
Anyone know any solution. Please help me.
I think that your problem caused by the .htaccess file. Try to rename it to test this idea or check rewrite/redirect rules.

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)?

PHP:No such file or directory

$response = file_get_contents($requestUri,0, $context);
gives the following errors
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\wamp\www\bing_basic.php on line 58
Warning: file_get_contents(https://api.datamarket.azure.com/Bing/Search/Web?$format=json&Query=%27dfg%27): failed to open stream: No such file or directory in C:\wamp\www\bing_basic.php on line 58
Any advice on how to go about removing them?? I am using a Bing API key to get results on a HTML page using WAMP.
Enable extension=php_openssl.dll within your php.ini file, then restart your server.

Troubleshooting "failed to open stream: No such file or directory" when require()ing twilio-lib.php

I have downloaded the Twilio PHP library but I am getting an error when I try to include the library in my code.
Below is the error I get:
Warning: require(twilio-lib.php) [function.require]: failed to open stream: No such file or directory in /websites-dev/dev.icalapp.rogersdigitalmedia.com/testing.php on line 11
Fatal error: require() [function.require]: Failed opening required 'twilio-lib.php' (include_path='.:/usr/share/pear:/usr/share/php') in /websites-dev/dev.icalapp.rogersdigitalmedia.com/testing.php on line 11
Someone fudged up somewhere - there is no such twilio-lib.php file in Twilio's PHP library.
Try removing the line in your downloaded PHP that looks exactly or similar to the following:
require "twilio-lib.php";

Categories