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
May 3, 2017 at 5:57 am
Add New Note to this Reply
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
Add New Note to this Reply
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, 8 months ago by Tony . Reason: Removed info
Lawrence Lim
May 3, 2017 at 6:50 am
Add New Note to this Reply
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
May 3, 2017 at 8:09 am
Add New Note to this Reply
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
Add New Note to this Reply
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
May 3, 2017 at 9:01 am
Add New Note to this Reply
Can you enable WP_DEBUG and let me know when its on so I can download an invoice with that active please?
Tony
May 3, 2017 at 9:02 am
Add New Note to this Reply
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
Add New Note to this Reply
That’s interesting. As advised, I will contact Siteground to Investigate.
Tony
May 3, 2017 at 9:19 am
Add New Note to this Reply
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
Add New Note to this Reply
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.