Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • Emily

    (@ebloss)

    I was having the same issue. Deactivated all plugins then enabled one-by-one. It turned out to be the Private Suite plugin, which I have to use while developing some pages for the site. Try deactivating everything then enabling to see which one it is. If that fails, set your theme to Twenty Sixteen to see if it’s a theme problem. Hope this helps!

    Thread Starter Emily

    (@ebloss)

    The issue has resolved itself since then. Time remedies a lot in this universe! Mailpoet is an awesome plugin, thank you so much for the time and effort you put into it. 🙂 🙂

    Thread Starter Emily

    (@ebloss)

    I un- and re-installed… no difference. :\

    Thread Starter Emily

    (@ebloss)

    Update: The theme designer upgraded to the latest Visual Composer, and the problem persists. I guess I’ll start digging around in the SEO plugin code to see if I can see anything. Even the blind squirrel finds a nut sometimes. 🙂

    Thread Starter Emily

    (@ebloss)

    In case it will help anyone, here is the code I added to my functions.php

    function mailpoet_woocommerce_order_complete ( $order_id ) {
    	global $woocommerce;
    	global $wpdb;
    	if ( !$order_id )
    		return;
    
    	// subscribe person to Mailpoet autoresponder or list
    	if (!class_exists('WC_Order') || !class_exists('WYSIJA'))
                return;
    
            $order = new WC_Order($order_id);
            $list_array = array();
            $items = $order->get_items();
    
            foreach ($items as $item) {
            	$list_array = array();
            	$item_meta = new WC_Order_Item_Meta( $item['item_meta'], $item['product_id'] );
            	$mar = get_post_meta($item['product_id'], 'mailpoet_ar_id', TRUE);
            	if (strstr($mar, ',')) {
                	$sun_list_array = explode(",", get_post_meta($item['product_id'], 'mailpoet_ar_id', TRUE));
            	} else {
            		$sun_list_array = array($mar);
              	}
              	if (sizeof($sun_list_array)) {
    				foreach ($sun_list_array as $af) {
    					if (!in_array($af, $list_array))
    					 array_push($list_array, $af);
    				}
    				 if ( $item_meta->meta ) {
    					 $user_data = array('email' => $item['item_meta']['Attendee - Email Address'][0], 'firstname' => $item['item_meta']['Attendee - First Name'][0], 'lastname' => $item['item_meta']['Attendee - Last Name'][0]);
    				 }
    				 $data_subscriber = array('user' => $user_data, 'user_list' => array('list_ids' => $list_array));
    
    				// see if the subscriber already exists
    				$sSQL = "SELECT user_id FROM wp_wysija_user WHERE email='".$item['item_meta']['Attendee - Email Address'][0]."'";
    				$checksub = $wpdb->get_results( $sSQL );
    				if ($checksub) {
    					foreach ($checksub as $c) {
    						$added_user_id = $c->user_id;
    						$cdump = print_r($c, true);
    						$cdump .= "\n\n" .print_r($list_array, true);
    						//$helper_user = WYSIJA::get('user', 'helper');
    						//$helper_user->subscribe($added_user_id, TRUE, FALSE, $list_array);
    
    						$time_now = time();
    						$wpdb->rows_affected = 0;
    						$helper_email = WYSIJA::get('email', 'helper');
    						$model_wysija = new WYSIJA_model();
    
    						// insert query per list
    						$query = 'INSERT IGNORE INTO wp_wysija_user_list (<code>list_id</code> ,<code>user_id</code>,<code>sub_date</code>) VALUES ';
    						foreach ($list_array as $keyl => $list_id) {
    							$query.='(' . (int)$list_id . ' , ' . (int)$added_user_id . ' , ' . (int)$time_now . ')';
    						}
    						$cdump .= "\n\n" . $query;
    						mail('[email protected]', $sSQL, $added_user_id . "\n\n" . $cdump);
    
    						$result_query = $model_wysija->query($query);
    
    						// send autoresponder
    						// list the active auto responders emails
    						$active_autoresponders_per_list = $helper_email->get_active_follow_ups(array('email_id', 'params'), true);
    
    						if (!empty($active_autoresponders_per_list)) {
    							foreach ($list_array as $list_id) {
    								// checking if this list has a list of follow ups
    								if (isset($active_autoresponders_per_list[$list_id])) {
    									// for each follow up of that list we queu an email
    									foreach ($active_autoresponders_per_list[$list_id] as $key_queue => $follow_up) {
    										// insert query per active followup
    										$query_queue = 'INSERT IGNORE INTO wp_wysija_queue (<code>email_id</code> ,<code>user_id</code>,<code>send_at</code>) ';
    										$query_queue .= ' SELECT ' . (int)$follow_up['email_id'] . ' , B.user_id , ' . ($time_now + $follow_up['delay']);
    										$query_queue .= ' FROM wp_wysija_user_list as B';
    										$query_queue .= ' WHERE B.list_id=' . (int) $list_id . ' AND sub_date=' . $time_now;
    
    										$model_wysija->query($query_queue);
    
    										//$this->_data_numbers['emails_queued'] += $wpdb->rows_affected;
    									}
    								}
    							}
    						}
    
    					}
    				} else {
    					/* @var $helper_user WYSIJA_help_user */
    					$helper_user = WYSIJA::get('user', 'helper');
    					$helper_user->no_confirmation_email = TRUE;
    					$added_user_id = $helper_user->addSubscriber($data_subscriber);
    					$helper_user->confirm_user($added_user_id);
    					$helper_user->subscribe($added_user_id, TRUE, FALSE, $list_array);
    				}  // if subscriber exists or not
    
    			}  // if there's an autoresponder on this product
            }  // check each item on the order
    
    	return;
    
    }  // end function mailpoet_woocommerce_payment_complete
    
    add_action( 'woocommerce_order_status_completed', 'mailpoet_woocommerce_order_complete' );
    Thread Starter Emily

    (@ebloss)

    Hi and thank you! I did try the first plugin and it made the whole system unstable, so I grabbed the code and integrated it directly. Then I looked at the import code of mailpoet and grabbed portions of that, to add subscribers who already existed. It’s working great now!

    I too am having the same problem. I disabled the plugin by removing the folder via FTP and now I can log in.

    Well. I tried updating wp_options and it didn’t seem to work. I’m guessing the format of the options has changed and so it is not compatible. Off to rebuild all of my widgets!

    Thread Starter Emily

    (@ebloss)

    Eep! I take that back. I’m using child themes. On one of them, the style sheet has the parent css imported, plus this:

    .entry-header {
    	margin-bottom: 6px;
    }
    
    footer.entry-meta {
    	margin: 0 0 24px;
    	margin: 0 0 1.714285714rem;
    }
    
    .hms-testimonial-container {
    	padding: 12px 0;
    	border-top: 1px solid #ededed;
    }
    
    .widget_hms_testimonial_view {
    	font-size: smaller;
    	line-height: 1.714285714;
    }
    
    .author {
    	text-align: right;
    	padding-right: 15px;
    }
    
    .author:before {
    	content: "- ";
    }

    And I’ve edited the meta info to take some things out. That’s it.

    Thread Starter Emily

    (@ebloss)

    Only using the tools available within the theme… nothing has been edited directly. I suspect it’s something in her Safari but I don’t even know where to start looking!

    Emily

    (@ebloss)

    I, too, am having this conflict, which is a real show-stopper as my client uses Nextgen extensively. It’s strange because the PDF file is being generated OK, I can see it in the cache, but then it doesn’t download properly. Any ideas on a workaround?

    Emily

    (@ebloss)

    I, too, am having this conflict, which is a real show-stopper as my client uses Nextgen extensively. It’s strange because the PDF file is being generated OK, I can see it in the cache, but then it doesn’t download properly. Any ideas on a workaround?

    I, too, would be interested in showing additional information. I want to display the author’s name, the email address, and phone number (which I’ve added as a profile field and will use the Jabber field if it’s a guest).

    How would one do that?

    The easiest way I found was to add this to my css:

    .wpcr_sc { display: none !important; visibility: none !important; }
    .wpcr_rname { padding-left: 40px !important; }

    This will only hide the stars… people will still have to choose them when reviewing but they won’t show.

    Emily

    (@ebloss)

    I use a plugin called WordFence, which can be set to notify of any changes to the core files, plugins, and themes. I’ve also used Sucuri Security – SiteCheck Malware Scanner, which you can use for a manual scan of the site. The Sucuri plugin also provides some hardening features which are useful.

    Hope this helps!

    Emily

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