Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credit Card form won't load #25

Open
tipofloe opened this issue Apr 20, 2017 · 1 comment
Open

Credit Card form won't load #25

tipofloe opened this issue Apr 20, 2017 · 1 comment

Comments

@tipofloe
Copy link

Hello,

I am trying to integrate the payment gateway but during checkout when I select credit card/Heartland, the page gets "whited out" and then it "freezes".

The error message I get is:

Uncaught SyntaxError: Unexpected token < in JSON at position 2
at JSON.parse ()
at Object.success (/site/pub/static/version1492465544/frontend/theme/theme/en_US/HPS_Heartland/js/view/payment/method-renderer/heartland-method.js:75)
at fire (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at done (jquery.js:9310)
at XMLHttpRequest.callback (jquery.js:9720)

I also get an error report:

a:4:{i:0;s:306:"Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/magentotest/app/code/HPS/Heartland/Controller/Creditcard/Get.php:64) in /home/site/public_html/magentotest/vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php on line 125";i:1;s:1722:"#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'Cannot modify h...', '/home/site...', 125, Array)
#1 /home/site/public_html/magentotest/vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php(125): setcookie('X-Magento-Vary', '252f89d2ca7ad02...', 0, '/', '', true, true)
#2 /home/site/public_html/magentotest/vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php(78): Magento\Framework\Stdlib\Cookie\PhpCookieManager->setCookie('X-Magento-Vary', '252f89d2ca7ad02...', Array)
#3 /home/site/public_html/magentotest/vendor/magento/framework/App/Response/Http.php(85): Magento\Framework\Stdlib\Cookie\PhpCookieManager->setSensitiveCookie('X-Magento-Vary', '252f89d2ca7ad02...', Object(Magento\Framework\Stdlib\Cookie\SensitiveCookieMetadata))
#4 /home/site/public_html/magentotest/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http->sendVary()
#5 /home/site/public_html/magentotest/vendor/magento/framework/Interception/Interceptor.php(123): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor))
#6 /home/site/public_html/magentotest/var/generation/Magento/Framework/App/Response/Http/Interceptor.php(26): Magento\Framework\App\Response\Http\Interceptor->__callPlugins('sendResponse', Array, Array)
#7 /home/site/public_html/magentotest/vendor/magento/framework/App/Bootstrap.php(259): Magento\Framework\App\Response\Http\Interceptor->sendResponse()
#8 /home/site/public_html/magentotest/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#9 {main}";s:3:"url";s:53:"/magentotest/heartland/creditcard/get?
=1492497260251";s:11:"script_name";s:22:"/magentotest/index.php";}

I've reached out to Heartland and I've been told that I can get around the error by turning off display_errors within the PHP config. I have verified that display_errors is turned off inside php.ini in the webroot folder. Is there another location that I need to verify to turn this off? I've run a search but there was only one php.ini file.

Anyone come across this type of error message? In any case, I would greatly appreciate if anyone could shed some light into this.

Thank you!

@slogsdon
Copy link
Contributor

Hi @tipofloe! Apologies for the inconvenience here.

We are aware of this and are working on a fix. If disabling display_errors isn't working, disabling error reporting for warnings should do the trick until we can get our proper fix out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants