Magento 2.2.1 “Sorry, but something went wrong. Please contact the seller.” Checkout using

Magento 2.2.1. I have confirmed the transaction URLs, keys, and MD5 with Transaction is processed and deducted from account. Order is created within Magento, and emails are sent. However, the error message tells the customer at the time of the transaction that it has failed. When they attempt it again, it double charges them.

I have reviewed all logs and there is absolutely nothing being logged in system.log, error.log, debug.log with respect to the transaction.

Are there any other logs to review?

How can I properly inspect the browser session for response messages?

I have seen a similar issue in the past on a different website using 2.1 and the issue was with the transaction url. I corrected it to api2 and all worked well.

UPDATE: I have switched to the Magento Blank theme and the issue still exists.

While viewing the console under the browser inspect, I see the following:

Refused to display 'https://www.<mydomain>.com/authorizenet/directpost_payment/redirect/x_invoice_num/000075321/success/1/controller_action_name/directpost_payment/is_secure/1/' in a frame because it set 'X-Frame-Options' to 'deny'. 

Is this an issue with respect to what I am experiencing?

How to query contact details for linked messaging apps profiles (Specially Telegram) and launch them with tasker?

Since the TouchlessChat app was deleted from the PlayStore I am trying to create a task that simulates the behavior of it.

Right now I am able to capture my message using voice and get the contact ID with AutoContacts. Now I need to do something like:

If Telegram Send Telgram Message Else If WhatsApp Send WhatsApp Message Else Send SMS 

But I am not able to get the Telegram info for it (AutoContacts has a WhatsApp Uri). My closest friends and family use Telegram so it is almost my first option.

Is there a way to query the contact details to get the correct Telegram URI or similar so I can launch the app with it?

Where can I contact the shipping department of VFS – New York scanning hub?

I applied for a UK standard visitor visa.

I sent my application myself using USPS with a return shipping label from USPS inside the package. I was informed by VFS from the email address:

that they cannot send back my passport using USPS and I need to send a UPS return label. I replied back to that email with a UPS shipping label. My co-worker also applied for the same visa, had sent a USPS shipping label and she wrote a fresh email to the same email address as above and she received her passport today.

My tracking number on UPS says ‘Label created’ (which means they haven’t even handed it UPS yet).

Where can I contact someone/anyone from VFS to get an update ?

More info:

I applied for a Standard Visitor’s visa for the UK from the US. I am a permanent resident in the US. I had my biometrics appointment at the Application Support Center in San Fernando, California.

CSV to vcf contact

Hi guys,
I want to know that Is it possible to convert my comma separated value to vcf contacts file?
please help me.
Thanks in advance….. | Read the rest of

How to define Views filters and relationships for custom Civicrm contact fields that are indexed via Search API?

I followed the steps on skvare to index CiviCRM contacts via Search API, then to have Views list the contacts with the search box as an exposed filter.

I need to expose a filter that filters results based on what membership type the contact has. That might require a relationship, which is currently not an option in Views for me, so I might have to write a custom relationship handler as well as the custom filter handler. I have been trying to find the code to read to use as a guide but I have been unable to figure out whether these handlers are being defined in CiviCRM, Views, Search API, or the Civicrm Entity module which I’m also using.

How do you define a custom relationship and filter handlers for custom fields on CiviCRM contacts being displayed via Search API, CiviCRM Entity, and Views?

One-Page Responsive Bootstrap Website Showing PHP Code in Contact Form

I am finishing up a ONE-PAGE responsive website for a client. I am using a Bootstrap contact form at the bottom of the HTML page. There is a second Contact.php file to process the form. The PHP code is showing up in the contact form text fields.

I’ve read and followed the directions for other folks’ similar problems, but my client’s URL ends in .HTML so I don’t want to make the URL end in .PHP to make the contact form work. Is there a workaround to A) get the code to NOT show up in the text fields, and B) process the form without changing the HTML to PHP. Thanks a bunch – this has been driving me nuts for two days now.


