{"id":1954217,"date":"2022-09-21T04:09:52","date_gmt":"2022-09-21T08:09:52","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?post_type=post&#038;p=1954217"},"modified":"2023-11-26T15:38:24","modified_gmt":"2023-11-26T20:38:24","slug":"why-qr-codes-arent-appearing-in-emails","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/why-qr-codes-arent-appearing-in-emails\/","title":{"rendered":"Why QR Codes Aren&#8217;t Appearing in Emails"},"content":{"rendered":"\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/X89iFy5u_DE?si=yiYiFQlByqq8hTyR\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n\n\n\n<p>When you send a ticket email to attendees with <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-event-tickets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Event Tickets and Event Tickets Plus<\/a>, a QR code <em>should<\/em> be generated and presented in the email. This code can then be scanned at your event to check in attendees using a QR scanner or the <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/using-qr-codes-with-event-tickets-plus\/\" target=\"_blank\" rel=\"noreferrer noopener\">Event Tickets Plus app<\/a> on your mobile device.<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:var(--global-palette8)\">\u2728 Please ensure you have checked the setting to enable QR Codes for your emails in <strong>Tickets &gt; Settings &gt; Emails<\/strong>. And that your site has QR Codes enabled in <strong>Tickets &gt; Settings &gt; Integrations<\/strong>.<\/p>\n\n\n\n<p>However, you may encounter issues with the QR code not appearing in the email as expected. Let&#8217;s look at some scenarios and troubleshoot them so you can get the QR codes to appear in your ticket emails.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-email-client-issues\">Email client issues<\/h2>\n\n\n\n<p>Most email clients block images in emails that come from &#8220;unknown&#8221; sources. Since the QR code is also delivered as an image it might be blocked as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"781\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/et-ticket-email-images-blocked.jpg\" alt=\"\" class=\"wp-image-1954236\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/et-ticket-email-images-blocked.jpg 784w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/et-ticket-email-images-blocked-300x300.jpg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/et-ticket-email-images-blocked-150x150.jpg 150w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/et-ticket-email-images-blocked-768x765.jpg 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><figcaption class=\"wp-element-caption\">Images being blocked by the email application<\/figcaption><\/figure>\n\n\n\n<p>The solution here is to allow the email client to show images or add the sender&#8217;s email address as a trusted source.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-missing-dependencies\">Missing dependencies<\/h2>\n\n\n\n<p>The next thing to check will be if QR code images are being created at all. The QR code images are stored within the <code>wp_uploads<\/code> folder with a random file name like <code>qr_1c94fa13e0baf7582673d5b725e213b8.png<\/code>. If you see files like that, that&#8217;s a good sign.<\/p>\n\n\n\n<p>You can also use the <a href=\"https:\/\/wordpress.org\/plugins\/email-log\/\" target=\"_blank\" rel=\"noreferrer noopener\">Email Log plugin<\/a> to look at the emails that are sent out from your site and check if the QR codes appear there.<\/p>\n\n\n\n<p>If you don&#8217;t see them there, they may have missing dependencies blocking the QR codes from being generated. In this case, you&#8217;ll need to make sure that you have both the <code>php_gd2<\/code> and <code>gzuncompress<\/code> PHP extensions. Your hosting provider should be able to help you set these up and add them if necessary.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-broken-image-source\">Broken image source<\/h2>\n\n\n\n<p>One reason that the QR may not be appearing is that there is a broken image source. To determine if this is the cause, you&#8217;ll want to copy the URL of the QR code by right-clicking on the QR code image in the email. Then paste that URL into your browser to see if the image works. <\/p>\n\n\n\n<p>If not, the source link is broken. This generally indicates that something is blocking the QR code from appearing. As a next step, you can check for conflicts with security plugins (if you have one).<\/p>\n\n\n\n<p>Often, security plugins can block direct access from external sources to items like images, that they deem unsafe. Try disabling the security plugin, and if the QR codes appear, you&#8217;ll know that the security plugin was blocking it. You can look through the settings of the security plugin to check if there&#8217;s anything related.<\/p>\n\n\n\n<p>Alternatively, you can check your <code>.htaccess<\/code> file and look for a line similar to the following:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nRewriteRule .*\\.(jpg|jpeg|gif|png|bmp)$ - &#x5B;F,NC]\n<\/pre><\/div>\n\n\n<p>This rule blocks direct access to files with the listed extensions. After creating a backup of your <code>.htaccess<\/code> file for security, you can adjust it or comment out the entire line by placing a hash (<code>#<\/code>) at the beginning.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you send a ticket email to attendees with Event Tickets and Event Tickets Plus, a QR code should be generated and presented in the email. This code can then be scanned at your event to check in attendees using a QR scanner or the Event Tickets Plus app on your mobile device. \u2728 Please&#8230;<\/p>\n","protected":false},"author":34,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[88],"tags":[64],"stellar-product-taxonomy":[155,156],"class_list":["post-1954217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tickets","tag-qr","stellar-product-taxonomy-event-tickets","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":88,"label":"Ticketing"}],"post_tag":[{"value":64,"label":"QR"}],"stellar-product-taxonomy":[{"value":155,"label":"Event Tickets"},{"value":156,"label":"Event Tickets Plus"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"jaimem","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimem\/"},"comment_info":0,"category_info":[{"term_id":88,"name":"Ticketing","slug":"tickets","term_group":0,"term_taxonomy_id":88,"taxonomy":"category","description":"","parent":61,"count":83,"filter":"raw","term_order":"0","cat_ID":88,"category_count":83,"category_description":"","cat_name":"Ticketing","category_nicename":"tickets","category_parent":61}],"tag_info":[{"term_id":64,"name":"QR","slug":"qr","term_group":0,"term_taxonomy_id":64,"taxonomy":"post_tag","description":"","parent":0,"count":8,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1954217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1954217"}],"version-history":[{"count":2,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1954217\/revisions"}],"predecessor-version":[{"id":1958696,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1954217\/revisions\/1958696"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1954217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1954217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1954217"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1954217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}