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 . . .
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 . . .
Hi ksignorello,
Is there a helper.php file in the modules/mod_chronoforms/ folder - it should have 33 lines of code in it.
Bob
Is there a helper.php file in the modules/mod_chronoforms/ folder - it should have 33 lines of code in it.
Bob
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;
}
}
}
?>
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.
I'm a bit baffled after that :-(
Bob
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
That makes two of us. I'm trying to display it in a right side location in my JSN Epic template.
Ken
Ken
Hi Ken,
Which Chronoforms "Component" do you have installed ?
Regards,
Max
Which Chronoforms "Component" do you have installed ?
Regards,
Max
mod_chronoforms v. V4 RC3.0
Hi,
I need the "Component" version please, you have posted the module's one.
Regards,
Max
I need the "Component" version please, you have posted the module's one.
Regards,
Max
My version is Chronoforms_V4_stable_J1.5. I am getting this error, too. Any ideas?
Hi,
Please uninstall the module then install it again, make sure that the module file name has "J1.5" ?
Regards,
Max
Please uninstall the module then install it again, make sure that the module file name has "J1.5" ?
Regards,
Max
This topic is locked and no more replies can be posted.