webtechnick / CakePHP-Facebook-Plugin

CakePHP Facebook Plugin
http://facebook.webtechnick.com
445 stars 138 forks source link

Strict warnings when using Facebook.Connect #89

Open fgaudo opened 12 years ago

fgaudo commented 12 years ago

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