Support

Home Forums Ticketing Add-on Download Ticket PDF doesnt show QR code (or other images)

Download Ticket PDF doesnt show QR code (or other images)

Posted: August 9, 2012 at 2:15 am

Viewing 17 reply threads


Rory McCarthy

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


Josh

  • Support Staff

August 9, 2012 at 7:58 am

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?


Rory McCarthy

August 9, 2012 at 8:20 am

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


Josh

  • Support Staff

August 9, 2012 at 10:09 am

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.


Rory McCarthy

August 9, 2012 at 10:14 am

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?


Josh

  • Support Staff

August 11, 2012 at 6:54 am

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?


Rory McCarthy

August 11, 2012 at 8:24 am

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


Josh

  • Support Staff

August 13, 2012 at 11:03 am

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?


James Mojonnier

August 15, 2012 at 9:44 pm

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 “…”):

Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/.../wp-includes/functions.php on line 2748

Notice: is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /home/.../wp-includes/functions.php on line 2748

Notice: Undefined property: stdClass::$venue_id in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 178

Notice: Undefined variable: map_image_class in /home/.../wp-content/plugins/event-espresso/includes/functions/main.php on line 856

Notice: Undefined property: stdClass::$event_link in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 313

Notice: Undefined property: stdClass::$event_url in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 314

Notice: Undefined property: stdClass::$venue_meta in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 349

Notice: Undefined property: stdClass::$venue_meta in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 350

Notice: Undefined property: stdClass::$venue_meta in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 352

Notice: Undefined property: stdClass::$venue_meta in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 353

Notice: Array to string conversion in /home/.../wp-content/plugins/espresso-ticketing/functions.php on line 386

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.


Josh

  • Support Staff

August 16, 2012 at 10:37 am

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?


James Mojonnier

August 16, 2012 at 1:15 pm

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.


Josh

  • Support Staff

August 16, 2012 at 4:02 pm

I believe you’ll need to enable the venue manager for the location and google map info to display on the ticket.


James Mojonnier

August 16, 2012 at 10:17 pm

Right you are! Apologies if that was in the documentation and I missed it. Many thanks!


Rory McCarthy

August 18, 2012 at 4:06 am

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


Seth Shoultes

  • Support Staff

August 20, 2012 at 3:46 pm

@Rory can you send us link to one of the tickets?


Rory McCarthy

August 20, 2012 at 4:09 pm

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


Seth Shoultes

  • Support Staff

August 20, 2012 at 5:10 pm

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.


Rory McCarthy

August 22, 2012 at 2:42 am

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!

Viewing 17 reply threads

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.

Event Espresso