Posted: August 9, 2012 at 2:15 am
|
Hi, I’ve installed the ticket plugin and everything seems to be (almost) working perfectly. Thanks to the support forum I’ve been able to add a short code to add the quantity for group bookings on the ticket also). The only issue I’m having is when a customer clicks Download PDF. The pdf is generated but it shows the image names instead of the actual images. So the logo or QR code is not shown on the PDF ticket. (I’ve since removed the Gravatar image but that also produced the name rather than the image). Any help would be greatly appreciated. Thanks |
Hi Rory, It’s possible that the server is missing a module that will allow the DOMPDF generator to generate the images. Are there any error messages that display when you try to download the PDF? |
|
|
Thanks for your reply Josh. I don’t see any error messages. The PDF downloads fine except the images only show the name of the image rather than the image itself. How might I check for the DOMPDF generator on the server? Thanks, Rory |
The DomPDF generator is included with the ticketing add-on. Some servers do not allow images to be opened remotely. Usually this will throw an error. One thing you can check is in the server’s phpInfo (usually this can be accessed from the host control panel, and there are WordPress plugins that will print this in the WP dashboard that can be installed) Look for the allow_url_fopen setting and check to see if this is set to On. Some hosts will set this to off by default. |
|
|
Thanks Josh, I’ve checked the phpinfo settings and the allow_url_fopen is set to On. Anything else I can check to get it working? |
Can you try setting wp_debug to true in wp-config.php to see if there are any errors that will display when the ticket page loads up? |
|
|
Thanks again Josh for your support. I set wp_debug to true as you suggested and saw the following errors when downloading the ticket: Notice: Undefined variable: map_image_class in /var/www/vhosts/oktoberfestbeag.ie/httpdocs/wp-content/plugins/event-espresso/includes/functions/main.php on line 856 Notice: Undefined property: stdClass::$event_link in /var/www/vhosts/oktoberfestbeag.ie/httpdocs/wp-content/plugins/espresso-ticketing/functions.php on line 316 Notice: Undefined property: stdClass::$event_url in /var/www/vhosts/oktoberfestbeag.ie/httpdocs/wp-content/plugins/espresso-ticketing/functions.php on line 317 Notice: Array to string conversion in /var/www/vhosts/oktoberfestbeag.ie/httpdocs/wp-content/plugins/espresso-ticketing/functions.php on line 392 It also gave the error message “failed to produce the pdf document”. When I set wp_debug to false again it produces the PDF only without the images as before. Thanks, Rory |
I get the same notices on my test server when wp_debug is set to true, but the images still appear. Can you try deactivating all plugins with the exception of Event Espresso and the ticketing add-on? |
|
|
All the information that ought to appear below the ticket itself is blank, including the event Location, More Information, Ticket Instructions, and the Google Map. I’ve tried a fresh install of all the components, but nothing will fix it. When wp_debug is set to true, I see the following errors (full addresses redacted with “…”):
I’ve tried turning all my other plugins off, but it doesn’t help. allow_url_fopen is set to On. Thank you in advance for your help on this. |
Is there a ticket template created in the ticketing add-on, and selected in the event editor? Also, is the venue manager switched on in Event Espresso>General settings? |
|
|
Venue Manager is switched off. I created a new ticket template to test it, and the Ticket Instructions did display, but the Location and Google map were still blank. |
I believe you’ll need to enable the venue manager for the location and google map info to display on the ticket. |
|
|
Right you are! Apologies if that was in the documentation and I missed it. Many thanks! |
|
Hi Josh, With regards the PDF ticket with no images, I disabled all plugins except the event ones but I still have the same issue with the ticket downloading but showing no images? Is there anything else I can try to fix the problem? Thanks |
@Rory can you send us link to one of the tickets? |
|
|
Hi Seth, You can view a pdf ticket from the link below. http://oktoberfestbeag.ie/?ticket_launch=true&id=42&r_id=5-502667190bade&html=true&pdf=true Thanks, Rory |
I can see the images here. So it may be like like Josh mentioned earlier, it looks like there may be a module missing from your server that handles the images in the PDF. If you need us to look into the issue with your server, we will need you to purchase a priority support token. |
|
|
Thanks for your help Seth. I’ve been onto the hosting guys and it turns out php safe mode was on which is what was causing the problem. Glad to say that it is now resolved and everything is working great with your plugin. Would highly recommend it! |
The support post ‘Download Ticket PDF doesnt show QR code (or other images)’ 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.