I am using UberCart 6.x-2.3, and Node Checkout 6.x-2.0-beta4 and when the order's status gets updated to complete everything works as expected except I receive an error message that says 'Unable to send e-mail. Please contact the site administrator if the problem persists.' and I receive no email alerting me the node has been published. When I turn off the node publish module and do the same steps the error never comes up. Additionally when I edit the node related to the order I get the status message that the 'Order has been marked as completed.' with the same email error message which tells me that it is trying to send another email when the node is edited. That can't be right. Can someone please help? Thanks.
Comments
Comment #1
twistedindustries commentedJust wondering, is this module still being maintained? Is anyone else experiencing this issue?
Comment #2
avpadernoDid you verify that the e-mail is correctly set?
Comment #3
twistedindustries commentedIt is set correctly.
Comment #4
avpadernoI am changing back status.
Comment #5
deleuje commentedI was looking through the issue queue here trying to decide if I should use this.
I am using the uc_node_checkout 6.x-2.0-beta4 myself and I have been doing some tests tonight and the error message mentioned in the OP occurred to me as well.
What I am saying is it may not be an issue pertaining to this module but uc_node_checkout (or perhaps ubercart itself).
Comment #6
Anonymous (not verified) commented@deleuje; I am not sure I understood correctly; are you using this module too?
Comment #7
deleuje commentedYeah, I was suggesting that the issue may be one of uc_node_checkout and not this module as I was getting similar errors earlier (though not using this module); but I see that he isn't getting errors when this module is disabled. So my speculation didn't have much merit to begin with.
Comment #8
avpadernoThe module is still maintained, but the maintenance level is minimum; this means that the code will be changed if somebody provides a patch, or points out what needs to be changed to fix an issue in the code.
Comment #9
avpadernoI am editing the issue title.
Comment #10
b0r7 commentedComment #11
Lilialex commentedI have the same error
Comment #12
uniquename commentednot sure, but the querys in uc_node_published_nodeapi return an empty result because they look for an order with the nid that is to be un/published, but uc_order_products contains the nid of the product... trying to get behind the logic...
Comment #13
uniquename commentedstill not sure if i'm on the right way, but i can't find the exact meaning of uc_node_published_nodeapi...
I guess there is some confusion in the multiple ways the un/-publishing could happen e.g. order gets updated, node is edited or another module like node_expire is doing that.
I could get it to work for me by just adding the functionaity directly into uc_node_checkout by changing the function uc_node_checkout_order to handle the un-/publishing. it is more or less just a copy and paste of the two ops update and delete.
my function looks like that now.
i'll be happy about thoughts and ideas...
Comment #14
SchwebDesign commentedany updates on this? Same problem here is the main issue as well as comment 12, likely will try implementing comment 13. Also, this module just doesn't seem to work for me. I'm guessing because of what's mentioned in 12. (I do have node checkout content type workflow setting set to unpublished) When checking out or manually changing order status to completed, the node is not published.
thanks for this great module... a necessary addition to node checkout. here's to hoping i can get it working...
Comment #15
SchwebDesign commentedalright i implemented the code from comment 13 and commented out function uc_node_published_nodeapi and now the node associated withthe order is correctly published/unpublished. I know that's not the right way to solve this and I'd prefer to keep this purely modular, but it was the only way i could get this working for me for now (under a time crunch). Thanks uniquename for posting that code.
Perhaps it'd help to know i have the auto_expire module installed and enabled for the node checkout content type. Perhaps thats conflicting?
Comment #16
ashhishhh commentedModule is working for me except the unwanted messages
on line number 67 and 91 variable $node->previous_status is NULL and never could be set to 1.
I change the load behavior
Comment #17
tanjerine commentedI don't know if this is specific to my installation of ubercart (6.x-2.4) with Node Publish (6.x-1.0-rc4), because I sort of inherited the half-built site from someone else, but this was how I fixed the "Unable to send email" message --
Basically for all the lines that had:
I changed it to:
Hope this helps.
Comment #18
peter.bod commentedI have the same problem as in #16
How can I remove the messages? "Order has been marked as completed."
Additionally, the word "Order" is a link to the "admin/store/orders/" which is not accessible by this user.
Comment #19
Matthi2 commentedHello,
i have had the same problem:
my solution is hacky, but it works ;-)
The user receives no email now.
Just look for
uc_node_published_update_notify($order);and comment it out.
Comment #20
millionaire commentedThanks @Matthi2 and @uniquename - both solved my problems
I also removed the a href on: 'Order @order has been marked as completed.',
That lost the dodgy link to the orders section.
The module has caused a couple of issues with "Job Posting" - oh well, one step forward, two steps back ;)
Comment #21
avpadernoI am closing this issue, since Drupal 6 is not supported anymore.