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.

$mainframe->getTemplate() gets called too early (or not correctly)

12 years 5 months ago
  • GENOVA's Avatar
    Topic Author
  • GENOVA
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi guys,

I just updated to the latest version of Jomsocial, and now I have the problem, that the Template Style that is assigned to my Homepage is not being loaded anymore, but the Default Tempalte Style is being loaded instead.

I took a look into the code, and I think I figured out the problem:

The problem is, that the CTemplateHelper::getOverrideTemplatePath() method is calling the JApplicationSite::getTemplate() method before the Joomla CMS has parsed the Site Route.

The JRouterSite::parseSefRoute() method is responsible for setting the active menu item to the site menu. However this method is not triggered until later in the dispatching process later.

When CTemplateHelper::getOverrideTemplatePath() triggers the JApplicationSite::getTemplate() method, this Route is not parsed yet, resulting in the fact, that the active menu item is not set yet. This in turn leads to the problem, that the template style is not being loaded.

In my opinion this bug is critical. I can't role back the update, since Joomla 3.3 introduced the Session problem to JomSocial, so I need to fix this issue manually now.

I would appreciate a quick fix for this problem.

Thank you!!!

12 years 5 months ago
  • GENOVA's Avatar
    Topic Author
  • GENOVA
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Licenses:
JomSocial Expired

1 0.0008 139792 {main}( ) ..\index.php:0
2 0.0511 2052496 JApplicationCms->execute( ) ..\index.php:40
3 0.0511 2052584 JApplicationSite->doExecute( ) ..\cms.php:255
4 0.0511 2052680 JApplicationSite->initialiseApp( ) ..\site.php:196
5 0.0637 2553320 JApplicationCms->initialiseApp( ) ..\site.php:620
6 0.0691 2720656 JPluginHelper::importPlugin( ) ..\cms.php:586
7 0.0768 3062816 JPluginHelper::import( ) ..\helper.php:172
8 0.0776 3105144 plgSystemjomsocialredirect->plgSystemjomsocialredirect( ) ..\helper.php:257
9 0.0819 3402768 include_once( 'C:\Users\User\Dropbox\Testumgebung\htdocs\TEKKL\components\com_community\libraries\core.php' ) ..\jomsocialredirect.php:34
10 0.1190 4086056 CAssets::attach( ) ..\core.php:1619
11 0.1454 4792408 CTemplateHelper->getTemplateAsset( ) ..\core.php:945
12 0.1454 4792656 CTemplateHelper->getFile( ) ..\template.php:190
13 0.1454 4792680 CTemplateHelper->getSources( ) ..\template.php:103
14 0.1454 4792720 CTemplateHelper->getOverrideTemplatePath( ) ..\template.php:93

12 years 5 months ago
Licenses:

Hi, GENOVA.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 5 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

I just addded this to our buglist

thank you

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