-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu item specific template style is not working #16805
Comments
Can you post a stack trace with the first call to the |
#0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/components/com_adsmanager/lib/core.php:106] #0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/libraries/cms/html/html.php:359] #0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/libraries/cms/html/html.php:359] #0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/libraries/cms/html/html.php:359] #0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/libraries/juloalib/Lib.php:280] #0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/libraries/juloalib/Lib.php:280] parseSefRoute 1parseSefRoute 6parseSefRoute 8parseSefRoute 10parseSefRoute 13parseSefRoute 14parseSefRoute 15#0 JApplicationSite->getTemplate() called at [/var/www/html/joomla/plugins/system/t3/includes/core/t3.php:280] |
Uninstalling com_adsmanager solves the issue! Thanks a lot! |
Each of those stack traces tells me that the joomla-cms/libraries/cms/application/site.php Line 165 in bcfbfa0
joomla-cms/libraries/cms/component/helper.php Line 308 in bcfbfa0
So, they need to change where their media is being loaded. |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16805 |
closed as no Core Issue. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16805. |
Hello, I'm the author of AdsManager. I confirm that the issue was due to a old version of AdsManager. The bug appears with adsmanager < 3.1.7 and Joomla 3.6.3 + You should always used latest version of third party component. for bug fixes. and when upgrading to recent joomla version, it's also important to be sure to don't have any regression. |
Glad to hear this is resolved |
Steps to reproduce the issue
Version 3.7.2 (we are trying to update to it from 3.6.2)
Put a default template.
Choose a Menu item and put another template as its template style.
Using SEF for the site.
Expected result
When accessing the menu item alias, it should change the template to the one assigned to the menu item.
Actual result
Only the default template is displayed.
System information (as much as possible)
Additional comments
Debugging the code, it seems that the getTemplate function at libraries/cms/application/site.php is being called BEFORE the parseSefRoute function at /libraries/cms/router/site.php.
But for the getTemplate function to work properly it depends on the parseSefRoute function having already assigned what is the active Menu Item.
The text was updated successfully, but these errors were encountered: