• The Events Calandar was working fine until i added the plugin ‘Eventbrite’. It opens up, pauses, and i get a error message:

    Message from webpage
    Out of memory at line: 38

    Any help is greatly appreciated.

    M

Viewing 5 replies - 1 through 5 (of 5 total)
  • I receive the same “Out of memory at line: 38” error in Internet Explorer 8. When I switch to Firefox 3.5.11 I do not get the error.

    * Operating System : Linux (32 Bit)
    * Server : Apache/2.2.12 (Ubuntu)
    * Memory usage : 23.74 MByte
    * MYSQL Version : 5.1.37-1ubuntu5.4
    * SQL Mode : Not set
    * PHP Version : 5.2.10-2ubuntu6.5
    * PHP Safe Mode : Off
    * PHP Allow URL fopen : On
    * PHP Memory Limit : 32M
    * PHP Max Upload Size : 30M
    * PHP Max Post Size : 20M
    * PCRE Backtracking Limit : 500000
    * PHP Max Script Execute Time : 30s
    * PHP Exif support : Yes ( V1.4 )
    * PHP IPTC support : Yes
    * PHP XML support : Yes

    oops WordPress 3.0.1

    Bump. Also getting this problem in IE8 after adding EventBrite to the Events Calendar. Seems to prevent users from editing event properties too (presumably the script terminates at that point.)

    The problematic code seems to be:

    in views/eventbrite-meta-box-extension.php:

    original code:

    // hide/show additional payment option fields
    
    	var ebTecAcceptPaymentInputs = jQuery('#eb-tec-payment-options-checkboxes input');
    	function ebTecShowHideAdditionalPaymentOptions(event) {
    		if(event) {
    			ebTecAcceptPaymentInputs.change(function() {
    				var divIndex = ebTecAcceptPaymentInputs.index(this) + 1;
    				if(this.checked) jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideDown(200);
    				else jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideUp(200);
    			});
    		} else {
    			jQuery.each('#eb-tec-payment-options-checkboxes ~ #eb-tec-payment-options div', function() {
    				var thisInput = jQuery(this).find('input');
    				if(thisInput.val() != null) thisInput.closest('div').slideDown(200);
    			});
    		}
    	}
    	ebTecShowHideAdditionalPaymentOptions();
    	ebTecAcceptPaymentInputs.bind('click', ebTecShowHideAdditionalPaymentOptions);

    And this seems to fix it:

    new code:

    // hide/show additional payment option fields
    	var ebTecAcceptPaymentInputs = jQuery('#eb-tec-payment-options-checkboxes input');
    
    	// initially show payment option fields that aren't blank.
    	function ebTecShowHideAdditionalPaymentOptions() {
    		jQuery('#eb-tec-payment-options-checkboxes ~ #eb-tec-payment-options div').each(function() {
    			var thisInput = jQuery(this).find('input');
    			if(thisInput.val() != null) thisInput.closest('div').slideDown(200);
    		});
    	}
    	ebTecShowHideAdditionalPaymentOptions();
    
    	// bind our show/hide function.
    	ebTecAcceptPaymentInputs.change(function() {
    		var divIndex = ebTecAcceptPaymentInputs.index(this) + 1;
    		if(this.checked){
    			jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideDown(200);
    		}
    		else{
    			jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideUp(200);
    		}
    	});

    Also fixes the problem of the payment options not dropping down the first time you click a checkbox (in the original code the show/hide function is only bound to the change event after the first click).

    I think the jQuery.each call is the problem, if you replace it with jQuery(selector).each (which is a different function) it appears to work fine.

    Interested to see if this fixes it for everybody else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Eventbrite for The Events Calendar] Out of memory at line: 38’ is closed to new replies.