Events Problem

cyber81 11 Apr, 2016
Hi to all, on the tab Designer - > Event there's a problem; the system do not show any option...
I attach an image to describe the problem.. naturally there is this problem after Joomla upgrade. NOW the version is Joomla 3.5.1

Some idea?

antonio
GreyHead 12 Apr, 2016
Hi Antonio,

There is a Bug. I'm travelling this week and can't do anything to find a fix. please ask Max, the developer, to take a look by sending him a message through the Contact Us menu above.

Bob
joelions2 19 Apr, 2016
Any update? The software is unusable at the moment in sites I already have it in and I am having to look elsewhere for a form plugin for new sites....
GreyHead 19 Apr, 2016
1 Likes
Hi joelions2,

I don't know if Max replied to Antonio - I'm back at my desk now and will see if I can work out where the bug is.

Bob
omidhz 24 Apr, 2016
1 Likes
I have the exact problem too. Any help will be much appreciated.
coughlin 27 Apr, 2016
1 Likes
This is a huge problem; a very important form is currently somewhat crippled until I can add necessary events.
GreyHead 29 Apr, 2016
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
cyber81 01 May, 2016
It doesn't Work for me😟
cyber81 01 May, 2016
1 Likes

It doesn't Work for me😟



Ooops I'm Sorry, It's OK! It works!!!
sgosset 05 Jul, 2016
Thanks for this fix attempt.

I am using Joomla3,5,1 with PHP 7,0,0. I changed from the Isis template (configured to avoid infinite "loading loop") to hathor and reverted to PHP 5,6. I changed the code line as per your suggestion.

Nothing works : I still have a big light brown bar instead of the events in the designer's tab.

I suppose I am not the ony person to have this problem.

Any clue ?

Thanks in advance,
Serge
GreyHead 05 Jul, 2016
Hi Serge,

I just checked with Joomla! 3.5.1 + PHP 7 + Hathor template and I can see and use the Events tab with no problem. Same with the Isis template to my surprise, and with Isis 3.

Also checked on Joomla! 3.5.1 + PHP 5.6 + Isis, Isis3 and Hathor template with no problems.

Please post the code snippet that you edited so I can chaeck.

Bob
drnusi76 19 Jun, 2018
Hi how can I download CEGCore framework
GreyHead 20 Jun, 2018
Hi drnusi76,
​
I'm not sure that it is available for separate download but if you download and install the latest release of ChronoForms v5 or v6 - whichever you are using - then the framework will be updated too,
​
Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger