Forums

modChronoFormsHelper not found

ksignorello 21 Apr, 2012
Hi I'm trying to use the chrono for module for the first time and when trying to display a form on my home page I'm getting this message:

Fatal error: Class 'modChronoFormsHelper' not found in /home/vtphoto/public_html/modules/mod_chronoforms/mod_chronoforms.php on line 8

The home page does not display.

Little Help . . .
GreyHead 21 Apr, 2012
Hi ksignorello,

Is there a helper.php file in the modules/mod_chronoforms/ folder - it should have 33 lines of code in it.

Bob
ksignorello 21 Apr, 2012
Yes the file is there and does have 33 lines in it. (it's not double spaced like this when look at it with notepad):
<?php

// no direct access

defined('_JEXEC') or die('Restricted access');



//load chronoforms classes

if(file_exists(JPATH_SITE.DS.'components'.DS.'com_chronoforms'.DS.'chronoforms.html.php') && file_exists(JPATH_SITE.DS.'components'.DS.'com_chronoforms'.DS.'libraries'.DS.'chronoform.php')){

	require_once(JPATH_SITE.DS.'components'.DS.'com_chronoforms'.DS.'chronoforms.html.php');

	require_once(JPATH_SITE.DS.'components'.DS.'com_chronoforms'.DS.'libraries'.DS.'chronoform.php');



	class modChronoFormsHelper {

		function _displayForm($formname){

			$form = CFChronoForm::getInstance($formname, true);

			if(empty($form->form_name)){

				return "There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management.";

			}

			$loaded_form = JRequest::getVar('chronoform');

			if(!empty($loaded_form) && (trim($loaded_form) != $form->form_name)){

				$event = '';

			}else{

				$event = JRequest::getVar('event');

			}

			if(empty($event)){

				$event = 'load';

			}

			$form->process($event);

			ob_start();

			HTML_ChronoForms::processView($form);

			$output = ob_get_clean();

			return $output;

		}

	}

}

?>
GreyHead 21 Apr, 2012
Hi ksignorello,

Hmmm that looks correct - the spacing isn't a problem. The mod_chronoforms.php file must be correct as you are getting the error from line 8.
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the whosonline functions only once
require_once (dirname(__FILE__).DS.'helper.php');

$formname = $params->get('chronoform', '');
echo $formcode = modChronoFormsHelper::_displayForm($formname);
?>

I'm a bit baffled after that :-(

Bob
ksignorello 25 Apr, 2012
That makes two of us. I'm trying to display it in a right side location in my JSN Epic template.

Ken
Max_admin 27 Apr, 2012
Hi Ken,

Which Chronoforms "Component" do you have installed ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 28 Apr, 2012
Hi,

I need the "Component" version please, you have posted the module's one.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
sandersm 21 Oct, 2013
My version is Chronoforms_V4_stable_J1.5. I am getting this error, too. Any ideas?
Max_admin 22 Oct, 2013
Hi,

Please uninstall the module then install it again, make sure that the module file name has "J1.5" ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.