<!--  FORM SECTION STARTS HERE---- -->   <section id="contact">     <div class="container">         <div class="row">             <div class="col-md-12">                  <h3 class="h3-complete-form">Just complete the form below.</h3>            </div>          </div>     </div>  <form class="form-horizontal" role="form" method="post" action="contact.php">  <div class="row">    <div class="col-sm-3"></div>       <div class="contact-icon">         <i class="fas fa-user"></i>       </div>       <div class="form-inline">        <div class="col-sm-2 form-group">            <label for="name" class="control-label">Name</label>              <input type="text" class="form-control" id="name" name="name" placeholder="First & Last Name">              <?php              echo $  errName;?>        </div>    </div> </div>    <div class="row">       <div class="col-sm-3"></div>          <div class="contact-icon">             <i class="fas fa-envelope"></i>          </div>          <div class="form-inline">             <div class="col-sm-2 form-group">           <label for="email" class="control-label">Email</label>               <input type="email" class="form-control" id="email" name="email" placeholder="">               <?php                echo $  errEmail;?>           </div>      </div>   </div> </div> </div>  <div class="row">   <div class="col-sm-3"></div>     <div class="contact-icon">       <i class="fas fa-pencil-alt"></i>    </div>     <div class="form-inline">       <div class="col-sm-10 form-group">           <label for="message" class="control-label">Message</label>           <textarea class="form-control" rows="4" name="message"              placeholder="How can I help you?">              <?php               echo $  errMessage;?>         </div>       </div> </div>   <div class="row">     <div class="col-sm-3"></div>       <div class="contact-icon">         <i class="fas fa-pencil-alt"></i> </div>      <div class="form-inline">         <div class="col-sm-10 form-group">             <label for="human" class="control-label">2 + 3 = ?</label>           <input type="text" class="form-control" id="human" name="human" placeholder="Your Answer">           <?php echo $  errHuman";?>             </div>     </div> </div>  <div class="row">     <div class="col-sm-4"></div>     <div class="form-inline">     <div class="form-group">             <input id="submit" name="submit" type="submit" value="Send" class="btn btn-primary">             <?php echo $  result; ?>       </div>    </div> </div> </div>      <!-- Displays an alert to user --> <div class="row">    <div class="form-group">         <div class="col-sm-10 col-sm-offset-2">           <?php echo $  result; ?>         </div>   </div> </div> </form>   </div> </div> <!-- --------- SECTION 8: CONTACT ME ENDS HERE------ -->   PHP DOC   <?php include 'validate.php'; ?>  <?php     if (isset($  _POST["submit"])) {         $  name = $  _POST['name'];         $  email = $  _POST['email'];         $  message = $  _POST['message'];         $  human = intval($  _POST['human']);         $  from = "From: ". $  name . " <" . $  email . ">\r\n";         $  to = '';          $  subject = 'Message from Contact Form';          $  body ="From: $  name\n E-Mail: $  email\n Message:\n $  message";         // Check if name has been entered         if (!$  _POST['name']) {             $  errName = 'Please enter your first and last name';         }          // Check if email has been entered and is valid         if (!$  _POST['email'] || !filter_var($  _POST['email'], FILTER_VALIDATE_EMAIL)) {             $  errEmail = 'Please enter a valid email address';         }          //Check if message has been entered         if (!$  _POST['message']) {             $  errMessage = 'Please enter your message';         }         //Check if simple anti-bot test is correct         if ($  human !== 5) {             $  errHuman = 'Your anti-spam answer is incorrect';         } // If there are no errors, send the email if (!$  errName && !$  errEmail && !$  errMessage && !$  errHuman) {     if (mail ($  to, $  subject, $  body, $  from)) {         $  result='<div class="alert alert-success">Thank You! I will be in touch</div>';     } else {         $  result='<div class="alert alert-danger">Sorry there was an error sending your message. Please try again later.</div>';     } }     } ?> 

Webpage custom components (contact picker)

I don’t have much experience with web development. I’m developing a web app that will be used privately by a company (SEO isn’t needed, no need to ensure support of old browsers).

I made some custom interactive components (calendar, file manager, contact picker, etc) that I am not sure what is the best way of implementing them. I use the simplest of them (contact picker) as an example here.

What I have in mind right now is making separate php and js files for each component and require_once-ing the needed php files on each page that uses some of the components. The php file will echo a <script> tag to include the component’s js file (to avoid loading unneeded javascript code of unused components). Since the js files are cached by the browser I assume including many js files instead of one big file won’t have a negative impact on loading time.

The main things I am not sure about are:

  • Are the following approaches bad:
    • Many js files
    • echoing script tag from component’s php file
  • Should I make a js object for each component? (with getters, setters, etc)

The contact picker:

The contact picker is a text box that shows suggestions for contacts (based on server’s response to ajax requests) while the user types the name of the contact. The hidden input with name="contact_id" is the value that will actually be used in html forms, the rest is there for the user’s convenience.


<script src="components/contactPicker.js"></script> <?php function echo_contact_picker($  type = null){ ?> <div class="contact_picker"<?php if($  type) echo ' data-type="'. $  type .'"'; ?>>    <input type="hidden" name="contact_id">    <input type="text" class="contact_name" oninput="suggestContacts(this)" onfocus="toggleSuggestions(this, true)" onblur="toggleSuggestions(this, false)">    <table class="dropdown"></table> </div> <?php } ?> 


