Support

Home Forums Event Espresso Premium Ticket Layout not printed or in PDF file.

Ticket Layout not printed or in PDF file.

Posted: August 21, 2013 at 1:28 pm

Viewing 21 reply threads


Marcel Snoeck

August 21, 2013 at 1:28 pm

I have created an Custom Ticket Layout.
When I try to print their are missing parts. Background image.
And google map also give some times an red x.
The link to an sample ticket is:
http://www.fmtools.nl/fmgroupevents/?ticket_launch=true&id=14&r_id=7-5213d1a0ae80a&html=true

This is an test system, not the production.

  • This topic was modified 11 years, 3 months ago by Marcel Snoeck.


Dean

August 21, 2013 at 11:51 pm

Hi Marcel,

I see what you mean, it looks fine in HTML but PDF goes wrong. Something must have happened when you repositioned the elements as the QR code and Map (the ones with the issues) work fine on the default template.

Can you post the template code to somewhere like Pastebin so I can see whats happening?


Marcel Snoeck

August 22, 2013 at 12:18 am

Hi Dean,
I have made an copy of the ticket template to the upload directory as described in documentation.

That seems to work.
The code of the index.php or custom php code ssd051013.php I have tried to put it in Pastbin.
here is the link
<iframe src=”http://pastebin.com/embed_iframe.php?i=KWn6HVQk&#8221; style=”border:none;width:100%”></iframe>

The css code is as follows : Link to Pastbin
<iframe src=”http://pastebin.com/embed_iframe.php?i=dTuCFAf5&#8243; style=”border:none;width:100%”></iframe>


Marcel Snoeck

August 22, 2013 at 12:38 am

The following Links will work better:
CSS file : http://pastebin.com/dTuCFAf5
PHP file : http://pastebin.com/KWn6HVQk

Thanks for your support and feedback


Dean

August 22, 2013 at 1:13 am

OK,

I am currently confused by this.

I added your PHP and CSS direct to both my offline and live test servers, and it works fine – the CSS is a little wonky, but the QR and MAP show up in PDF format which is the key thing.

http://www.thethingsimiss.com/?ticket_launch=true&id=11&r_id=1-5214a616c8996&html=true&&pdf=true

Looking at the code there should be nothing wrong, you have literally just moved things about. As such I can only assume its a server issue – somehow it isn’t connecting to Google API’s (both the map and QR code are generated by Google).


Marcel Snoeck

August 22, 2013 at 1:35 am

Hi Dean,
The main thing is why is it displayed in the browser, and not when I click on print or PDF.
I also get sometimes the MAP and not the QCR Code.
It is realy strange.
I have more or less the same thing on my local test system
I can give you fully acces to that part if you want.

If you want I can give you access to the test environment.

Thanks for your support and quick response.


Dean

August 22, 2013 at 1:38 am

Sure, by all means send the credentials to the test site. Do I have permission to deactivate plugins/theme in order to test for conflicts?

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

NOTE: login details need to be Admin level and FTP details are appreciated.


Marcel Snoeck

August 22, 2013 at 3:34 am

Hi Dean,

I just send you the login information.
And now I test it again and it works.
Really strange

Could this be an memory problem on the hosting party, because I tested at the end of the day.
Know I test ik in the morning and it seems to work know.

Best regards Marcel


Dean

August 22, 2013 at 3:55 am

It could be, I am thinking it is server related, but i will still take a quick look at your site and see if there is anything obvious.


Marcel Snoeck

August 22, 2013 at 4:02 am

I just notice when I click on the Print option the Header Image is not printed.
When I save it as PDF I will get the Image.


Dean

August 22, 2013 at 4:07 am

Print works fine for me from your link, in both Chrome and Firefox.

There isn’t anything that I can see on your site that could be causing this, but it may be time to troubleshoot.

Can you deactivate all plugins except Event Espresso and Ticketing, and also revert to a default theme such as TwentyTwelve and see if the issue perists.

If it does not occur, then start bringing things back one by one, starting with the theme, and testing the ticket each time something is re-activated.


Marcel Snoeck

August 22, 2013 at 3:11 pm

Hi I have test it on my acceptance environment, as follows.
1. disable all plug-ins except EE and Ticketing.
2. Increase memory from default to 96 MB
in wp-config.php file define(‘WP_MEMORY_LIMIT’, ’96M’);
3. Test ticket display from the backoffice.
4. Click on PDF file
First QCR Code was displayed but no Google Map (red cross)
5. Refresh PDF Download page
No QCR Code any more and no Google Map (Red Cross)
6. Refresh again
It was spread on two pages

I hope this will help to investigate the problem.
I need activate all plugins because people are testing the whole process.
You can access my own test envirionment with the provided login information.


Sidney Harrell

August 22, 2013 at 8:03 pm

I tested with the server you sent access to, and I couldn’t get it to fail. But I am seeing the problem in the link in the original post. What is most likely causing the problem is permissions in the directory that dompdf is trying to temporarily store the images. You might want to try something like:

$temp=sys_get_temp_dir();
var_dump($temp);

to try to find what the temporary directory dompdf is using, and then check the permissions of that directory to make sure that php on your system can read and write to it.


Marcel Snoeck

August 23, 2013 at 7:53 am

Hi Sidney, I could understand when it will be al the time the same kind of error/problem. But what I do not understand, when I open the first time the PDF it looks ok, After refresh PDF Load page QR code is missing and/or Google Map is Missing, or both.

When I use the print button it seems that I remove always the picture(image) of the ticket, what I have defined as background.

So their are 2 main problems.
1. PDF displays intermittend the QR Code and Google Map
2. Print Removed the image (background image)

This is all tested on the
URL: http://www.fmtools.nl/fmgroupevents/?ticket_launch=true&id=14&r_id=7-5213d1a0ae80a&html=true

The Hosting Provider Give me feedback about the TMP dir.


Dean

August 25, 2013 at 11:43 pm

Hi Marcel,

Did you check the temp folder to see if it was writeable or not?


Marcel Snoeck

August 26, 2013 at 2:00 am

My Hosting Party has created an test file, to see what the temp folder pointing to :
http://www.fmtools.nl/fmgroupevents/test.php

The result is : string ‘/tmp’ (length=4)

I have created an tmp dir in my home dir of the domain http://www.fmtools.nl and also in the root dir of wordpress.

They are both rwx for the user and r_x for group.

If you want I can send you the FTP login for this website.
Remember this is the acceptance envirionment, and they are at the moment busy with testing.

Best regards Marcel Snoeck


Dean

August 29, 2013 at 5:00 am

Hi Marcel,

Sorry for the slow response.

Yes please send in FTP access. Currently I am at a loss why this is not functioning for you so I am hoping it is just a server permissions issue.

please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level and FTP details are appreciated.


Dean

September 2, 2013 at 6:08 am

Hi Marcel,

I got the log in details. Nothing looks wrong as such. I also tested your site again, as you mention it is now working on the production site barring printing. Everything printed off fine here. When you said the header wont print, do you mean the banner image or something else?


Marcel Snoeck

September 2, 2013 at 6:38 am

Hi Dean,

Yes I mean the Banner what you see in the screen.
I know this is minor.
But when My customer want this I have to look for an solution.

Thanks for your support.


Dean

September 2, 2013 at 6:44 am

OK, what browser was it printed off in? As mentioned, it printed fine for me (excusing my ink running out of course!) and that was in Chrome.


Marcel Snoeck

September 3, 2013 at 12:51 am

Hi Dean,

I have tried it in Mozilla FireFox Version 23.0.1
And also tried it with Google Chrome version Versie 29.0.1547.62 m
This is my Ticket Link where I test it with.
http://www.fmtools.nl/fmgroupevents/?ticket_launch=true&id=43&r_id=7-52247ec5525f9&html=true


Dean

September 3, 2013 at 2:33 am

Hi Marcel,

I’m using the same version of chrome and that ticket printed out with the “Change for more” banner with no issues.

Is it possible for you to try a different computer/printer as I am thinking it is more of an issue with system settings than the plugin itself.

Viewing 21 reply threads

The support post ‘Ticket Layout not printed or in PDF file.’ 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