?
avatar Quetzalthefirst
Quetzalthefirst
11 Jan 2016

Please can you read this : http://forum.joomla.org/viewtopic.php?p=2662700

and apply the patch on futur release!

Thank you

Steps to reproduce the issue

Just assign template by default and one template assign to a particular menu item. And SEF option "on" in global gconfig.

Expected result

The default template for all menu except for the one assign to particular template.

Actual result

Default template on all menu even for the one assigned

System information (as much as possible)

jommla 3.4.8

Additional comments

I have try it on joomla < 3.4.6 and all work fine. But after updating joomla the fix was goes (normal, fix was not apply in joomla! )

So, can you put them in futur release.

avatar Quetzalthefirst Quetzalthefirst - open - 11 Jan 2016
avatar brianteeman
brianteeman - comment - 11 Jan 2016

I can NOT confirm this "issue" As can be seen from the attached screenshots I had no problem assigning a different template to one menu item.

Template assigned

uett

Default is protostar

n ex

Assigned is beez to contacts menu

brr9

avatar bertmert
bertmert - comment - 11 Jan 2016

I cannot replicate issue but:

This issue was reported some days ago in a German forum.
Several supporters tested if they can replicate the issue.
2 couldn't (relatively new installations).
2 could (older installations updated step by step over the years and the error ocurred somewhere between 3.4.5 and 3.4.8).
1 could but was not sure if reason is a custom plugin (something like a template framework)..
((I'm not native german. I hope I translated the results correctly.)

@Quetzalthefirst
Did you already test without SEF?
Did you already deactivate plugins (I think mainly system plugins but am not sure)?
Are you using a template framework or have activated one "in the silence"?

avatar brianteeman
brianteeman - comment - 11 Jan 2016

I strongly suspect this is an issue caused by a template framework and is
not a joomla issue. I have seen far too many badly coded templates

On 11 January 2016 at 16:23, bertmert notifications@github.com wrote:

I cannot replicate issue but:

This issue was reported some days ago in a German forum.
Several supporters tested if they can replicate the issue.
2 couldn't (relatively new installations).
2 could (older installations updated step by step over the years and the
error ocurred somewhere between 3.4.5 and 3.4.8).
1 could but was not sure if reason is a custom plugin (something like a
template framework)..

@Quetzalthefirst https://github.com/Quetzalthefirst
Did you already test without SEF?
Did you already deactivate plugins (I think mainly system plugins but am
not sure)?
Are you using a template framework or have activated one "in the silence"?


Reply to this email directly or view it on GitHub
#8878 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar bertmert
bertmert - comment - 11 Jan 2016

@brianteeman
After some investigations together with a friend (from the German forum) we think you're right!
A too early getTemplate() call by plugins before routing or something.

avatar Solinfo
Solinfo - comment - 12 Jan 2016

Test qwithout SEF... Yes... Bug Yes...
All plugin desactivate yes... Bug yes
the template is YouTheme... So you can test on it to find the bug...

I think that joomla must be sufficiently idiot proof to by pass bad coding in template!!!

avatar infograf768
infograf768 - comment - 12 Jan 2016

I think that joomla must be sufficiently idiot proof to by pass bad coding in template!!!

Bad coding is bad coding... When a template, specially those with their own framework, is overriding Joomla defaults, then the responsible IS the template and not Joomla!

avatar Bakual Bakual - close - 12 Jan 2016
avatar Bakual
Bakual - comment - 12 Jan 2016

I think that joomla must be sufficiently idiot proof to by pass bad coding in template!!!

We tried, but it turned out the bad coding practices always win. There is some responsibility on the other side as well.

Closing as not a core issue.

avatar Bakual Bakual - change - 12 Jan 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-01-12 11:09:58
Closed_By Bakual
avatar Bakual Bakual - close - 12 Jan 2016
avatar Solinfo
Solinfo - comment - 12 Jan 2016

But the fix is available and IN core file of joomla ! Why dont implement it ?

avatar brianteeman
brianteeman - comment - 12 Jan 2016

A better question would be why is yootheme writing invalid code and selling
it to you

On 12 January 2016 at 13:38, Normand Brousseau notifications@github.com
wrote:

But the fix is available and IN core file of joomla ! Why dont implement
it ?


Reply to this email directly or view it on GitHub
#8878 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar bertmert
bertmert - comment - 12 Jan 2016

But the fix is available and IN core file of joomla ! Why dont implement it ?

Because it's crap (sorry). We've tested it yesterday with 6 testing sites and 2 crashed. These 2 sites with (too) many extensions installed didn't have any problems concerning template styles before hacking it.
On the other hand we needed just 4h to bugfix our badly programmed custom system plugins and found 3 basic solutions to avoid this error. Just had to think a while ;-)

avatar Solinfo
Solinfo - comment - 13 Jan 2016

Brianteeman... It's a really good question... Answer too is simple he want cash... ;) I'm not one who bought the template initially ... I'm just caught up with!

Bertmert : I'm not one who code the fix..I just found it on joomla forum. I don't test it on many website nor I have found many site with the bug. But if I remember, youtheme is not the only one with this bug (initial coder of the fix dont have youtheme i think).

So instead of having a sterile debate on "who's fault" or "who has the worst coding habits," can we have an indication of what causes the problem and where to look for the solution

avatar bertmert
bertmert - comment - 13 Jan 2016

@Solinfo
To clarify: In our case the problems occured also by custom system plugins that have nothing to do with template frameworks. Any plugin could provoke this issue.

We found our buggy extensions with this debug code that a friend provided here:
http://www.joomlaportal.de/joomla-3-x-templates-und-design/323793-templatewechsel-seit-jommla-version-3-4-8-den-webs-nicht-mehr-verf-gbar-4.html#post1613060

Output of debug code is the first file that calls getTemplate().

50:50 chance.

Main problem like very often: Nobody is willing to test to make further investigations possible. Nobody provided detailed informations about extensions.

Because this is not a forum here, try to contact the guy at the German forum. I will tell him. I will help him to translate your message.
Normally he doesn't answer on private messages. So, just a maybe. His decision.

avatar Bakual
Bakual - comment - 13 Jan 2016

It's simple, any plugin which tries to do something with templates in the onAfterInitialise event is bound to fail. They have to do the stuff in the onAfterRouter event (or later) because only there the routing is done and the template specified.
So it's not a question about whos fault it is. That one is clear. The plugin wants to do something during an event where the needed information isn't available yet. The "fix" proposed in the forum would do the routing earlier, which likely breaks stuff elsewhere. The real fix is that the plugin should use the proper event.

Add a Comment

Login with GitHub to post a comment