GithubHelp home page GithubHelp logo

Comments (4)

webtechnick avatar webtechnick commented on August 16, 2024

Please make sure you're using the correct branch of the plugin. There are two versions of it. The one for CakePHP 1.3.x and CakePHP 2.x. Please be sure you're using the CakePHP 2.x version of the plugin. 

Nick

On Wed, May 21, 2014 at 4:19 AM, sela [email protected] wrote:

I copied the plugin to the folder /var/www/tree/Plugin/Facebook
From bootstrap.php I loaded it
CakePlugin::load('Facebook');
I checked in the DebugKit toolbar and I can't find the Plugin is loaded under Variables and then Plugin
but get the following error:
Helper class FacebookHelper could not be found.
Error: An Internal Error Has Occurred.
Stack Trace
CORE/Cake/View/View.php line 867 → HelperCollection->load(string, array)
CORE/Cake/View/View.php line 341 → View->loadHelpers()
CORE/Cake/Controller/Controller.php line 1240 → View->__construct(PagesController)
CORE/Cake/Controller/Controller.php line 938 → Controller->_getViewObject()
CORE/Cake/Routing/Dispatcher.php line 192 → Controller->render()
CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(PagesController, CakeRequest, CakeResponse)

APP/webroot/index.php line 116 → Dispatcher->dispatch(CakeRequest, CakeResponse)

Reply to this email directly or view it on GitHub:
#158

from cakephp-facebook-plugin.

sela avatar sela commented on August 16, 2024

I wasn't sure if I get the master or cakephp 1.3 branch so downloaded the 3.1.2 now it just tells me

Helper class FacebookHelper could not be found.
Error: An Internal Error Has Occurred.

and doesn't suggest to create the folder location where to create the helper.


From: Nick Baker [email protected]
To: webtechnick/CakePHP-Facebook-Plugin [email protected]
Cc: sela [email protected]
Sent: Wednesday, 21 May 2014, 16:21
Subject: Re: [CakePHP-Facebook-Plugin] Helper/Plugin isn't loaded (#158)

Please make sure you're using the correct branch of the plugin. There are two versions of it. The one for CakePHP 1.3.x and CakePHP 2.x. Please be sure you're using the CakePHP 2.x version of the plugin. 

Nick

On Wed, May 21, 2014 at 4:19 AM, sela [email protected] wrote:

I copied the plugin to the folder /var/www/tree/Plugin/Facebook
From bootstrap.php I loaded it
CakePlugin::load('Facebook');
I checked in the DebugKit toolbar and I can't find the Plugin is loaded under Variables and then Plugin
but get the following error:
Helper class FacebookHelper could not be found.
Error: An Internal Error Has Occurred.
Stack Trace
CORE/Cake/View/View.php line 867 → HelperCollection->load(string, array)
CORE/Cake/View/View.php line 341 → View->loadHelpers()
CORE/Cake/Controller/Controller.php line 1240 → View->__construct(PagesController)
CORE/Cake/Controller/Controller.php line 938 → Controller->_getViewObject()
CORE/Cake/Routing/Dispatcher.php line 192 → Controller->render()
CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(PagesController, CakeRequest, CakeResponse)

APP/webroot/index.php line 116 → Dispatcher->dispatch(CakeRequest, CakeResponse)

Reply to this email directly or view it on GitHub:
#158

Reply to this email directly or view it on GitHub.

from cakephp-facebook-plugin.

shamandude avatar shamandude commented on August 16, 2024

i dont know if this would help .but i had the same problem
this is how i fixed it
include the plugin in the cakephp default controller "pagesController.php"
public $helpers = array('Facebook.Facebook');

from cakephp-facebook-plugin.

PhantomWatson avatar PhantomWatson commented on August 16, 2024

For whatever reason, I got the following error when the plugin and helper were correctly loaded and after my users table was deleted from the database:

Fatal error: Uncaught exception 'FatalErrorException' with message '[MissingHelperException] Helper class FacebookHelper could not be found.
#0 C:\xampp\htdocs\app_name\lib\Cake\View\HelperCollection.php(63): HelperCollection->load('Facebook') 
#1 C:\xampp\htdocs\app_name\lib\Cake\View\View.php(848): HelperCollection->__isset('Facebook') 
#2 C:\xampp\htdocs\app_name\app\View\Layouts\error.ctp(60): View->__get('Facebook') 
#3 C:\xampp\htdocs\app_name\lib\Cake\View\View.php(961): include('C:\\xampp\\htdocs...') 
#4 C:\xampp\htdocs\app_name\lib\Cake\View\View.php(923): View->_evaluate('C:\\xampp\\htdocs...', Array) 
#5 C:\xampp\htdocs\app_name\lib\Cake\View\View.php(546): View->_render('C:\\xampp\\htdocs...') 
#6 C:\xampp\htdocs\app_name\lib\Cake\View\View.php(481): View->renderLayout('', 'error') 
#7 C:\xampp\htdocs\app_name\lib\Cake\Error\ExceptionRenderer.php(325): View->render('error500', 'error') 
#8 C:\xampp\htdocs\app_name\lib\Cake\Error\ExceptionRenderer.php(306): ExceptionRendere in C:\xampp\htdocs\app_name\lib\Cake\Error\ErrorHandler.php on line 138

But when the users table was re-added, the error went away.

So anyone else experiencing this when the helper should be getting loaded correctly, check on your database.

from cakephp-facebook-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.