Support

Home Forums Event Espresso Premium QR code not showing in PDF

QR code not showing in PDF

Posted: May 26, 2015 at 11:38 pm

Viewing 16 reply threads


Omar

May 26, 2015 at 11:38 pm

We have used custom QR code from documentation

https://eventespresso.com/wiki/custom-qr-codes-for-tickets/

but when we download invoice pdf or receipt its not showing QR code in PDF


Tony

  • Support Staff

May 27, 2015 at 4:11 am

Hi Chris,

Which message template have you included the code within?


Omar

May 27, 2015 at 4:19 am

To Invoice and receipt.. there a option on top that Download PDF. when i am downloading that PDF its not showing QR code. please see below link. its showing like below.

http://prntscr.com/79xbwp


Tony

  • Support Staff

May 27, 2015 at 4:26 am

Thanks.

Strange, its working for me – http://take.ms/zsUyQ

Can you post up the full code you are using for the QR please?


Omar

May 27, 2015 at 4:30 am

Below is code for custom QR code :

QR Code


Omar

May 27, 2015 at 4:31 am

i edited src to show you code

QR Code


Omar

May 27, 2015 at 4:32 am

src=http://chart.apis.google.com/chart?cht=qr&chs=200×200&chl=[PRIMARY_REGISTRANT_REGISTRATION_CODE]&chld=H|0 alt=”QR Code”


Tony

  • Support Staff

May 27, 2015 at 4:45 am

Hmm, that code works fine for me.

Can I take a quick look at the template? If so can you provide temporary log in details using this form please

https://eventespresso.com/send-login-details/


Omar

May 27, 2015 at 6:12 am

I just sent login details as your given url.

also can you please check how i can attach PDF with invoice email?

Thanks.


Tony

  • Support Staff

May 27, 2015 at 6:29 am

I looks like something on the server is preventing the image from downloading.

The link is correct and if you click on the QR link within the PDF you’ll be directed to a working image.

If you enable WP_DEBUG are any errors thrown either on the HTML output of the Invoice or within the PDF itself?

also can you please check how i can attach PDF with invoice email?

Currently this isn’t something Event Espresso supports. The user will need to click the button to download the PDF from the link provided.


Omar

May 27, 2015 at 6:49 am

sorry i didnt get you. you said QR code is working on your server in PDF. but images not showing in PDF. i also sent you FTP details so can you please check? or give me step by step instruction so i can setup.

Thanks.


Lorenzo Orlando Caum

  • Support Staff

May 27, 2015 at 9:46 am

Hi Chris, could you temporarily enable WordPress debugging by adding the macro in the link below towards the middle of your wp-config.php file?

https://gist.github.com/lorenzocaum/848801a1173be464fbe7#file-gistfile1-php

The wp-config.php file can be found in the WordPress root and you can login to your site using an SFTP or FTP client like FileZilla or Cyberduck.

Once in place, try downloading the PDF again for one or more events.

Then browse to this location using your SFTP / FTP client:

/wp-content/debug.log

Are there any errors appearing there? If so, please copy and paste them into a reply.

Then turn off WP debugging by using this updated macro:

https://gist.github.com/lorenzocaum/848801a1173be464fbe7#comment-1239850


Lorenzo


Omar

May 27, 2015 at 11:24 am

Hi ,

i just did above steps. i didnt found degub.log on this path. /wp-content/debug.log


Tony

  • Support Staff

May 27, 2015 at 12:03 pm

The Debug.log file should be created when any warning/errors are thrown on your site. However if Apache does not have write permissions you may need to manually create this yourself and assign it the correct permissions (666)

Can you check with your host that you tmp directory has been set and your site has the correct permissions to use it please?

DOMPDF which Event Espresso uses to create the PSF’s downloads the image to your temp directory (the location returned by sys_get_temp_dir() ) before including it within the PDF, if that isn’t set correctly, or your site doesn’t have the correct permissions for that directory the image will not load.


Omar

May 27, 2015 at 12:24 pm

Ok i checked permission and also created tmp folder. i didnt get any warning or any error on website. Apache writing permission is there already as its generating PDF. so may be issue is something different. can you please check from your side permissions as i gave you FTP accesss and admin details.

Thanks


Omar

May 27, 2015 at 12:27 pm

can you please provide your skype id so it will be faster through chat.
Thanks


Tony

  • Support Staff

May 27, 2015 at 2:35 pm

Hi Chris,

Currently we do not provide Skype support.

However if you prefer for us to troubleshoot this directly on your server you will need to purchase a priority support token.

Apache writing permission is there already as its generating PDF.

I’m not sure I follow here?

If Apache does not have write permissions on /wp-content/ it can not create the debug.log file for you, this is different from the PDF issue.

Viewing 16 reply threads

The support post ‘QR code not showing in PDF’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso