• Resolved Ambyomoron

    (@josiah-s-carberry)


    Please let me know with this debug log message means:

    Invalid Resource Page: Checkbox Integrations || Type: Checkbox Integration Subscribe User || Time: 16 May 2018 14:28

    The web server error log has the following message:

    PHP Notice: Trying to get property of non-object in /home/wordpress/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 123, referer: https://mysite.com/wp-admin/admin.php?page=yikes-inc-easy-mailchimp-settings&section=integration-settings

    I disabled the Duplicate post plugin, but the error is still occurring in Easy forms.

    It concerns the Contact 7 integration. It started off by working OK. Then it started to work intermittently. Now it doesn’t work at all.

    I rechecked to Contact 7 integration settings – no issue there.
    I rechecked the Contact 7 form, which correctly displays the Mailchimp checkbox and label.
    Aside from the mailchimp integration part, the Contact 7 form is being handled correctly. No error messages on that end.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Ambyomoron

    (@josiah-s-carberry)

    When it fails, the message never gets sent to MailChimp. I have tested this with them on line and they simply never see the PUT.
    I don’t think there is anything special about the test platform. It’s configuration is essentially the same as my production platform.
    To be frank, I wouldn’t even know how to set or view the API timeout.

    Here is one entry in the API log:

    018-05-21 16:24:14 GMT	
    nope	some-ip-address	GET /lists/.../members/.../	php	0.142s	WordPress/4.9.6; Yikes Easy MailChimp Extender; https://mysite.com	3.0	The requested resource could not be found. 

    I don’t know how to relate this to an event at the client side, though.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Josiah – I will be running my own tests today to see if I can recreate and fix your issue.

    @foriaa – have you tried any of the things I suggested in this thread? Such as checking if your list has required fields, adding debug statements, etc.?

    • This reply was modified 6 years, 6 months ago by yikesitskevin.

    The form in that page doesn’t use Easy Form.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    But you’re using an Easy Forms checkbox, right?

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Gruezi @foriaa. I presume you are aware that the following message is displayed on your page:

    Warning: in_array() expects parameter 2 to be array, string given in /home/propuls5/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/public/classes/checkbox-integrations.php on line 121

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Yeah @foriaa re-save your checkbox integrations to fix that warning. There was an update in the data structure and if you re-save them it will correct itself.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi All,

    I’ve just tested this again about a dozen times and every time it works. I’m going to show all of my pieces and if you think you see something different about your set up then maybe that’s part of the issue. I can’t spend more time troubleshooting this.

    (Please excuse any random/testing text from my local/test environments.)

    1. CF7 Form – Front End – https://imgur.com/a/pnZPAza

    2. CF7 Form – Back End – https://imgur.com/a/tKy0LZS

    3. Easy Forms Integration Checkbox Settings – https://imgur.com/a/F0iNKXq

    4. MailChimp List Fields – https://imgur.com/a/CXcm3L5

    5. Custom PHP Code (the first function logs extra details, the second function includes the first and last name of the subscriber with the MailChimp request).

    /** Log all integration request bodies **/
    add_filter( 'yikes-mailchimp-checkbox-integration-body', 'yikes_mailchimp_filter_checkbox_request_body', 10, 3 );
    
    function yikes_mailchimp_filter_checkbox_request_body( $request_body, $integration_type, $list_id ) {
    
    	$request_body_string = print_r( $request_body, true );
    
    	$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
    	$error_logging->maybe_write_to_log(
    		$request_body_string,
    		__( "Testing Checkbox Integration", 'yikes-inc-easy-mailchimp-extender' ),
    		__( "Testing Checkbox Integration", 'yikes-inc-easy-mailchimp-extender' )
    	);
    
    	return $request_body;
    }
    
    /*
    * Populate the 'Name' field in the MailChimp Mailing list from the 'your-name' field in Contact Form 7
    *
    * @since 6.0.2.1
    *
    * @param array | $merge_variables | An array of variables we're sending to MailChimp
    * @param array | $cf7_variables | An array of variables we received from the CF7 form submission
    * @return array| $merge_variables | An array of variables we're sending to MailChimp, hopefully with CF7 variables added
    */
    function additional_contact_form_7_data( $merge_variables, $cf7_variables ) {
    
    	// Check our $cf7_variables array for 'your-firstname'
    	if ( isset( $cf7_variables['your-firstname'] ) ) {
    
    		// Filter first name and add it to our MailChimp merge variables array
    		$merge_variables['FNAME'] = filter_var( $cf7_variables['your-firstname'], FILTER_SANITIZE_STRING );
    	}
    
    	// Check our $cf7_variables array for 'your-lastname'
    	if ( isset( $cf7_variables['your-lastname'] ) ) {
    
    		// Filter last name and add it to our MailChimp merge variables array
    		$merge_variables['LNAME'] = filter_var( $cf7_variables['your-lastname'], FILTER_SANITIZE_STRING );
    	}
    
    	return $merge_variables;
    }

    Cheers,
    Kevin.

    • This reply was modified 6 years, 6 months ago by yikesitskevin.
Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Invalid resource in Contact 7 integration’ is closed to new replies.