Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter Pete

    (@peezey01)

    Yesss, it worked! Thanks so much for your help ๐Ÿ™‚

    Thread Starter Pete

    (@peezey01)

    Thread Starter Pete

    (@peezey01)

    Thanks Kevin, both fields still come up blank inside Mailchimp. This is the code in my functions.php now:

    
    add_filter( 'yikes-mailchimp-filter-before-submission', 'mc_before_submit_utm_src', 10, 1 );
    
    function mc_before_submit_utm_src( $mc_form_variables ) {
    
    	// Set default
    	$utm_source = '';
    
    	// Check URL $_GET vars for utm_source
    	if ( isset( $_GET['utm_source'] ) && ! empty( $_GET['utm_source'] ) ) {
    		$utm_source = $_GET['utm_source'];
    	}
    
    	if ( isset( $mc_form_variables ) && ! empty( $mc_form_variables ) && isset( $mc_form_variables['UTM_SOURCE'] ) ) {
    		$mc_form_variables['UTM_SOURCE'] = $utm_source;
    	}
    
    	return $mc_form_variables;
    }
    
    add_filter( 'yikes-mailchimp-filter-before-submission', 'mc_before_submit_utm_med', 10, 1 );
    
    function mc_before_submit_utm_med( $mc_form_variables ) {
    
    	// Set default
    	$utm_medium = '';
    
    	// Check URL $_GET vars for utm_medium
    	if ( isset( $_GET['utm_medium'] ) && ! empty( $_GET['utm_medium'] ) ) {
    		$utm_medium = $_GET['utm_medium'];
    	}
    
    	if ( isset( $mc_form_variables ) && ! empty( $mc_form_variables ) && isset( $mc_form_variables['UTM_MEDIUM'] ) ) {
    		$mc_form_variables['UTM_MEDIUM'] = $utm_medium;
    	}
    
    	return $mc_form_variables;
    }
    
    Thread Starter Pete

    (@peezey01)

    Ok thanks!

    Hmm, it doesn’t seem to be working. I added 2 fields (UTM_SOURCE and UTM_MEDIUM) in Easy Forms. And this is the code I added to functions.php

    add_filter( 'yikes-mailchimp-before-submission', 'mc_before_submit_utm_src', 10, 1 );
    
    function mc_before_submit_utm_src( $mc_form_variables ) {
    
    	// Set default
    	$utm_source = '';
    
    	// Check URL $_GET vars for utm_source
    	if ( isset( $_GET['utm_source'] ) && ! empty( $_GET['utm_source'] ) ) {
    		$utm_source = $_GET['utm_source'];
    	}
    
    	if ( isset( $mc_form_variables ) && ! empty( $mc_form_variables ) && isset( $mc_form_variables['UTM_SOURCE'] ) ) {
    		$mc_form_variables['UTM_SOURCE'] = $utm_source;
    	}
    
    	return $mc_form_variables;
    }
    
    add_filter( 'yikes-mailchimp-before-submission', 'mc_before_submit_utm_med', 10, 1 );
    
    function mc_before_submit_utm_med( $mc_form_variables ) {
    
    	// Set default
    	$utm_medium = '';
    
    	// Check URL $_GET vars for utm_medium
    	if ( isset( $_GET['utm_medium'] ) && ! empty( $_GET['utm_medium'] ) ) {
    		$utm_medium = $_GET['utm_medium'];
    	}
    
    	if ( isset( $mc_form_variables ) && ! empty( $mc_form_variables ) && isset( $mc_form_variables['UTM_MEDIUM'] ) ) {
    		$mc_form_variables['UTM_MEDIUM'] = $utm_medium;
    	}
    
    	return $mc_form_variables;
    }
    

    In Mailchimp the fields are called UTM_SOURCE and UTM_MEDUIM.

    And the URL I’m using to sign up is: https://beardstrokings.com/meaningful-conversation-challenge/?utm_source=match&utm_medium=four-qs&utm_campaign=ref

    Cheers,
    Pete

    Thread Starter Pete

    (@peezey01)

    Thanks very much for the response, Kevin!

    Just to clarify, do I add the filter to functions.php?

    Where do I add the function?

    And I don’t quite understand what you mean by:

    • I assumed the $_GET variables name would be utm_source
    • I used the name MY-FIELD-NAME which is just an example โ€“ you will need to find the HTML name for your specific utm_source field

    Thanks again!

    Thread Starter Pete

    (@peezey01)

    Worked like a charm. Thanks!

    Thread Starter Pete

    (@peezey01)

    Thanks for replying!

    I added the following…

    add_action( 'mctb_before_submit_button', function() {
        echo '<input type="hidden" name="SOURCE" id="SOURCE" value="MC4WP TopBar" />';
    });
    
    add_filter( โ€˜mctb_dataโ€™, function( $vars ) {
    $vars[โ€˜SOURCEโ€™] = โ€˜TESTINGโ€™;
    return $vars;
    });

    to functions.php.

    It didn’t work. The ‘Source’ field within Mailchimp is still blank.

    I’ve resolved the issue ๐Ÿ™‚

    This was the response from Mailchimp after discussing the Akamai IP blocking:
    I just got a response back from my colleague after running a special search through Akamai’s logs and here is the information that we were able to gather over the course of logs that were gathered over the past two days.

    Through Akamai’s logging, we were able to gather that there were “brute force” attempts to login to your “WordPress” page. I wouldn’t be able to go into a specific number in regards to these login attempts, but we were able to see that there were many. Additionally, we are seeing that there was a large number of .php extensions that were attempting to gain access across a multitude of non-PHP applications from this IP address. Because we get these logs from Akamai, we wouldn’t be able to go into specifics regarding the names of the applications, but we are able to see this as an error message from their logging.

    Because of the reasons mentioned above, we would need for your web host to change the dedicated IP address for your website in order to avoid this Akamai issue that you are seeing when attempting to use MailChimp for WordPress. I recommend forwarding this email over to your web host as this may help answer some of their questions.

    Response from my web host:
    Your website IP is on a dedicated IP however your MailIP and the IP of the server itself is shared. From the error’s you provided, it appears you are making an API call using cURL. cURL is a command that essentially grabs a files from a remote server. cURL will use the server’s IP to make an outbound connection rather than the websites IP. This being said the best way to resolve this issue is by moving you to another server.

    This most likely happened due to another website on the system becoming compromised. Once the website was compromised a bot or hacker attacked something Akamai was defending and as such Akamai blocked the IP address of your shared server. As such moving you to another shared server is a temporary fix. If you want to prevent this from happening again I strongly recommend upgrading to a VPS plan. In a VPS your server IP is your own. This means that another account can’t effect your website’s functionality or email.

    They moved my website to another server and everything is fine now.

    And this is the response from Akamai:

    We can’t currently assist and process further your request,

    We warmly invite you to get in touch directly with a Support Technician or an Account Representative from Mailchimp to evaluate your request,

    If it will be necessary, then an authorized Account Mailchimp Representative will approach Akamai if a change is needed to be performed.

    I’m having the same issue. Been talking to Mailchimp and my webhost about it and I’ve been told by Mailchimp that my IP (dedicated) has been blocked by Akamai… which blocks the API calls before they even hit the Mailchimp API.

    No clue why they would’ve blocked it. I emailed Akamai customer care but I’m not sure if they even respond to this type of thing.

    Changing my IP may not fix the issue because I don’t know why it got blocked in the first place. So my new IP might get blocked too.

    Strange that there have been a few of us posting about this same issue here just in the past few days.

    The other solution that people have posted in these support forums is: Configure your server to connect to the MailChimp API server using a proxy… but I’m not sure how to do that.

    Thread Starter Pete

    (@peezey01)

    3 other WP plugins just released updates, so I updated them and now it appears to be working again. I guess one of those plugins was messing shit up.

    Yoast was one of the 3. Can’t remember what the other 2 were.

    Thanks for your help ๐Ÿ™‚

    Thread Starter Pete

    (@peezey01)

    Hey Danny, I’ve upped the limit to 256MB. It looks like it worked (according to this: http://beardstrokings.com/phpinfoz.php)

    But the issue remains ๐Ÿ™

    Thread Starter Pete

    (@peezey01)

    My mistake, there is one instance of this:
    [22-Mar-2016 23:49:08 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 30720 bytes) in /home/magnet34/public_html/wp-admin/includes/plugin.php on line 786

    Yeah I can log into WP Admin and do everything in there just fine.

    I’ll wait for your response first, then ask my host if need be.

    Thread Starter Pete

    (@peezey01)

    Ok got it. This is the only thing that keeps popping up in my PHP error log:

    [23-Mar-2016 01:19:07 America/Los_Angeles] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/php54/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so’ – /opt/php54/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so: cannot open shared object file: No such file or directory in Unknown on line 0

    Thread Starter Pete

    (@peezey01)

    Hi Danny, thanks for responding. Where can I track down my PHP error log?

Viewing 15 replies - 1 through 15 (of 19 total)