HYbridauth for facebook login doesn't work - hybridauth

I was trying to configure the hybridauth library so that I can use the the google + and the facebook sign in. But it keeps me giving a fatal error:
Fatal error: require(): Failed opening required 'Facebook\Facebook.php' (include_path='.:/var/www/magilla/lib:/var/www/magilla/models') in /var/www/magilla/lib/RPC/Util.php on line 168
I followed each and every step of their documentation. I have used the
composer to install the library. The library version is 2.9 and the
facebook graph sdk, the most recent version of github

READ EDIT*2 for a proper solution instead
I am encountering the same issue and I suppose you install hybridauth the same way as I did, which is running composer require hybridauth/hybridauth on your project root folder.
I solved this by running composer install within the hybridauth
directory where its composer.json exist, that will install facebook
sdk within the hybridauth directory where the autoload.php is being
load by the script (I personally feel like it is more like a hack than
a proper solution... but I have a feeling that the hybridauth
developer expect you to clone then run the composer install instead of
composer requiring it...I maybe wrong as I just start using composer
as well)
*EDIT check out the issue on their github, there is a bug where the vendor path is being replaced by one in their code, it also mention it is being fixed in later commit. I am new to composer as well so I don't know how to specific the commit for it to update to... if you know how to do it let me know as well
*EDIT*2 alright, I updated to 2.9.3-dev and it seems to solve the issue without generating any new one, I also use that for google and twitter and those are fine too. To update, edit your composer.json to this
"require": {
"hybridauth/hybridauth": "^2.9-dev"
then run composer update on your command prompt, things should work as long as you require the composer autoload.php for your script


Im unable to install ADT on Eclipse 3.5

Im having a problem regarding installing ADT plugin on Eclipse.
the error prompt was
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://download.eclipse.org/releases/galileo/201002260900/aggregate/plugins/org.eclipse.emf.common_2.5.0.v200906151043.jar.pack.gz.
The server download.eclipse.org failed to respond
Is there any other location where i can download ADT for eclipse?
You might want to check your network settings as it will not work under proxy or firewall.
Click on the latest version which is ADT-0.9.6.zip as of right now.
I am experiencing the same problem. The problem resides not in the ADT repository but in the Eclipse (Galileo) repository.
There are certain dependencies for ADT that need to be installed in order to install ADT. At this moment the repository for Eclipse doesn't seem to work. It can't install the dependencies.
So far i have been able to locate some of the dependencies, downloaded them by hand used unpack200 to unpack them and put them into my ~/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins but i guess they have to be registered somewhere else because i'm stil getting errors on the same file which is actually existing in the plugins directory.
The weird thing is that when i browse to the repository source using Firefox the site does open up. Yet if Eclipse tries to download the required filed it fails, which is not an Eclipse problem because wget or firefox are also unable to get the files.
I've been trying to get it to work for several days now, because i thought that it might be able for download.eclipse.org to be down for a few hours perhaps. Yet it's still not working.
Here's part of the error message i'm getting:
An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http:/ /download.eclipse.org/modeling/emf/updates/plugins/org.eclipse.emf.common_2.5.0.v200906151043.jar.pack.gz.
The server download.eclipse.org failed to respond
Unable to read repository at http:/ /download.eclipse.org/modeling/emf/updates/plugins/org.eclipse.emf.ecore_2.5.0.v200906151043.jar.pack.gz.
The server download.eclipse.org failed to respond
and that list goes on for a couple of more files...
The web seems to be full of people trying to get around the issue of installing ADT on Lucid Lynx.
Ive tried a few things but nothing seems to work for me. The bottomline is just that the Eclipse shipping with Lucid refuses to install any plugins.
I ended up following this tutorial: http://qtcoder.wordpress.com/2010/05/12/installing-android-sdk-on-ubuntu-10-04-lts-lucid-lynx/
This tutorial doesn't install eclipse as a dkpg package but if you just extract it into your home directory and run it from there it works like a charm. If the dpkg is fixed at some point you can always go by removing the manual Eclipse install and install the dpkg instead and things should just continue working as your configuration still resides in ~/.eclipse
Keep in mind that you require the 64 bit version of eclipse if you run the 64 bit version of ubuntu or eclipse won't start.
Happy devving
My problem is fixed, I was having an error at first because im using the Classic version of eclipse. But when I downloaded the Eclipse JavaEE version the ADT installation worked.
I was using windows here in the office.
Anyways, Thanks for all the replies.
I have successfully installed ADT on eclipse classic.(Mac)
Select and install the developer tools one by one .It worked for me.
I had the same problem and solved it by going into "Available Software Sites" and unchecking the update site with the numbers at the end of the URL, and checking the one without the numbers.
in my case:
uncheck: http://download.eclipse.org/releases/juno/201206270900
check: http://download.eclipse.org/releases/juno/

Eclipse new Web Application Project, can't find my GAE SDK

I've installed the Google Plugin for Eclipse 3.4 and it seems to work fine.
But when I start a new Web Application Project, it wants me to configure the Google App Engine SDK. I click on Add App Engine SDK, but it doesn't recognize my (valid) GAE SDK. It comes back with "Failed to initialize App Engine SDK at %path", no matter what path I give it.
Are you trying to use the Java or Python SDKs, and are you sure you downloaded the right one?
If Python, remember that the Google Eclipse plugin is currently Java-only.
Does your SDK run if you start dev_appserver from the command line? I had a similar problem once and it was because the script wanted to ask me about automatically checking for updates - once I'd answered the question and exited the appserver I was then able to add it to Eclipse.
Have you checked your "path" environment variable to include
;C:\Program Files\Google\google_appengine\
I had this issue. I downloaded the java zip package and extracted it manually but it turned out that the zip file was either corrupted or messed up during the extraction. Regardless, downloading the package again and re-extracting it fixed the problem for me.
Also, if you are on Python use the PyDev plugin for eclipse and start a Google AE project that way. Use the Google Eclipse plugin for GWT, Java->Js stuff.

Error in AWS CLI (Amplify) when executing the “amplify init” command in windows environment (for an android studio project)

I'am new to the AWS SDK and I'am trying to create a new android studio project with AWS SDK for mobile.
My ultimate goal is to get AWS SDK working on my Android studio project, I tried adding dependencies on Gradle, but it does not all all packages I need and it's not helping me, and thus I followed the official AWS documentation which lead me to Amplify CLI.
As suggested by the official AWS documentation (this is the link to the documentation page I'm talking about), I was following along all the steps as recommended and there is this step with the command:
$amplify init
This returns the following error for me:
init failed
{Error: D:\EDUCATION\Developer\Final_Year_Project\MusicAppAWS\D:\EDUCATION\Developer\Final_Year_Project\MusicAppAWS\app\src\main\res\raw contains invalid WIN32 path characters
at Object.mkdirsSync (C:\Users\eldho\AppData\Roaming\npm\node_modules\#aws-amplify\cli\node_modules\amplify-frontend-android\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:18:22)
at generateAWSConfigFile (C:\Users\eldho\AppData\Roaming\npm\node_modules\#aws-amplify\cli\node_modules\amplify-frontend-android\lib\frontend-config-creator.js:110:6)
at createAWSConfig (C:\Users\eldho\AppData\Roaming\npm\node_modules\#aws-amplify\cli\node_modules\amplify-frontend-android\lib\frontend-config-creator.js:32:3)
at Object.createFrontendConfigs (C:\Users\eldho\AppData\Roaming\npm\node_modules\#aws-amplify\cli\node_modules\amplify-frontend-android\index.js:23:10)
at Object.onCategoryOutputsChange (C:\Users\eldho\AppData\Roaming\npm\node_modules\#aws-amplify\cli\src\extensions\amplify-helpers\on-category-outputs-change.js:22:33)
at initializeEnv (C:\Users\eldho\AppData\Roaming\npm\node_modules\#aws-amplify\cli\src\lib\initialize-env.js:79:27)
at process._tickCallback (internal/process/next_tick.js:68:7) code: 'EINVAL'}
Screenshot of the error:
link to the screenshot of the error in Amplify CLI
I'am running this in windows command prompt.
I remember reading a similar issue in github saying that it might be an error due to the path having characters like ":" as in "amplify-frontend-android\index.js:23:10" that are not suported in windows. I'am a beginner at coding and not sure how to fix this problem.
After running the
$amplify init
The Amplify CLI will prompt you for several questions, one of the question in the prompt is:
? Where is your Res directory:
for this you need to provide the relative path to you Res directory, like:
? Where is your Res directory:app\src\main\res
instead of providing the full path like:
? Where is your Res directory: D:\EDUCATION\Final_Year_Project\Demo2\app\src\main\res
As on writing this answer(18th April 2019), the amplify CLI is not optimized to figure this out on its own. We can hope to see this as an enhancement in the future versions, so it should resolve itself in the future versions.

Zend framework 2 - where is public directory?

I am reading zend 2 documentation on how to install:
When I executed composer to install skeleton app, it installed 3rd version. Ok something is wrong with documentation.
Then I found I can download 2 version from here.
Downloaded, ran
composer install
And I see folders: bin, library, resources, vendor. So where is public dir? Where is some file which should be run?
I tried to search for index.php, but only found one in library\Zend\Db\Sql\Ddl\Index
which does not look the one I need.
Found between issues how to install.
Turns out I have installed something not full. Full is called skeleton application.
composer create-project -sdev zendframework/skeleton-application:^2.3 path/to/zf2-app

Github 3.0.11 does not have git.exe - how to integrate with Android-Studio

I'm using Android-Studio 1.5 on Windows 10, with a recently upgraded GitHub Desktop (3.0.11), and now having problems with the integration of GitHub and Android-Studio.
After updating GitHub to the new GitHub Desktop version last week, I'd not had any problems until today. Android-Studio reported that it could not find git.exe where it was previously located (C:\Users\Mxxx\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\bin). Following the posts of many others here, I did various searches - no file by the name of "git.exe" exists on my machine any more. In the previously used folder there is a "rebase.exe".
Using Task Manager, as suggested by ProgramsFast in response to this related question (Where is git.exe located?), I found that GitHub desktop was running GitHub.exe. So, I changed the settings of Android-Studio to point to the respective version of GitHub.exe (C:\Users\Mxxx\AppData\Local\Apps\2.0\0A0P98AA.GDB\CH7VMOKM.2V1\gith..tion_317444273a93ac29_0003.0000_328216539257acd4\GitHub.exe). The connection test failed - as the --version test of git.exe failed (of course). However the EventLog message for Git disappeared. So I started using it.
However, I have found that every time Gradle does a sync, a new GitHub Desktop window opens, even if there was already one open.
Have I got the settings right, and this is a fault of Android-Studio? Or is there something I have done wrong now?
I have found one way forward - installing Git GUI (2.6.4) for Windows. This has provided a git.exe version that Android-Studio immediately configured into its settings. As the interface is quite different to the Git Hub UI, not sure I like it yet, but Android-Studio does not appear to have any issues integrating with it.
You can find a git.exe here
With the latest GitHub Desktop, I found git.exe here: