Closed Wojton closed 7 years ago
I can't replicate this!
Please make sure that core.js
is loaded in your view!
code I used:
jQuery.ajax({
url: "index.php",
type: "POST",
data:
{
},
dataType: "JSON",
success: function(json){
}, error: function() {
var messages = { "message": ["Message one", "Message two"],
"error": ["Error one", "Error two"]
};
window.Joomla.renderMessages(messages);}
});
I can confirm this issue exists. And since I had not enough time to dive in, I am using a workaround that is making a useless JText:: script()
call in my layouts.
@Wojton please enable Debug mode, and post here the javascript error again?
Is this not caused by not having the system-messages container rendered?
could this also be related to the progressive cache issue like https://github.com/joomla/joomla-cms/issues/16375#issuecomment-305864460 ?
- The JHtml::_('behavior.keepalive'); inside the mod_login template file is not being processed when cache in conservative mode.
it should be fixed with #16488
@Wojton can you please test #16488 if it fixes this Issue & in so close this Issue – thanks.
https://github.com/joomla/joomla-cms/pull/16488 should resolve the js error
But there is the issue of the joomla.jtext
json could not being loaded in certains conditions and that could be the same issue as https://github.com/joomla/joomla-cms/issues/16375#issuecomment-305864460
@Wojton is this used in a module? does this happen with Progressive cache enabled?
If this Issue get no Response, it will be closed at 17th September 2017.
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16217
This has been closed due to lack of response to the requests above – it can always be reopened.
Steps to reproduce the issue
Expected result
Correct system message
Actual result
System information (as much as possible)
Joomla >3.7 (in joomla <=3.6.5 worked)