Buy Now
Sign in

Events Problem

cyber81 , April 11 2016
C
cyber81
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
Attachments
event.jpg
event.jpg
(73.21 KiB)
644 Downloads/Views
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
J
joelions2
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
C
cyber81
Is there any news????
O
omidhz
I have the exact problem too. Any help will be much appreciated.
C
coughlin
Same problem here.
C
coughlin
This is a huge problem; a very important form is currently somewhat crippled until I can add necessary events.
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
C
cyber81
It doesn't Work for me
C
cyber81
"cyber81":
It doesn't Work for me


Ooops I'm Sorry, It's OK! It works!!!
S
sgosset
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
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



ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
D
drnusi76
Hi how can I download CEGCore framework
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much