Topic-icon loginregister.css

Active Subscriptions:

None
11 years 11 months ago - 11 years 11 months ago #45162 by davste1
loginregister.css was created by davste1
I'm receiving the following error -
Not allowed to load local resource: file:///C:/HostingSpaces/fittogether3/fittogether.se/wwwroot/components/com_jfbconnect/views/loginregister/tmpl/loginregister.css

after attempting a first FB login with JFBConnect and JomSocial (/component/jfbconnect/?view=loginregister&provider=facebook). It would appear the component is trying to load a CSS file using file reference instead of a relative URL.

The page source confirms this -
<link rel="stylesheet" href="C:\HostingSpaces\fittogether3\fittogether.se\wwwroot\components\com_jfbconnect\views\loginregister\tmpl\loginregister.css" type="text/css" />

I updated to 6.1 with no change. Running on IIS8 with PHP 5.5.11. Autotune reports no problems.

Thanks,
David
Last edit: 11 years 11 months ago by davste1.
The topic has been locked.
Support Specialist
11 years 11 months ago #45165 by alzander
Replied by alzander on topic loginregister.css
You've found a bug with JFBConnect when running on Windows systems. You'll need to make a minor change to our code to fix. To do so, please edit the /components/com_jfbconnect/views/loginregister/view.html.php file. Around line 140, you'll see:
$css = JPath::find($this->_path['template'], 'loginregister.css');
        $css = str_replace(JPATH_ROOT . '/', JURI::base(), $css);
Update that bottom line with the different 2 lines below:
$css = JPath::find($this->_path['template'], 'loginregister.css');
        $css = str_replace(JPATH_SITE, '', $file);
        $css = str_replace('\\', "/", $css); //Windows support for file separators
Please let me know if that helps get you going. We've added this as a bug to be fixed in the 6.1.1 release as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #45167 by davste1
Replied by davste1 on topic loginregister.css
Thanks, that fixed it.
The topic has been locked.
Support Specialist
11 years 11 months ago #45170 by alzander
Replied by alzander on topic loginregister.css
Glad to hear that worked. That change will be in the 6.1.1 release as well, so you won't have to worry about making that change again in the future.

If you need anything else, just get in touch. We'll help however we can.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.