Welcome, Guest
Username: Password: Remember me
Keyword
  • Page:
  • 1
  • 2

TOPIC: Uncaught ReferenceError: Joomla is not defined

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16687

  • Dean Dunn
  • Dean Dunn's Avatar
  • Offline
  • Junior Boarder
  • Posts: 35
  • Karma: 0
Just adding some jQuery to a client site and noticed the following error on the GAD booking screen:

Uncaught ReferenceError: Joomla is not defined

It references this code in script.js:-

Joomla.tableOrdering = function tableOrdering( order, dir, prefix ) {
// I am overriding Joomla's function to make it support ordering different tabs in a form
var form = document.adminForm;
//alert(prefix+'filter_order');
ctl = prefix+'filter_order';
ctl2 = prefix+'filter_order_Dir';
document.adminForm.elements[ctl].value = order;
document.adminForm.elements[ctl2].value = dir;

if(document.getElementById("current_tab") != null){
switch (prefix)
{
case "req_": { document.getElementById("current_tab").value="0"; break }
case "res_": { document.getElementById("current_tab").value=document.getElementById("resources_tab").value; break }
case "srv_": { document.getElementById("current_tab").value=document.getElementById("services_tab").value; break }
case "ts_": { document.getElementById("current_tab").value=document.getElementById("timeslots_tab").value; break }
case "bo_": { document.getElementById("current_tab").value=document.getElementById("bookoffs_tab").value; break }
case "pp_": { document.getElementById("current_tab").value=document.getElementById("paypal_tab").value; break }
case "an_": { document.getElementById("current_tab").value=document.getElementById("authnet_tab").value; break }
case "2co_": { document.getElementById("current_tab").value=document.getElementById("_2co_tab").value; break }
case "coup_": { document.getElementById("current_tab").value=document.getElementById("coupons_tab").value; break }
case "ext_": { document.getElementById("current_tab").value=document.getElementById("extras_tab").value; break }
}
}
submitform();
}

Im on Joomla 3.2.1 and ABPro 3.0.1.

Thanks,

Dean
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16690

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
? Are you using the current release of 3.0.1 - RC 4 December 2/13?
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16736

  • Dean Dunn
  • Dean Dunn's Avatar
  • Offline
  • Junior Boarder
  • Posts: 35
  • Karma: 0
To be honest, Im not sure. I'll download and install RC4.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16737

  • Dean Dunn
  • Dean Dunn's Avatar
  • Offline
  • Junior Boarder
  • Posts: 35
  • Karma: 0
Checked my downloads and fairly sure it was RC4 I downloaded, to make sure I did a reinstall of RC4 and its still coming up with exactly the same error as listed above.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16740

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
?? Joomla usually defines 'Joomla'

Did some Google'ing
Are you using "Live Site'?
stackoverflow.com/questions/17463000/ref...oomla-is-not-defined

Maybe a template issues, try stitching to the default Joomla template.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16748

  • Dean Dunn
  • Dean Dunn's Avatar
  • Offline
  • Junior Boarder
  • Posts: 35
  • Karma: 0
Found the error - part of your js must still be referencing mootools. I renabled it for just the GAD screen and it is working fine
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16851

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
I renabled it for just the GAD screen and it is working fine
Hi Dean, How did you do that?
I have another customer getting 'Joomla is not defined'.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16852

  • Dean Dunn
  • Dean Dunn's Avatar
  • Offline
  • Junior Boarder
  • Posts: 35
  • Karma: 0
I try to keep my client templates as clean as possible, so try and strip out any unwanted stuff. In my case I'm currently using a MooTools Disabler/Enabler plugin to tune specific menus, its a nice little extension that allows you to disable mootools.js and mootools-more system wide, or just for specific menus items. You can find it here:-

digitaldisseny.com/en/joomla-extensions/...lve-jquery-conflicts

I found my GAD issue by doing a clean Joomla 3 install on Protostar with ABPro. GAD came up okayso I knew it was a template issue.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 7 months ago #16853

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
Thanks Dean.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17195

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Sorry to re-open this post.

I'm not able to load timeslots and bookoffs for each resource or timeslot days via the frontend admin screen and am getting this error also - Uncaught ReferenceError: Joomla is not defined - for the functions changeRequestResourceFilter() and selectDay(). I've loaded the advanced admin screen without template (ie &tmpl=component) and the problem persists. Is this likely a mootools issue or something else? I've tried using the plugin suggested here but to no effect. Any advice appreciated

