• 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

    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    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

    (@stoneywalls)

    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
    [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

    (@joedolson)

    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.