Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

the urls to some libraries are missing slashes

10 years 4 months ago
Licenses:
JomSocial Active Socialize Expired

ISSUE SUMMARY: just installed jomsocial + socialize on a fresh Joomla. The website doesn't load properly, when examined it turns out the urls are wrong, there are missing slashes:
<link rel="stylesheet" href="componentscom_communityassetsvendorsmagnific-popup/magnific-popup.css" />
<link rel="stylesheet" href="componentscom_communityassetsreleasecss/override.css" />
<link rel="stylesheet" href="componentscom_communitytemplatesjomsocialassetscss/old.css" />
<link rel="stylesheet" href="componentscom_communitytemplatesjomsocialassetscss/style.css" />

STEPS TO REPLICATE:
1 go to h52.pl/jomsocial

RESULT a lot of libraries are not loaded
EXPECTED RESULT working website?
BROWSER Chrome, Mozilla

10 years 4 months ago
Licenses:

Hi,

it can be related with server configuration. but I need to make sure it. I need valid FTP access detail.
please edit your first post and put valid FTP access detail at site info form.

Regards

10 years 4 months ago
Licenses:
JomSocial Active Socialize Expired

fixed the ftp access info

thanks

10 years 4 months ago
Licenses:

Hi,

please give me time for this complicated issue. no other customers ever got this issue.

Regards

10 years 4 months ago
Licenses:
JomSocial Active Socialize Expired

Take your time

g

10 years 4 months ago
Licenses:

Hi.

I found a bug. because your site root path only "/", that path not common. so for the fix I edit:
/public_html/autoinstalator/joomla2/components/com_community/libraries/path.php

public function toUrl($path) {
    return JUri::root(true) . str_replace('\\', '/', str_replace(JPATH_ROOT, '', $path));
}
I changing it to
public function toUrl($path) {
    $path = implode('', explode(JPATH_ROOT, $path, 2));
    return JUri::root(true) . str_replace('\\', '/', $path);
}

Regards

The following user(s) said Thank You: Grzegorz
10 years 4 months ago
Licenses:
JomSocial Active Socialize Expired

CORRECTION - the front-end works fine, but now the admin panel of Jomsocial is all messed up, doesn't work!


__________________________________
works just fine,
thanks!
g

10 years 4 months ago
Licenses:
JomSocial Active Socialize Expired

okay, fixed it myself added a conditional statement to path.php

			if(JPATH_ROOT==""){
			return JUri::root(true) . str_replace('\\', '/', str_replace(JPATH_ROOT, '', $path));
            // http://stackoverflow.com/questions/1252693/using-str-replace-so-that-it-only-acts-on-the-first-match
			}else{
            $path = implode('', explode(JPATH_ROOT, $path, 2));
            return JUri::root(true) . str_replace('\\', '/', $path);
			};

The following user(s) said Thank You: Albertus
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW