[solved] Joomla is not defined

More
9 years 1 day ago - 9 years 1 day ago #53952 by kath2015
hi there,

[my problem]
i get "ReferenceError: Joomla is not defined" on my category pages.
my single-item-pages do not have that error.

i read www.flexicontent.org/forum/21-troublesho...fined-in-script.html , and i looked for /media/system/js/script.js, but that file does not exist.

[my setup]
joomla 3.4.1
FC 2.2.1 rc

my html-head up to the error looks like this:
---
<head>
<base href="[...]" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="[...]" />
<meta name="Author" content="[...]" />
<meta name="dcterms.rightsHolder" content="[...]" />
<meta name="revisit-after" content="[...]" />
<meta name="generator" content="[...]" />
<title>[...]</title>
<link href="[...]" rel="canonical" />
<link href="/j/templates/ba/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<script src="/j/components/com_flexicontent/assets/js/tmpl-common.js" type="text/javascript"></script>
<script type="text/javascript">
var _FC_GET = [];
</script>
<script type="text/javascript">
(function() {
Joomla.JText.load({"FLEXI_APPLYING_FILTERING":"Filter anwenden","FLEXI_TYPE_TO_LIST":"... Typ f\u00fcr Liste","FLEXI_TYPE_TO_FILTER":" ... Typ f\u00fcr Filter"});
})();
</script>
[...]
---

what can i do to kill that error (and how did it happen)?
thanks a lot!

kath :)
Last edit: 9 years 1 day ago by kath2015.

Please Log in or Create an account to join the conversation.

More
9 years 1 day ago #53953 by kath2015
Replied by kath2015 on topic Joomla is not defined
solved/quickfixed it in my main template's head:
after
<jdoc:include type="head" />
i inserted:
<?php
$doc =& JFactory::getDocument();
$doc->addScript($this->baseurl.'/media/system/js/core.js');

no idea, why this happened, and if this is a good fix(?)
kath

Please Log in or Create an account to join the conversation.

More
9 years 5 hours ago #53976 by ggppdk
Replied by ggppdk on topic Joomla is not defined
Hello

this will load together with mootools, did you disable mootools loading ?

Joomla's translation inside javascript still depend on it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #54009 by kath2015
Replied by kath2015 on topic Joomla is not defined
ah, interesting..
well, i don't know for sure, but this is in my main template's head tag:

/* The following line loads the MooTools JavaScript Library */
JHtml::_('behavior.framework', true);

before <jdoc:include type="head" />

where else could i disable/enable loading of mootools?

thanks a lot! kath

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.304 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline