CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • [solved] Event location form disappeared, unable to fill in or change event loc.
Pages: [1]

Author Topic: [solved] Event location form disappeared, unable to fill in or change event loc.  (Read 730 times)

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
[solved] Event location form disappeared, unable to fill in or change event loc.
July 25, 2012, 01:34:01 am
Hello,

in a current installation the page for filling in the location for a new event and/or changin the location for an existing events remains blank, except of header, tabs and footer (the standard frame around content). This means, that there is no way to handle the location information, because not only one field is shown.

Looking at the HTML code in the 'blank' region, there is following code (exactly between the closing ul for tabs an opening div for the footer )

Code: [Select]
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="Informationen_und_Einstellungen"></div><div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="Event_Location">
           


  <div><input name="id" value="74" type="hidden">
<input name="address[1][master_id]" value="" type="hidden">
<input name="contact_select_id[1]" value="" type="hidden">
<input name="cancelURL" value="/civicrm/event/manage?reset=1" type="hidden">
<input name="_qf_default" value="Location:upload" type="hidden">
<input name="MAX_FILE_SIZE" value="4194304" type="hidden">
<input name="is_template" value="0" type="hidden">
</div>




    </div><div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="Gebühren_deaktiviert"></div><div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="Online_Registrierung_deaktiviert"></div><div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="Schedule_Reminders"></div><div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="Einem_Freund_weitersagen_deaktiviert"></div><div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="Personal_Campaigns"></div>
</div>


<script type="text/javascript">
   var selectedTab = 'EventInfo';
   selectedTab = "location";   var spinnerImage = '<img src="/sites/all/modules/civicrm/i/loading.gif" style="width:10px;height:10px"/>';

//explicitly stop spinner
function stopSpinner( ) {
 cj('li.crm-tab-button').each(function(){ cj(this).find('span').text(' ');})
}

    cj( function() {
        var tabIndex = cj('#tab_' + selectedTab).prevAll().length
        cj("#mainTabContainer").tabs( {
            selected: tabIndex,
            spinner: spinnerImage,
            select: function(event, ui) {
                // we need to change the action of parent form, so that form submits to correct page
                var url = cj.data(ui.tab, 'load.tabs');
               
                    var actionUrl = url.split( '?' );
                   
                      var actualUrl = actionUrl[0];
                   
               

                cj(this).parents("form").attr("action", actualUrl )

                if ( !global_formNavigate ) {
                    var message = 'Confirm\n\nAre you sure you want to navigate away from this tab?\n\nYou have unsaved changes.\n\nPress OK to continue, or Cancel to stay on the current tab.';
                    if ( !confirm( message ) ) {
                        return false;
                    } else {
                        global_formNavigate = true;
                    }
                }
                return true;
            },
            load: function(event, ui) {
            stopSpinner();
            if ((typeof(Drupal) != 'undefined') && Drupal.attachBehaviors) {
            Drupal.attachBehaviors(ui.panel);
            }
            }
        });
    });

</script>

<div class="clear"></div>
</div>

<script>

cj('body').click(function() {
cj('#crm-event-links-list').hide();
cj('#crm-participant-list').hide();
});

cj('#crm-event-links-link').click(function(event) {
cj('#crm-event-links-list').toggle();
cj('#crm-participant-list').hide();
event.stopPropagation();
});

cj('#crm-participant-link').click(function(event) {
cj('#crm-participant-list').toggle();
        cj('#crm-event-links-list').hide();  
event.stopPropagation();
});

</script>

</form>

<script type="text/javascript">
cj( function( ) {
    cj("#Location").validate({ 'errorClass': 'crm-error'});
});
</script>

The installation was upgraded from 4.0.5 to 4.1.2 six month ago. Nobody recognized this, because events were not touched for a while.

I found a similar error description with no solution for this
http://forum.civicrm.org/index.php/topic,23473.msg98610.html#msg98610

Any idea what could cause this?

Any ideas how to debug or trace this?  ::)
I don't know how to start and where to begin the hunt for the bug.  ???

« Last Edit: August 02, 2012, 07:25:42 am by damaxl »

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
Re: Event location form disappeared, unable to fill in or change event location
July 28, 2012, 07:28:52 am
Today I tried to solve this problem with debugging options of CiviCRM, described in http://book.civicrm.org/developer/development-environment/debugging

So I switched on aktivate debugging and trace back in Administer > System Settings > Debugging with no success. Nothing was logged.

Next step was to change the form template for location date at ...
<civicrm root>/templates/CRM/Event/Form/ManageEvent/Location.tpl
... to see if it is called. I put in a div with some text. Unfortunately the text wasn't shown in the browser.
To verity if it was right what I was doing, I tried this in a test system and there it was shown.

To find out who calls Location.tpl, I looked at the HTML code in a functioning system and saw, that there was following comment
Code: [Select]
<!-- .tpl file invoked: CRM/Event/Form/ManageEvent/Tab.tpl. Call via form.tpl if we have a form in the page. -->
But I couldn't find where Location.tpl is called. There is no call in Tab.tpl and there ist no form.tpl and now I don't know how to go on.

Any hints somebody?
« Last Edit: July 29, 2012, 02:38:01 am by damaxl »

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
Re: Event location form disappeared, unable to fill in or change event location
August 02, 2012, 07:24:45 am
I had a kind of devine inspiration today  ::) and removed all files and directories in the template cache under <drupal root>/sites/default/files/civicrm/templates_c/en_US/de_DE. And this was the solution. Everything is working again as expected.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • [solved] Event location form disappeared, unable to fill in or change event loc.

This forum was archived on 2017-11-26.