We help IT Professionals succeed at work.

User Reg page pops message box "Calendar.setup: Nothing to setup..."

CodeOn
CodeOn asked
on
Lately my site has been hit with this problem - when clicking on 'Create an Account' on the login form one is redirected to the account registration page but first this message box pops up saying "Calendar.setup: Nothing to setup (no fields found). Please check your code"
Any help on fixing this would be greatly appreciated. Thanks.
Comment
Watch Question

Panagiotis Sweb developer - designer
BRONZE EXPERT

Commented:
do you use any component, module for this ?

Author

Commented:
No. This was the generic reg form that came with Joomla 1.7. Initially,  when I set up the site it was working fine. The problem cropped up later - after I had added several extensions for various other features. Unfortunately I didn't do them one by one after taking a backup so I can't pin-point exactly which one may have caused the problem.
Panagiotis Sweb developer - designer
BRONZE EXPERT

Commented:
something with a calendar

try to find in the modules folder the one that you dont use and delete it
sometimes when you unistall a module not all the files of it are deleted

take a backup before

Author

Commented:
Already done that.
Panagiotis Sweb developer - designer
BRONZE EXPERT

Commented:
see if you have any plugin anable

Author

Commented:
The ones I'm using are enabled.
Panagiotis Sweb developer - designer
BRONZE EXPERT

Commented:
do u have a link?

Author

Commented:
www.am-top.org

Click on 'Create and account'
Panagiotis Sweb developer - designer
BRONZE EXPERT

Commented:
i dont think that this is the generic form, you are probably using a component for that
see in your components

Author

Commented:
The url when going to this page contains '~/component/users/?view=registration'. I looked under the components/com_users folder. Firstly I didn't see anything in any of the .php files that that looked like a ref to a 'calendar' function. Secondly they all show the copyright as being owned by 'Open Source Matters' which I thought was the Joomla organization - that's why I assumed it was the generic component.

BTW, thanks for taking an interest in helping out with this.
Hi CodeOn

you are definately not using the standard create account page as the standard one looks like the screen shot attached, if you go into the administrator panel and mouse over the components menu, can you list all the components?

Thanks
Screen-Shot-2011-11-07-at-7.59.3.png

Author

Commented:
I'm using Joomla 1.7. Does the standard create account page look the same there too? I do have K2 installed so could it be taking over the user reg functionality?
In any case suppose I am able to determine that it's not the standard reg functionality how does this help in solving the problem?

Author

Commented:
Here's the list of components.
amtop-components.doc
Hi CodeOn

if it is not the standard reg functionality then the fix would normally be different(different features = different code and different files to change)

however this looks to be more a them coding issue, it is a generic joomla error that you are getting by the looks of things, have a look at this answer from the joomla forum that looks at your java script

I fixed this error by deleting the JavaScript and php code of "Calendar.setup" in:

root/includes/js/jscalendar-1.0/calendar-setup_stripped.js
root/libraries/joomla/html/html.php - in line 285-292
root/libraries/joomla/template/tmpl/calendar.html - in line 30-38
root/media/system/js/calendar-setup.js

but the main problem is the JavaScript, if u use some sort of JavaScript in you're template there will be a possibility that this error might happen.
In my case i created the template and used some fancy script, by deleting the "Calendar.setup" scripts i get another error in IE7:


source

http://forum.joomla.org/viewtopic.php?f=431&t=253745

there are also one or 2 more fixes listed there, just remember to backup before you go ahead and delete files

Author

Commented:
Thanks for the lead tyronenoel. Somewhere on the Joomla forums I had seen mention of a resolution to this by switching templates. I tried that and, sure enough, the problem disappeared.
I would, however, like to understand the underlying issue here so I'll follow the leads you provided. Thanks again.

Author

Commented:
OK. I believe I've managed to fix this.
I went into [root]/libraries/joomla/html/html.php and commented out the code that actually invokes the Calendar.setup function (lines 757-770). Not sure if this is going to break anything else though...time will tell. So far all seems well.
Thanks to tyronenoel.

Author

Commented:
Provided the lead to the correct source files to edit.
perfect thank you, atleast you were able to resolve the issue