Cheers
Andrew
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17196

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
What version of Joomla?
What version of ABPro?
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17199

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Ah yes, of course. Sorry about that. j3.2.3 abpro 3.0.2.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17200

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
I've loaded the advanced admin screen without template (ie &tmpl=component) and the problem persists
A better test might be to switch your site to the default template (??)
While &tmpl=component displays no framework, I cannot say that the template is not still influencing the code being run in the screen.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17201

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
I'll give this suggestion a go tomorrow. Unfortunately I've removed the default template so cant do a quick test now. I'll reload it and get back to you with an outcome. Thanks for your speedy response.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17204

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Switching to default template (protostar) does not correct the problem. Additionally, I get similar errors on the Bookings tab when filtering by resources or by status also.

I have done a fresh joomla 3.2.3 install, with protostar template, only Appt Booking pro component installed and the error persists.

I've had a look but I don't know js all that well so I'm really just bumbling around. Any help would be welcome. The test site is at test.staging.wisesites.info superuser=[removed by admin]so feel free to have a look.

Thanks
Andrew
Last Edit: 3 years 5 months ago by Rob.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17205

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
I am not seeing any errors at all, on either from the back-end admin or front-end admin.

There are no bookings in the system so filtering will have no effect, it shows nothing because there is nothing to show.

You do not have a menu to open a booking screen so there is no way to make a new booking.

Your resource is set to use Global timeslots so the timeslots screen will not show the resource in the filter dropdown and front end operators cannot modify global slots, only resource specific ones.
Last Edit: 3 years 5 months ago by Rob.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17208

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
OK. I've added multiple resources, timeslots, bookoffs, bookings (and an add booking link!) to the test site. In bookings, none of the filtering options appear to do anything - dropdowns, date pickers, or search. None of the timeslots or bookoffs are loaded, so there's nothing to filter. I'm using the latest Chrome browser, with the same results in IE11. It's back to you for now Rob. I'll keep doing a bit of trial and error on my customer's dev site and let you know if I stumble on anything. It's a bummer, cos I really need that front end admin for this project and the rest of the component is outstanding and they love the GAD wizard(ry). Let me know if you want sftp access to the files in the test site and I'll set up a pword
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17209

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
You can ftp into the home directory of the test site with user abpro1 and the password provided above
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17210

  • Rob
  • Rob's Avatar
  • Offline
  • Administrator
  • Posts: 3477
  • Thank you received: 517
  • Karma: 77
I don't have much concrete to go on as I am unable to reproduce any problems here.

I have found threads indicating the Joomla not defined can be caused by not having MooTools enabled.
ABPro 3 does not use MooTools (??)

The Joomla team deprecated the MooTools library and may have stopped loading it now (??).

Apparently you can manually load MooTools with
JHtml::_('behavior.framework', true);

You might try adding that to the top of
\components\com_rsappt_pro3\views\advadmin\tmpl\default.php

Also, I saw a reference to a plug-in that allows you to turn on/off MooTools on a page basis.
extensions.joomla.org/extensions/core-en...mance/mootools/22236

I have never used this and cannot comment on its effectiveness.

Also the MooTools thing may be a total red herring, but its the only suggestion I have at this time.
Last Edit: 3 years 5 months ago by Rob.
The administrator has disabled public write access.

Uncaught ReferenceError: Joomla is not defined 3 years 5 months ago #17211

  • Andrew Hacker
  • Andrew Hacker's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
It's the only suggestion Rob.... but it's the one that works!

Adding
JHtml::_('behavior.framework', true);
to \components\com_rsappt_pro3\views\advadmin\tmpl\default.php at line 27 fixed it. Thanks heaps.

I had actually tried the plugin and it didn't help. Perhaps you could add that call to the code for the next release?

Thanks heaps for your help. Hopefully it's the last you'll hear from me!
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.202 seconds

Only Official ABPro site

This is the one and only official site for Appointment Booking Pro.

If you downloaded ABPro anywhere else, you are not supporting ABPro's future. 
Help ensure Appointment Booking Pro is available for you next month and next year.
Support this site. 

Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013


Just thought I'd pass along some positive feedback from my client:
"All of us are excited about our new online booking!! Shanyn & Chelsea said it’s “fun”; even I’m getting the hang of it!  There are still a few glitches so we’re having another meeting on Tuesday - but all of us are thrilled!  Thank you! Thank you!"

The "glitches" they mentioned are all minor and I've tweaked a few settings and answered a few questions to address them. Overall they're very happy. "
Chris C


"Hi, im back 
 After using appbooking pro for 3 years successfully i have tried another booking system for a new site that was more expensive, promised a lot but full of errors and the developers wanted to suck the $$ for every little request.

Anyways, great to be back here "
roll82


"thanks for all the help you have given me over the past few months. We have managed to get the system to work so that multiple businesses around the country can log into our website and manage appointments for their own businesses through the ABPro System."

owen_molloy October 2013