Topic-icon Auto FB login failes

Active Subscriptions:

None
9 years 4 months ago - 9 years 4 months ago #49413 by nikkra
Auto FB login failes was created by nikkra
When turning on Auto Login Facebook Users, the whole page collapses and shows this error message instead:

Warning: require_once(__DIR__/controller.php) [function.require-once]: failed to open stream: No such file or directory in /storage/content/36/185636/sittbrunnen.se/public_html/components/com_jfbconnect/jfbconnect.php on line 15

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/controller.php' (include_path='.:/usr/local/php52/lib/php') in /storage/content/36/185636/sittbrunnen.se/public_html/components/com_jfbconnect/jfbconnect.php on line 15

Niklas
Last edit: 9 years 4 months ago by nikkra.
The topic has been locked.
Support Specialist
9 years 4 months ago #49416 by mel
Replied by mel on topic Auto FB login failes
Are you sure this error is only present with Auto-Login is on? That page gets loaded any time the JFBConnect is used, so we would expect that you would get that error a lot more than just if the setting is on.

Please make sure to check that the following file is on your site. If the file is not present, then JFBConnect did not get installed properly and will need to be reinstalled.
/storage/content/36/185636/sittbrunnen.se/public_html/components/com_jfbconnect/controller.php

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49445 by nikkra
Replied by nikkra on topic Auto FB login failes
Hi Melissa
Yes, the controller.php file is there and as far as I can see looks ok. I attach it.

And no, it makes a difference if I shut auto log in of or on.

Niklas
The topic has been locked.
Support Specialist
9 years 4 months ago #49453 by mel
Replied by mel on topic Auto FB login failes
1. What version of PHP are you running? If you're using anything prior to 5.3, the __DIR__ syntax will not work. In components/com_jfbconnect/jfbconnect.php around line 15, can you try replacing
require_once (__DIR__ . '/controller.php');
with
require_once (dirname(__FILE__) . '/controller.php');

2. Please verify that the file permissions and owners on the files in the com_jfbconnect folders are correct.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49523 by nikkra
Replied by nikkra on topic Auto FB login failes
Thanks.
Updated php to 5.3.28, and now it works.

Niklas
The topic has been locked.
Support Specialist
9 years 4 months ago #49526 by mel
Replied by mel on topic Auto FB login failes
Glad to hear that your issue is resolve now.

-Melissa
The topic has been locked.