<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with DateHandler.php on line 44 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/58666#M33284</link>
    <description>&lt;P&gt;I also posted on github, but thought this might get more visibility.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php/issues/232" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php/issues/232&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just running the Step 2 of the Hello World code from this page:&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/hello_world/" target="_blank"&gt;http://developer.authorize.net/hello_world/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I changed was to add my authentication information and I get this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parse error&lt;/STRONG&gt;&lt;SPAN&gt;: syntax error, unexpected '[' in &lt;/SPAN&gt;&lt;STRONG&gt;/home/calendarfund/www/www/vendor/jms/serializer/src/JMS/Serializer/Handler/DateHandler.php&lt;/STRONG&gt;&lt;SPAN&gt; on line &lt;/SPAN&gt;&lt;STRONG&gt;44&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on commenting out blocks of code I found that the error occurs during the call to:&lt;/P&gt;&lt;P&gt;$controller = new AnetController\CreateTransactionController($request);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried removing and reinstalling the jms directory and reinstalling the lib directory just to make sure there was no corruption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 22:11:43 GMT</pubDate>
    <dc:creator>AndrewRees66</dc:creator>
    <dc:date>2017-07-04T22:11:43Z</dc:date>
    <item>
      <title>Problem with DateHandler.php on line 44</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/58666#M33284</link>
      <description>&lt;P&gt;I also posted on github, but thought this might get more visibility.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php/issues/232" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php/issues/232&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just running the Step 2 of the Hello World code from this page:&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/hello_world/" target="_blank"&gt;http://developer.authorize.net/hello_world/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I changed was to add my authentication information and I get this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parse error&lt;/STRONG&gt;&lt;SPAN&gt;: syntax error, unexpected '[' in &lt;/SPAN&gt;&lt;STRONG&gt;/home/calendarfund/www/www/vendor/jms/serializer/src/JMS/Serializer/Handler/DateHandler.php&lt;/STRONG&gt;&lt;SPAN&gt; on line &lt;/SPAN&gt;&lt;STRONG&gt;44&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on commenting out blocks of code I found that the error occurs during the call to:&lt;/P&gt;&lt;P&gt;$controller = new AnetController\CreateTransactionController($request);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried removing and reinstalling the jms directory and reinstalling the lib directory just to make sure there was no corruption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 22:11:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/58666#M33284</guid>
      <dc:creator>AndrewRees66</dc:creator>
      <dc:date>2017-07-04T22:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DateHandler.php on line 44</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/58713#M33328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21981"&gt;@AndrewRees66&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't want to just leave this unanswered here. For the sake of anyone wandering through and seeing this, Andrew last posted on the GitHub thread that he was troubleshooting a PHP version issue with the hosting provider, where it looked like they were using a 5.3 version. Hopefully, that's all it was.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 21:17:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/58713#M33328</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-07-06T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DateHandler.php on line 44</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/61838#M36238</link>
      <description>&lt;P&gt;Posting here for anyone else who stumbles across this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it seems to be related to the PHP version on the server. In my case, despite setting the default PHP version to 5.6+ in my ISP's cpanel and despite my ISP's auto-generated phpinfo file showing v5.6+, uploading a phpinfo manually to the web root confirmed it was still defaulting to PHP v5.3.x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I was able to resolve this by deleting the .htacess file I had in the web root. Then I uploaded a completely fresh/new .htaccess file with "AddHandler php-stable .php" and this seemed to convince the server and/or Apache to default to the correct binaries. I confirmed this by refreshing the phpinfo file and, indeed, the error went away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be good to document this in a KB article somewhere as it sucked up a good two hours of my life. ;-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 05:42:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-DateHandler-php-on-line-44/m-p/61838#M36238</guid>
      <dc:creator>tempoconsulting</dc:creator>
      <dc:date>2018-02-26T05:42:52Z</dc:date>
    </item>
  </channel>
</rss>

