Forums

Form wizards not showing properly

TwoArmedBandit 18 Sep, 2011
Hi

After a successful test on my sandbox site, I decided to upgrade the CF installation on my production site. Unfortunately the Wizards are not loading properly now it's installed on the main site, I've tried IE9 and Firefox.

My sandbox site (where V4 works ok) is on a different host. I've been trying loads of stuff on that copy of the site recently so I took another copy of the main site and restored it to the same host as the sandbox site. The error with the wizards is still present on this copy of the site.

The 'New Form' option works ok in all installations. I've added a screen grab of what I get when I try to use the wizard.
GreyHead 18 Sep, 2011
Hi TwoArmedBandit,

Looks like a problem with the MooTools library version. Are you on Joomla! 1.5? If so you need the MooTools Upgrade plug-in enabled.

Bob
TwoArmedBandit 18 Sep, 2011
It is enabled. Weird.

I've just uninstalled and re-installed and it seems to work now, on the Sandbox copy. Hopefully the same will work on production....
TwoArmedBandit 19 Sep, 2011
I've just found out what causes this.

The form wizards work fine until I add the custom code folder email_gh to my administrator/components/com_chronoforms/form_actions directory. As soon as I do this the Wizard is broken. Remove it again and the Wizard is fixed.

I've tried this on my production site, and a recent copy of the production site on another server. The same happens on both.

This is odd because adding the email_gh folder to another (older) copy of the site - which has had lots of changes applied during testing - does not have the same effect.
GreyHead 19 Sep, 2011
Hi TwoArmedBandit,

Which version of Joomla! are you using?

The action was originally written for Joomla! 1.5 and that could give you this problem.

I installed a copy in Joomla! 1.7 earlier today and that seems to be OK.

I'll update the download version in the morning (getting on for midnight here).

Bob
TwoArmedBandit 19 Sep, 2011
All (three!) copies of the site are running 1.5.23
Mootools upgrade is enabled. On all also.

Thanks for your prompt reply. I'm heading for bed too. Let's pick this up tomorrow.
GreyHead 20 Sep, 2011
Hi TwoArmedBandit,

Thank you. I found the bug and fixed it on the eqlsept site. The fix is to edit administrator/components/com_chronoforms/form_actions/email_gh/email_gh.ctp and add a line around line 46
$doc =& Jfactory::getDocument();
$doc->addScriptDeclaration($script);
jimport('joomla.filesystem.file'); // <-- add this line
if ( JFile::exists(JPATH_SITE.DS.'media'.DS.'editors'.DS.'tinymce'.DS.'jscripts'.DS.'tiny_mce'.DS.'tiny_mce.js') ) {
	$doc->addScript(JURI::root().'media/editors/tinymce/jscripts/tiny_mce/tiny_mce.js');
} else {
	$doc->addScript(JURI::root().'plugins/editors/tinymce/jscripts/tiny_mce/tiny_mce.js');
}
Usually JFile is loaded by something else but it seems that it isn't happening here :-(

Bob

PS I installed exTplorer to edit the file (NB to edit .ctp files you have to rename them by adding a .php suffix, do the edit, then revert to the correct name).

PPS I've updated the download at greyhead.net
TwoArmedBandit 20 Sep, 2011
Thanks for that. I'll take a look later on and report back.

Beer will be with you soon if we're all sorted - I appreciate your commitment.
This topic is locked and no more replies can be posted.