Similar (fixed) bug here: http://xenforo.com/community/thread...abling-two-add-ons-in-short-succession.54140/
This appears to be a similar thing and I think, without looking back at the original code, probably the same fix.
XenForo_Model_AdminTemplate line 746
Replace:
	
	
	
		
With:
	
	
	
		
				
			This appears to be a similar thing and I think, without looking back at the original code, probably the same fix.
XenForo_Model_AdminTemplate line 746
Replace:
		PHP:
	
	            $db->insert('xf_admin_template_phrase', array(
                'template_id' => $templateId,
                'phrase_title' => $includedPhrase
            ));With:
		PHP:
	
	            $db->query('
                    INSERT IGNORE INTO xf_admin_template_phrase
                        (template_id, phrase_title)
                    VALUES
                        (?, ?)
            ', array($templateId, $includedPhrase)); 
 
		
 
 
		
 
 
		 
 
		