Home › Forums › WordPress › Web Invoice – Invoicing and billing for WordPress › Emails Not Being Sent
Tagged: emails
- This topic has 11 replies, 2 voices, and was last updated 13 years, 4 months ago by
patung.
-
AuthorPosts
-
July 9, 2010 at 06:54 #3667
patung
MemberSince (I think) upgrading to the latest version (2.0.5) no emails are being sent.
After clicking ’email to client’ the next page only partially loads, it stops loading at this point:
<div class='wrap'>
Normally, on admin.php?page=web-invoice/web-invoice.php the normal code is:
<div class='wrap'><form id="invoices-filter" action="" method="post">
<h2>Invoice Overview <a class="button add-new-h2" href="admin.php?page=new_web_invoice">Add New</a></h2>
<div class="tablenav clearfix">
<div class="alignleft"><select name="web_invoice_action">
<form id="invoices-filter" action="" method="post">
<h2>Invoice Overview <a class="button add-new-h2" href="admin.php?page=new_web_invoice">Add New</a></h2>
<div class="tablenav clearfix">
<div class="alignleft"><select name="web_invoice_action">etc, etc.
But after trying to email the page stops loading at div class=’wrap’.
I’ve tested this on two installs of the plugin, one on mainblog.com and one on subblog.mainblog.com and both are same.
July 9, 2010 at 07:32 #5284patung
MemberSame problem in 2.0.4, but reversion to 2.0.3 fixes it.
July 9, 2010 at 10:22 #5287S H Mohanjith
MemberIf you do not have any issue with PDF generation only other issue could be PHP running out of memory. Please set
memory_limit
to at least64M
and try. Also remember to look at your web server error log after enabling php error logging.July 9, 2010 at 11:49 #5290patung
MemberWell in php.ini I have
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M
July 9, 2010 at 12:07 #5293patung
MemberWell in php.ini I have
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M
____________________
I checked my error_log in /var/log/httpd/ there are lots of email/Horde errors listed at the relevant time, but they are ‘normal’ errors that happen all the time every day, I don’t think related to Web Invoice, like
[Fri Jul 09 17:16:14 2010] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Can't load Horde/SessionObjects.php, open_basedir restriction. in /usr/share/psa-horde/ingo/lib/Storage.php on line 276, referer: http://webmail.domain.com/services/portal/sidebar.php
[Fri Jul 09 17:16:15 2010] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/share/psa-horde/imp/themes/wps_sober/graphics/empty_spam.png, referer: http://webmail.domain.com/imp/mailbox.php?no_newmail_popup=1&mailbox=INBOXNot sure if I have to do any special enabling of errors…
July 9, 2010 at 13:41 #5296S H Mohanjith
MemberMost of the time sudden exit is caused by running out of memory, specially when it works for other users. Please try to increase the memory limit gradually until Web Invoice starts to work completely.
PDF generation could take upto 25 MB. Anyways, can you please try setting
memory_limit
to 128M and try.July 9, 2010 at 14:55 #5299patung
MemberI tried it with 128mb, still same, nothing in error log. It’s not a php blank white page of death, just a partial load of the page. Not sure where else to look for problems.
Just to clarify, page output stops just before this:
<div id="message" class='updated fade' ><p>Successfully sent 1 Web Invoices(s).</p></div><form id="invoices-filter" action="" method="post">
July 9, 2010 at 17:46 #5302S H Mohanjith
MemberCan you please set
display_errors = On
in your php.ini ? That will display the error being caused.July 9, 2010 at 18:49 #5305patung
MemberFatal error: Call to undefined function sys_get_temp_dir() in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/web-invoice/Functions.php on line 969
July 9, 2010 at 20:55 #5308S H Mohanjith
MemberSee http://code.google.com/p/web-invoice/issues/detail?id=21 . Release will be made soon. Thanks for all the help figuring out this issue, much appreciated.
July 9, 2010 at 22:58 #5311S H Mohanjith
MemberPlease try 2.0.6 and let me know how it goes
July 10, 2010 at 07:10 #5314patung
MemberThanks for your work, all fine now.
-
AuthorPosts
- You must be logged in to reply to this topic.