Support

Home Forums Event Espresso Premium Company Logo Cannot display in PDF

Company Logo Cannot display in PDF

Posted: May 3, 2017 at 5:28 am

Viewing 10 reply threads


Lawrence Lim

May 3, 2017 at 5:28 am

Dear Support,

I updated to the latest Event Espresso – 4.9.38.p today.
WP Version 4.7.4.

I am using iTheme and I have checked to make sure the setting is correct like “Enable HackRepair.com’s blacklist feature” is DISABLED. I also tried to disabled iTheme to make sure this is not the case.

I can generate the Booking Confirmation without any problem (With logo correctly). But when I hit on the PDF generation, it will say

“Image not found http://www.xxx.com/d/logo/xxxLogox250x250.png” inside the PDF.

If I remove the logo, all works well without any warning (but without the logo).

Can You assist?

Cheers
Lawrence


Tony

  • Support Staff

May 3, 2017 at 5:57 am

Hi Lawrence,

DOMPDF (which we use to generate the PDF’s) requires that allow_url_fopen is enabled on your server, can you check with your host and confirm if that is enabled.

If not they will need to enable it on your site for the PDF’s to work correctly.


Lawrence Lim

May 3, 2017 at 6:47 am

Hi Tony

I confirmed it is working. Any other clue?
FYI the PDF is working, but the logo is not showing

My PHP parameter
** REMOVED **

  • This reply was modified 7 years, 5 months ago by Tony. Reason: Removed info


Lawrence Lim

May 3, 2017 at 6:50 am

How do I provide a test login for you to try to see what I meant?

These info here is open to public correct?


Tony

  • Support Staff

May 3, 2017 at 8:09 am

We don’t need to login to view this, a link to a test invoice will work fine.

If you enable WP_DEBUG on the site and download a PDF does it show any errors?

(The PDF may not open when you do this but the errors can be viewed using a text editor such as Sublime Text)

These info here is open to public correct?

That’s correct the are which is why I’ve removed your link from the above reply, you really don’t want those details public.


Lawrence Lim

May 3, 2017 at 8:18 am

Hi Tony,

Appreciate for the quick reply.

Invoice Link
http://www.jennybakery.sg/sg/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=receipt&context=purchaser&token=1-b6a77df8c749a38bad2dcd7d5bda3a22&GRP_ID=1&id=9701

/public_html/sg/wp-content/uploads/espresso/logs
—————————————————————————————-
[2017-05-03 13:34:57] Exception Details
Message: Unable to complete the request because the token is invalid.
Code: EE_Message_To_Generate_From_Request – _get_data_from_request – 99
File: /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_To_Generate_From_Request.php
Line No: 99
Stack trace:
#0 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_To_Generate_From_Request.php(54): EE_Message_To_Generate_From_Request->_get_data_from_request(‘0’)
#1 [internal function]: EE_Message_To_Generate_From_Request->__construct(Object(EE_Message_Resource_Manager), Object(EE_Request_Handler))
#2 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(886): ReflectionClass->newInstanceArgs(Array)
#3 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(689): EE_Registry->_create_object(‘EE_Message_To_G…’, Array, ‘lib’, false)
#4 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(467): EE_Registry->_load(Array, ‘EE_’, ‘Message_To_Gene…’, ‘lib’, Array, false, true, false)
#5 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(223): EE_Registry->load_lib(‘Message_To_Gene…’)
#6 [internal function]: EED_Messages->run(Object(WP_Query))
#7 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php(218): call_user_func(Array, Object(WP_Query))
#8 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php(171): EE_Module_Request_Router->_module_router(‘EED_Messages’, ‘run’)
#9 /home/jennybak/public_html/sg/wp-content/plugins/event-espresso-core-reg/core/EE_Front_Controller.core.php(414): EE_Module_Request_Router->resolve_route(‘ee’, ‘msg_url_trigger’)
#10 [internal function]: EE_Front_Controller->pre_get_posts(Object(WP_Query))
#11 /home/jennybak/public_html/sg/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)
#12 /home/jennybak/public_html/sg/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
#13 /home/jennybak/public_html/sg/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#14 /home/jennybak/public_html/sg/wp-includes/class-wp-query.php(1681): do_action_ref_array(‘pre_get_posts’, Array)
#15 /home/jennybak/public_html/sg/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()
#16 /home/jennybak/public_html/sg/wp-includes/class-wp.php(617): WP_Query->query(Array)
#17 /home/jennybak/public_html/sg/wp-includes/class-wp.php(735): WP->query_posts()
#18 /home/jennybak/public_html/sg/wp-includes/functions.php(955): WP->main(”)
#19 /home/jennybak/public_html/sg/wp-blog-header.php(16): wp()
#20 /home/jennybak/public_html/sg/index.php(17): require(‘/home/jennybak/…’)
#21 {main}
—————————————————————————————-


Tony

  • Support Staff

May 3, 2017 at 9:01 am

Can you enable WP_DEBUG and let me know when its on so I can download an invoice with that active please?


Tony

  • Support Staff

May 3, 2017 at 9:02 am

Infact, nevermind.

Here is the error:

Warning: getimagesize(http://www.jennybakery.sg/sg/wp-content/uploads/2017/05/JennyLogox250x250.png): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 377

403 Forbidden means your server is blocking the request, I’d recommend contacting your host and have them investigate this further.


Lawrence Lim

May 3, 2017 at 9:14 am

That’s interesting. As advised, I will contact Siteground to Investigate.


Tony

  • Support Staff

May 3, 2017 at 9:19 am

You could also try using a jpg rather than png, DOMPDF uses different functions based on the file format.

I don’t think it will make a difference in this case, but it is easy to confirm with a quick swap of the logo and download the PDF again.


Lawrence Lim

May 3, 2017 at 9:57 am

Just a follow-up to close the case if other people has similar issue.

http://www.example.com
vs
example.com

The default http://www.example.com points to cloudflare on my Siteground install and maybe thats where the problem is.

So I use the original server link without the “www.” and it works.

Can Close now.

Viewing 10 reply threads

The support post ‘Company Logo Cannot display 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