CakePHP-Facebook-Plugin icon indicating copy to clipboard operation
CakePHP-Facebook-Plugin copied to clipboard

Strict warnings when using Facebook.Connect

Open fgaudo opened this issue 13 years ago • 0 comments

When using the Facebook.Connect component i get the following warnings: Strict (2048): Declaration of ConnectComponent::initialize() should be compatible with Component::initialize(Controller $controller) [APP/Plugin/Facebook/Controller/Component/ConnectComponent.php, line 250]

Strict (2048): Declaration of ConnectComponent::startup() should be compatible with Component::startup(Controller $controller) [APP/Plugin/Facebook/Controller/Component/ConnectComponent.php, line 250]

Warning (2): session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /media/sf_Google_Drive/Siti Internet/Salsanonima/app/Plugin/Facebook/Controller/Component/ConnectComponent.php:250) [APP/Plugin/Facebook/Vendor/Facebook.php, line 37]

replacing the parameters with startup(Controller $Controller) initialize(Controller $Controller, $settings = array())

solves the problem, but i don't know if this could break older versions of cakephp

fgaudo avatar Jul 27 '12 20:07 fgaudo