-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error #1
Comments
Make sure the folder name in your plugin directory is called "facebook". Should be in app/plugins/facebook Also, please note you do not need 'Facebook' as a component/helper in your list, unless you have a facebook component in your controllers/components directory. Hope that helps, |
Thanks for the reply. It is apps/plugins/facebook:
It's not liking it in the display.ctp. |
Ah, you're not loading the ehlper then. The $facebook->html() is a helper. In your controller you need to add: var $Helpers = array('Facebook.Facebook'); Hope that helps, |
var $helpers = array('Facebook.Facebook'); |
Yep, it's in there, in my app_controller.php.
I think that's correct? I've been having so much trouble with CakePHP, for some reason. This is my 5th or 6th Cake project, but this time around I'm having problems with every aspect... forms.. auth.. yeck. I wonder if it's being overwritten or something... edit nope, put it in my current controller, still nothing |
OK, then make sure you're not hitting a variable collision. Make sure you don't have any $facebook variables set anywhere in your actions, or if you're running CakePHP 1.3 use $this->Facebook->html() |
BTW. you don't need uses = array() in your app_controller. that will cause problems of auto loading models down the inheritance chain. just FYI |
I tried $this->Facebook->html(), still no go. It gives me this now:
When I take out:
From $components in AppController, no more errors, but my entire layout is gone. Not sure what's going on. |
Alright, the layout is gone because now it's not loading the Session component. Cake is horribly frustrating at times. Thanks for the help |
Okay, this seems to be good now. Thanks! |
@nshahzah.am new to cakephp but not programming.am expecting an error close to yours. |
Sorry, I don't remember. I stopped using this plugin and implemented the library that was directly from Facebook, that fixed many of my issues. But that's just a notice, so it can be safely ignored, unless you're not seeing what you were expecting to see? |
ok.What library are you using?i could change mine right away,since you already have something working for you. |
thanks.I have fixed the problem.i placed the var $helpers = array('Facebook.Facebook'); in the app_controller.php in the controller folder.I initially placed it in the app_controller.php in the app folder |
Hi Nick, I am using the latest version of cakephp with your latest facebook plugin. I have got the same error to that nshahzad had mentioned. I have checked everything your mentioned on your blog and all the comments of this post.... I am pretty sure the plugin is installed correctly, and here's my controller class FbusersController extends AppController{
I can't figure out why the facebook helper can't be loaded |
So I've extracted the folder in the zip, I am getting:
Not quite sure what I'm doing wrong? I've followed the instructions in the readme including the config file...
In my AppController,
And yep, it's cake 1.3
The text was updated successfully, but these errors were encountered: