how to run facebook login in localhost using codeigniter - facebook

I used the facebook sdk for codeigniter to put its login on my website. I am trying to run the code but I am getting error. I am running it on my localhost providing the localhost url on facebook's site_url and i have tried to follow the instructions it has provided. THe error I am getting is
Fatal error: Class 'Facebook\Facebook' not found in C:\xampp\htdocs\huebind\application\libraries\facebook.php on line 67
The problem must be with not installing with composer. Unfortunately I dont know how to do it either. I simply copied the code on my codeigniter. What difference does it make?

install the composer and put the composer.json file inside the application folder. then from the directory use composer install from command prompt. It will work

Related

Install python 3 on bluehost

I'm trying to set up my Bluehost account with python 3 so that I can use it with a flask site that I've created locally. I found instructions on how to do this at: http://multiactivelife.com/articles/install-python3-on-bluehost. I made it most of the way through, but I unfortunately get the following error when I try to run make install:
/usr/bin/install: cannot create regular file `/usr/local/bin/python3.7m': Read-only file system
make: *** [altbininstall] Error 1
I have tried to chmod to the bin directory (0755) but with no luck. Any idea on how I can get write access to my bin folder so that I can install python 3 on bluehost?
From the Bluehost website:
"Note: In order to install python locally, you will need to be added to the Compiler group. Please contact Support to request you be added to the Compiler group before proceeding."
https://www.bluehost.com/help/article/python-installation

WOPI Validator Application Not Working. It returns 404 Not Found

I am trying to integrate with WOPI online through the Office Cloud Storage Program Partner Program
To do that integration, you have to use the validation application URL by using .wopitest file. It was working fine before but today it gives me 404 Not Found
My Testing URL: https://ffc-onenote.officeapps.live.com/hosting/WopiTestFrame.aspx?ui=en-US&rs=en-US&dchat=1&hid=951a6eb2-6cd8-4c6d-9258-95f2d420b241&sc=746e9e3b-8a2e-4bc1-810c-01ce605911d1&wopisrc=https://<-myRestAPIURL->/wopi/files/1051&IsLicensedUser=edit&testcategory=All
Is there anyone having the same issue or it is an implementation issue?
Note: for word documents, it is working but I need to run the full test for other issues
It still not working but you can run the validation locally. Here are the steps on windows:
Make sure you have at least.net core 2.2.1
Download the validator project from github https://github.com/Microsoft/wopi-validator-core
Rebuild the project and open the command line
Navigate to the bin folder netcoreapp2.0 folder
Run the command dotnet run --project
./src/WopiValidator/WopiValidator.csproj --framework netcoreapp2.0
-- -t MyAccessToken -l 0 -w http://localhost:5000/wopi/files/1 -e OfficeOnline -s
Note:
Provide a valid access token and your WOPI REST end point URL
Maybe you will need to disable the Proofkeys validation on your end point to make it run
All steps mentioned on the project home page at github

No permission for modification

I'm following the tutorial for building a React Native application, but I can't make changes in the App.js file. I'm using Brackets and I get an error saving file: The permissions do not allow you to make modifications. I followed the exact instructions on the Facebook.github website. I'm using a Mac and i'm a sudo user. I've tried installing the project again but it doesn't help. Does anyone know how to fix this?

Magento2 error: We're sorry, an error has occurred while generating this email

I am getting below error in magento 2 local system:
We're sorry, an error has occurred while generating this email.
It is not showing me the sample data installed in catalog. Please help me out to get solution of this problem.
Regards,
Rakesh Kumar
The first thing you need to do is go to your .htaccess file. Uncomment
SetEnv MAGE_MODE developer
The error message is 90% of the time misleading and most likely you have an xml parsing issue. Either way turning on the developer environment and clearing the cache will pull the error.
Without seeing your error log it'd be hard to give an exact diagnosis. Some users will say sendmail will fix this error but generally this is because the error is trying to be emailed to you and that is because you are not in the correct developing environment to debug the issue. This could be because you are in default or production mode which is not ideal for fixing issue.
The sendmail module is meant to allow a site to operate and if any issues do occur with the site then the developer can be notified and hopefully the error hasn't caused a full site rendering issue. This way a site can still operate unbeknown to users and the issue can be resolved by a qualified developer behind the scenes.
This error is quite misleading. In my case an error in MySql query was causing this.
You should enable developer mode the get the exact error.
php ./bin/magento deploy:mode:set developer
In My case issue get solved by giving permissions to directory pub/media/catalog/product/
Enable developer mode using command line php bin/magento deploy:mode:set developer
Clear cache using command line php bin/magento cache:flush
Reload the frontend page
After reloading the page the message will change to
Error filtering template: Unable to write file into directory \C:/xampp/htdocs/Magento/pub/media/catalog/product\cache\f073062f50e48eb0f0998593e568d857/m/b. Access forbidden.
Follow this link to fix Magento 2: Unable to write file into directory. Access forbidden
Clear cache
Reload the frontend page again
If you see another message after enabling developer mode you can search for it
In my case it was missing php-gd extension on my machine.
This was on my exception log (magento_root/var/log/exception.log):
main.CRITICAL: exception 'Exception' with message 'Required PHP extension 'gd' was not loaded.' in /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php:620
Solved by installing php-gd library on my Ubuntu machine with the following command:
sudo apt-get install php-gd
If you want to install for php5.6 then you may run:
sudo apt-get install php5.6-gd
This can be for any error occurred in the page. The notice is different. The notice is given when system tries to send error email to administrator and failed while in Production mode.
For actual error one should enable developer mode and enable display error in app/bootstrap.php and checking error logs. It can be any error like php or mysql.
ini_set('display_errors', 1);
Thanks
Please check your /var/log/exception.log
This is issue raised because your product does not upload. so check your database or upload your sample database again .Let me know what error in exception.log

Zend Framework 2 magic quotes gpc

I'm trying to install the Zend skeleton application and when I run the command "php composer.phar create-project --repository-url="http://packages.zendframework.com" zendframework/skeleton-application path/to/install" I get an error about magic_quotes being deprecated. I'm using GoDaddy servers and I turned magic_quotes off in my php.ini file. Any ideas what could be causing the problem?
Based on the error it looks like my the file in /web/conf/php5.ini has magic_quotes On for some reason. It's a read only file that I can't change. Shouldn't the file in the root of my server be changing the setting in it?
When I run phpinfo it shows magic_quotes_gpc and the other magic_quotes all as Off. What could be causing this error message in ssh?
Could it be because my GoDaddy hosting account is running PHP 5.3.24? The minimum on the Zend site says 5.3.3