function suggestContacts(sender){    const picker = sender.closest('.contact_picker');    unpickContant(picker);     const contactName = picker.getElementsByClassName('contact_name')[0].value;    if(contactName == ''){       const container = picker.getElementsByClassName('dropdown')[0];       container.innerHTML = '';       return;    }    const contactType = picker.getAttribute('data-type');    const ajaxData = {name: contactName, type: contactType};    if(contactType == null){       delete ajaxData.type;    }     $  .ajax({       type: 'GET',       url: '../ajax/suggestContacts.php',       data: ajaxData,       success: function(data){          updateSuggestions(data, picker);       }    }); }  function updateSuggestions(data, picker){    const container = picker.getElementsByClassName('dropdown')[0];    data = JSON.parse(data);     if(data.length == 0){       container.innerHTML = '<span class="note">No matches</span>';    } else {       container.innerHTML = '';        for(contact of data){          const tr = document.createElement('tr');          let td = document.createElement('td');          td.textContent = contact.type;          tr.appendChild(td);          td = document.createElement('td');          td.textContent =;          let span = document.createElement('span');          span.textContent = contact.title;          span.classList.add('note');          td.appendChild(document.createElement('br'));          td.appendChild(span);          tr.appendChild(td);          tr.setAttribute('data-contact-id',;          tr.setAttribute('data-contact-name',;          tr.setAttribute('onmousedown', 'pickContact(this)');          container.appendChild(tr);       }    }    positionSuggestions(picker, container); }  function positionSuggestions(picker, container){    const rectP = picker.getBoundingClientRect();    const rectC = container.getBoundingClientRect();     if(rectP.bottom + rectC.height > (window.innerHeight || document.documentElement.clientHeight)){ = 'auto'; = 'calc(100% - 3px)';    } else { = 'auto'; = 'calc(100% - 3px)';    } }  function clearSuggestions(sender){    const picker = sender.closest('.contact_picker');    const container = picker.getElementsByClassName('dropdown')[0];    container.innerHTML = ''; }  function toggleSuggestions(sender, visible){    const picker = sender.closest('.contact_picker');    const container = picker.getElementsByClassName('dropdown')[0]; = visible ? '' : 'none'; }  function pickContact(selected){    const picker = selected.closest('.contact_picker');    const idElem = picker.querySelector('input[name="contact_id"]');    const nameElem = picker.getElementsByClassName('contact_name')[0];    nameElem.value = selected.getAttribute('data-contact-name');    idElem.value = selected.getAttribute('data-contact-id');    if(!picker.classList.contains('picked')){       picker.classList.add('picked');    } }  function unpickContant(picker){    picker.querySelector('input[name="contact_id"]').value = null;    picker.classList.remove('picked'); }  function createContactPicker(container, contactType){    const picker = document.createElement('div');    picker.classList.add('contact_picker');    let html = '<input type="hidden" name="contact_id">';    if(contactType != null){       picker.setAttribute('data-type', contactType);    }    html += '<input type="text" class="contact_name" onkeyup="suggestContacts(this)" onfocus="toggleSuggestions(this, true)" onblur="toggleSuggestions(this, false)"><button class="minibutton plus" style="width:24px; height:24px" data-tooltip="new contact"></button><table class="dropdown"></table>';    picker.innerHTML = html;    container.appendChild(picker); } 

css (relevant part out of a big file)

/* Form inputs */  input[type="text"]{     padding: 3px;     margin: 2px;     border: solid 1px #999;     margin: 2px;     width: 160px;     font-size: 11px; }  /* Contact picker */  .contact_picker{    position: relative; } .contact_picker .dropdown{    position: absolute;    border: solid 1px #000;    background-color: #fff;    z-index: 1;    left: 2px;    top: calc(100% - 3px);    min-width: 160px;    border-collapse: collapse; } .contact_picker .dropdown tr td:first-child{    color: rebeccapurple; } .contact_picker .dropdown td{    padding: 3px; } .contact_picker .dropdown tr:hover{    background-color: floralwhite;    cursor: pointer; } .contact_picker.picked .contact_name{    border-color: #00aa00; } 

Usage example:

<html>    <head>       <?php require_once "components/contactPicker.php"; ?>    </head>    <body>       <form name="choose_client_example">          Choose a client:<br>          <?php echo_contact_picker("client"); ?>          <button>Submit</button>       </form>    </body> </html>