Hi,
I think I have found the problem.
In the file /administrator/components/com_chronoforms5/chronoforms/chronoforms.php around line 87 is this code that sets the events
$jsevents = \GCore\Libs\Folder::getFiles(dirname(__FILE__).DS.'events'.DS);
foreach($jsevents as $k => $jsevent){
$jsevents[$k] = str_replace(dirname(__FILE__).DS.'events'.DS, '', $jsevent);
if( strpos($jsevent, '.') !== false ) { // this line is the problem
unset($jsevents[$k]);
}
}
$this->set('jsevents_types', $jsevents);
The marked line is checking for a . in the file path to eliminate the index.html and event.php files in the folder - but it also trips if there is a . elsewhere in the path e.g. in a domain name.
This version appears to work correctly, the change is just in the one line:
$jsevents = \GCore\Libs\Folder::getFiles(dirname(__FILE__).DS.'events'.DS);
foreach($jsevents as $k => $jsevent){
$jsevents[$k] = str_replace(dirname(__FILE__).DS.'events'.DS, '', $jsevent);
if( strpos($jsevents[$k], '.') !== false ) { // change this line
unset($jsevents[$k]);
}
}
$this->set('jsevents_types', $jsevents);
Bob