Ticket #401 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Intransitionmovie.com errors with Google and Paypal

Reported by: laura Owned by: laura
Priority: major Milestone:
Component: Live server Keywords:
Cc: chris Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.25


Having two issues currently on the tnmovie site, and you may be able to guide -

1 - We're using a simple plugin that checks the address input with Google to validate it for the 'share your screenings' section on the site.
Each time an address is input it comes up with an error. 'Error encountered during lookup'.
Worked all fine on my demo server, but not on the new hosting.
I've enabled an API key to be able to refer to the tnmovie site to see if that helps (the plugin doesn't require it), and also on the one item that was okay (transferred from the demo site) - and the google map doesn't show. Not sure if a settings on the webserver thing, or I need to add anything extra to the files.

2 - not sure if paypal has had some hiccups today and late yesterday. We're trying to find out from customers who seems to add an order but not be able to pay, to find out whether the problem is on our side, or when trying to complete the transaction in paypal. The orders show in the admin section of the site as pending, but no payment went through in paypal, nor any paypal logs showing in the wp-plugins/woocommerce/logs/paypal.txt - anything you spot in the server logs that would highlight any errors all welcomed.
Some orders have gone through - but a few have tried several times and not managed to pay.
(I had a quick look at the logs files via sftp, but I need a lesson in understanding all of those!)

Change History

comment:1 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.1
  • Total Hours changed from 0.0 to 0.1

Looking at 1., first find the error message:

grep -rl "Error encountered during lookup" .

This is using curl:

function lookup($search){
        $url = sprintf('http://maps.googleapis.com/maps/api/geocode/json?address=%s&sensor=false', urlencode($search));
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        $response = json_decode( $response );

And this was a function that was disabled to make the server as secure as possible, see https://ecodissident.net/wiki/Hosting_PHP but someone else has had a problem with it so I'm going to enable curl_init.

Can you test it now and see if this has solved problem 1.?

comment:2 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.15
  • Total Hours changed from 0.1 to 0.25

Looking at 2.

As you said, I can't see any errors in the paypal.txt log file either.

Looking at the apache logs there are 91 of these:

grep woocommerce error.log | grep -v mod_deflate
[Fri Mar 16 12:55:30 2012] [error] [client] PHP Fatal error:  Call to undefined function woocommerce_mail_template() in /home/transmovie/public_html/wp-content/plugins/woocommerce/classes/gateways/class-wc-paypal.php on line 532

And this IP address is Paypal:

host domain name pointer notify.paypal.com.

The code in question:

                                                $message = woocommerce_mail_template(
                                                        __('Order refunded/reversed', 'woocommerce'),
                                                        sprintf(__('Order #%s has been marked as refunded - PayPal reason code: %s', 'woocommerce'), $order->id, $posted['reason_code'] )

I have has a look around but haven't got to the bottom of this, but it appears this is the problem?

comment:3 Changed 5 years ago by chris

Perhaps 2. needs to be raised with the woocommerce developers, ask them if they know of a fix for this error?

PHP Fatal error:  Call to undefined function woocommerce_mail_template() in /home/transmovie/public_html/wp-content/plugins/woocommerce/classes/gateways/class-wc-paypal.php on line 532

comment:4 Changed 5 years ago by laura

Hi Chris re point 1 - all working with google lookups now. :)

re point 2 looks like some of the earlier payment issues with people is that they've tried to make a new order and they've gone through. Will log a comment re the errors in log files on their forums and git site for issues, just doing a google search on it, lots of people are getting these error messages in their log files.

comment:5 Changed 4 years ago by chris

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.