<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #401: Intransitionmovie.com errors with Google and Paypal</title>
    <link>http://localhost:8080/trac/ticket/401</link>
    <description>&lt;p&gt;
Having two issues currently on the tnmovie site, and you may be able to guide -
&lt;/p&gt;
&lt;p&gt;
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.
&lt;/p&gt;
&lt;p&gt;
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!)
Thanks
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/401</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 16 Mar 2012 12:56:54 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/401#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/401#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Looking at 1., first find the error message:
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep -rl "Error encountered during lookup" .
./public_html/wp-content/plugins/event-o-matic/venue.php
&lt;/pre&gt;&lt;p&gt;
This is using curl:
&lt;/p&gt;
&lt;pre class="wiki"&gt;function lookup($search){
        $url = sprintf('http://maps.googleapis.com/maps/api/geocode/json?address=%s&amp;amp;sensor=false', urlencode($search));
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        curl_close($ch);
        $response = json_decode( $response );
&lt;/pre&gt;&lt;p&gt;
And this was a function that was disabled to make the server as secure as possible, see &lt;a class="ext-link" href="https://ecodissident.net/wiki/Hosting_PHP"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://ecodissident.net/wiki/Hosting_PHP&lt;/a&gt; but someone else has had a problem with it so I'm going to enable &lt;tt&gt;curl_init&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;
Can you test it now and see if this has solved problem 1.?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 16 Mar 2012 13:22:35 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/401#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/401#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.1&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Looking at 2.
&lt;/p&gt;
&lt;p&gt;
As you said, I can't see any errors in the &lt;tt&gt;paypal.txt&lt;/tt&gt; log file either.
&lt;/p&gt;
&lt;p&gt;
Looking at the apache logs there are 91 of these:
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep woocommerce error.log | grep -v mod_deflate
[Fri Mar 16 12:55:30 2012] [error] [client 66.211.170.66] 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
&lt;/pre&gt;&lt;p&gt;
And this IP address is Paypal:
&lt;/p&gt;
&lt;pre class="wiki"&gt;host 66.211.170.66
  66.170.211.66.in-addr.arpa domain name pointer notify.paypal.com.
&lt;/pre&gt;&lt;p&gt;
The code in question:
&lt;/p&gt;
&lt;pre class="wiki"&gt;                                                $message = woocommerce_mail_template(
                                                        __('Order refunded/reversed', 'woocommerce'),
                                                        sprintf(__('Order #%s has been marked as refunded - PayPal reason code: %s', 'woocommerce'), $order-&amp;gt;id, $posted['reason_code'] )
                                                );
&lt;/pre&gt;&lt;p&gt;
I have has a look around but haven't got to the bottom of this, but it appears this is the problem?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 16 Mar 2012 13:36:34 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/401#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/401#comment:3</guid>
      <description>
        &lt;p&gt;
Perhaps 2. needs to be raised with the woocommerce developers, ask them if they know of a fix for this error?
&lt;/p&gt;
&lt;pre class="wiki"&gt;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
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>laura</dc:creator>

      <pubDate>Fri, 16 Mar 2012 15:57:13 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/401#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/401#comment:4</guid>
      <description>
        &lt;p&gt;
Hi Chris re point 1 - all working with google lookups now. :)
&lt;/p&gt;
&lt;p&gt;
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.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 12 Oct 2012 12:23:18 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/401#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/401#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>