Topic-icon Weird behaviour

Active Subscriptions:

None
8 years 1 month ago #57552 by timchteure
Weird behaviour was created by timchteure
Hey,

I am having weird behaviour of the module. I have just installed the multi-site plugin and am now getting a weird behaviour. I am getting two 404 errors. The problem is that the somehow the link for getting the information includes the sub-domain before the complete path. I have had the same problem with JCE editor and there it was the problem of the CSS compression. I have made a screenshot. nimbus.everhelper.me/client/notes/share/...s84aqmfm0zrk46q21mwn

Thanks!
The topic has been locked.
Support Specialist
8 years 1 month ago #57559 by alzander
Replied by alzander on topic Weird behaviour
Since we use changeable themes, we do a search of the /media/sourcecoast/themes directory for any you may have created. Then, we strip the path to your site off the file (the /var/www/vhosts/.. part. It seems like the JPATH_SITE parameter, which is set by Joomla itself, isn't correct for your site.

Is that directory where your files are stored? Do you know any reason why Joomla would think the site is located in a different path on your server?

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

None
8 years 1 month ago - 8 years 1 month ago #57560 by timchteure
Replied by timchteure on topic Weird behaviour
Yep and no,

Joomla has been patched with the extension JMS2Win which makes it so that I have master and slave sites. The slave sites basically are just databases that are controlling the PHP code of the master. The PHP code is indeed located at www/var/xxxx but NOT at munich.international-friends.net/www/var/xxxx

If it would look at the www/var/xxxxx then I am sure that it would find the corresponding stuff there (since the address points towardsthe master php file)...

PS: Where and how can I change the default.css? Where can I upload a theme?
Last edit: 8 years 1 month ago by timchteure.
The topic has been locked.
Support Specialist
8 years 1 month ago #57569 by alzander
Replied by alzander on topic Weird behaviour
For details on setting up your own custom theme for the SCLogin module, see the link below:
www.sourcecoast.com/sclogin/documentation/themes

As for the issue, it seems that JSM2WIN is altering the JPATH_ROOT or JPATH_SITE variables which the SCLogin module uses to create the CSS link. You can try the following, but I don't know if it will work.

* Edit the /modules/mod_sclogin/helper.php file.
* Around line 59, you'll see the following block:
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
        $paths[] = JPATH_ROOT . '/media/sourcecoast/themes/sclogin/';
        $theme = $this->params->get('theme', 'default.css');
        $file = JPath::find($paths, $theme);
        $file = str_replace(JPATH_SITE, '', $file);
In there are 2 instances of JPATH_ROOT and 1 of JPATH_SITE. Try updating them so they are all the same (JPATH_ROOT or JPATH_SITE). Then, test if it works. If not, try the other way.

Let us know if having them all with the same value fixes things for you. Otherwise, you may need to contact the JSM2WIN devs to help us understand why those variables aren't the same any more.

Thanks,
Alex
The topic has been locked.
Support Specialist
8 years 1 month ago #57571 by alzander
Replied by alzander on topic Weird behaviour
A 3rd option would be to change all 3 to JPATH_BASE as well. That would cover all the options, depending on what JSM2WIN may be doing under the hood.

Alex
The topic has been locked.
Active Subscriptions:

None
8 years 1 month ago #57582 by timchteure
Replied by timchteure on topic Weird behaviour
Hi alex, neither of those three options worked unfortunately. Could you PM me your email address so that I can put you in contact with Edwin who develops the JMS2Win?
The topic has been locked.
Support Specialist
8 years 1 month ago #57587 by alzander
Replied by alzander on topic Weird behaviour
I'd recommend posting to their forums or emailing them this thread so they can read through the topic and understand the issue. They're free to respond here or through the Contact Us form which will go to myself or another of our tech support people.

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

None
8 years 1 month ago #57603 by timchteure
Replied by timchteure on topic Weird behaviour
Hi Alex,

Here is the reply by JMS2Win guy:
Tim, I have read the message in the link that you provided.

We DON'T change the JPATH_ROOT BUT there is a BUT
The directory path are crossing symbolic link and not a physical directory.

The most common error of the developer is to use the realpath() function that return the physical path on the disk and not necessary the path relative to the JPATH_ROOT.

I suspect (but didn't found where they do this computation) that when they compute the cache, they probably use the "realpath" function that is FORBIDEN.
They should always use the JPATH_ROOT or derived variable provided by joomla and not recompute the value themself based on a "realpath" that might be outside of the website JPATH_ROOT.

The realpath() return the real physical path and not the "virtual path" from the current website.

I let you transfert my comment to the developer of JCE or you can ask him to contact me directly by mail to discuss on this issue

Please tell me how I can transfer his email address to you?
The topic has been locked.
Support Specialist
8 years 1 month ago #57609 by alzander
Replied by alzander on topic Weird behaviour
We only use JPATH_ for our directories. We never use the realpath function as that is definitely problematic.

To get in touch, have them email me at alex.andreae @ sourcecoast.com . Also, please let them know that our SCLogin module is freely available below if they'd like to test:
www.sourcecoast.com/index.php?option=com...w=release&Itemid=248

Thanks,
Alex
The topic has been locked.
Support Specialist
8 years 1 month ago #57625 by alzander
Replied by alzander on topic Weird behaviour
Tim,
I just got an email from the multi-site developer. I'm really a bit confused by the whole thing. The dev seems to think we're the developer of JCE Editor, and the whole thread revolves around JCE without SCLogin being mentioned once.

Are we talking about the same issue? Are they aware of the proper extension that you're using and the problem you're having? He mentions caching within JCE a few times, which is really unrelated to SCLogin.

Any clarification or thoughts you have would be great.

Thanks,
Alex
The topic has been locked.