Title: QR code with bust URL
Last modified: August 4, 2021

---

# QR code with bust URL

 *  [stoneywalls](https://wordpress.org/support/users/stoneywalls/)
 * (@stoneywalls)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/qr-code-with-bust-url/)
 * Hi – Love the product and about to upgrade, but I’m struggling with the QR code
   that the ticket generates. It looks like a variable for the site base URL is 
   not updating. So when I scan the QR I get a url like..
 * MT_HOME_URL?ticket_id=adcd3
 * rather than [https://www.stoneywalls.com?ticket_id=adcd3](https://www.stoneywalls.com?ticket_id=adcd3)
 * I have tried removing and re- adding the plugin with no luck..
 * Also – is there anyway to send the tickets as a HTML email- ie without the links.
   The place where we are going to be checking in the users has poor internet / 
   cellular reception, so the ticket holders may not be able to open the links from
   the email.
 * If not, the is there a way to print all tickets on one page, rather than a ticket
   per page…
 * Thanks again!
    can you help?
 * thaks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fqr-code-with-bust-url%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/qr-code-with-bust-url/#post-14735826)
 * Is your WordPress installation in a subdirectory?
 * MT_HOME_URL is a constant that should only be used if all other methods for locating
   the page have failed, so it’s pretty unusual for that to come up. It means that
   My Tickets isn’t successfully finding wp-load.php to enqueue the code for generating
   the QR code. I’d probably need more information to be able to figure out why.
   Do you have a log of PHP errors somewhere that might help?
 * It’s not possible to send tickets as HTML email. Or, rather, the QR codes can’t
   be included in email; the rest of the ticket can, but I’m guessing that’s a key
   piece.
 * But it is possible to get all the tickets on one page. Use the template tag {
   bulk_tickets}.
 *  Thread Starter [stoneywalls](https://wordpress.org/support/users/stoneywalls/)
 * (@stoneywalls)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/qr-code-with-bust-url/#post-14735953)
 * Hi thanks for the quick feedback.. I’m using a bitnami AWS instance for wordpress,
   and it does seem to have a weird directory structure.
 * there was a log entry (redacted)…
 * [pid 31956:tid 139741139801856] [client x.xx.xx:61532] AH01071: Got error ‘PHP
   message: PHP Warning: Use of undefined constant MT_HOME_URL – assumed ‘MT_HOME_URL’(
   this will throw an Error in a future version of PHP) in /bitnami/wordpress/wp-
   content/plugins/my-tickets/includes/qrcode.php on line 42′, referer: [https://xx.xx.com/tickets-2/?ticket_id=adcd331eb737e10000](https://xx.xx.com/tickets-2/?ticket_id=adcd331eb737e10000)
   [
   Wed Aug 04 17:15:07.542473 2021] [proxy_fcgi:error] [
 * In the end I’m afraid I hacked the QR code qrcode.php to hard code in the domain
   name and it seems to work. ie..
 *  // if the above fails, we’ll generate a URL, but it may be wrong.
    $url = “xx.
   xx.uk” . “?ticket_id=$ticket&action=mt-verify”;
 * All tickets on one page is good enough for me! most of our users are families
   so it will be the norm. I will try and get my head around this…
 * Thanks again…
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/qr-code-with-bust-url/#post-14740132)
 * As long as you’re comfortable remembering you’ll need to hack that again when
   it updates, that’s certainly a reasonable solution!
 * I can say with confidence that I have not tested on a bitnami AWS instance. 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘QR code with bust URL’ is closed to new replies.

 * ![](https://ps.w.org/my-tickets/assets/icon-256x256.png?rev=1097581)
 * [My Tickets - Accessible Event Ticketing](https://wordpress.org/plugins/my-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/my-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-tickets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/qr-code-with-bust-url/#post-14740132)
 * Status: not resolved