Hello,
I originally designed my chronoform on test.mydomain.com. I recently moved the domain to www.mydomain.com and after that, it seems that SOMEWHERE the test. is still being referenced as can be seen in javascript errors.
So I opened up phpmyadmin and exported the database and searched through the database for the reference of test and could not find anything. I cleared ALL caches through Joomla because I found the test reference in the /cache directory. So i figured that it should be resolved as it was probably a cache but it is STILL doing it and if I check the cache it is there again.
any ideas?
Thanks
Brett
Hi Brett,
No obvious suggestions - I think that the core code is quite good at using the constants and code that makes it domain independent. Do you have any custom code in the form - Load JavaScript File for example where the domain might be hard-coded?
Which files are showing the errors - that might give a clue?
Bob
Hi Bob,
Thanks for replying I grepped the entire directory for the words test.mydomain and the only place it found something was in the cache folder so I know it's not a parameter setting in any config files. As mentioned before I also exported the database and checked that too. So I'm totally confused.
Hi Brett,
It could still be Custom code in a form - the form data is saved in the database in a base64 encoded string so a search wouldn't show it up.
Bob
I found the URL. Thanks Bob. It was in the load javascript event.
That is fixed now but the form is still not sending out the actual mail and saying it is successful.
If I run the test form to check if the form is working, it doesn't load all the fancy shmancy mouseovers and things but the form works and send the mail.
If I load it from the website itself, the form doesn't send the mail and say successful. So I'm again at a loss here.
I hope you don't mind but I have PM'd you the link to the site.
Hi Brett,
That's fine, I'll take a look, probably in the morning as it's late now over here.
Bob
That's perfectly fine. Thanks Bob.
Hi Brett,
I guess that's because the menu isnβt assigned by default. A couple of choices there you can either redirect to a 'Thank you' article; or you can set a Hidden Menu for the On Submit page as described in the FAQ I linked to (I'd probably do that).
The 'more updating' comment was because you rarely see MooTools on a Joomla! 3 site unless it's a hangover from some earlier version of a template or component. I didn't dig any deeper than a quick glance at the files that are being loaded but I wondered if the template had been upgraded to a j3 version.
Bob
Really appreciate everything but if I want to redirect to a Thank you article, can I have two articles? one for each language? and how do I set that up exactly? Is there a tutorial on how to do this?
and where exactly would i put that custom code?
Hi bstrydom,
". . . a Custom Code action instead of the ReDirect action . . ." Drag one over to the same location in the On Submit event, drag it up before the ReDirect action and add the code to it. Once it works you can delete the ReDirect action.
Bob
Whats also interesting is that I have another article that I display in the EXACT same way with the exact same menu layout option and that article shows the correct menu.
I have compared the two menu items and two articles and every option is identical except for the category assignment which differs. This is baffling me
Hi bstrydom,
Sorry I don't have any suggestions about the menu settings :-(
Bob
I figured I would provide the fix in case someone else needs it in future.
I use a rockettheme template.
The problem was due to an assignment checkbox of that menu item in the template settings itself.
So I went to Extensions -> templates
select the relavant language template and proceed to the Assignments section. then enable that menu item on that page.