codeigniter-3 - Authorize.Net API 没有响应
问题描述
突然间,我过去几年使用的代码现在开始抛出错误。我正在使用 codeigniter php 框架。
无法弄清楚发生了什么。
A PHP Error was encountered
Severity: Notice
Message: Undefined property: AuthorizeNetTD_Response::$xpath_xml
Filename: shared/AuthorizeNetXMLResponse.php
Line Number: 54
Backtrace:
File: /home/directpr/public_html/reports/new/application/lib/shared/AuthorizeNetXMLResponse.php
Line: 54
Function: _error_handler
File: /home/directpr/public_html/reports/new/application/controllers/Collectionupdate.php
Line: 258
Function: xpath
File: /home/directpr/public_html/reports/new/index.php
Line: 292
Function: require_once
Fatal error: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /home/directpr/public_html/reports/new/system/core/Common.php on line 658 and defined in /home/directpr/public_html/reports/new/system/core/Exceptions.php:190 Stack trace: #0 /home/directpr/public_html/reports/new/system/core/Common.php(658): CI_Exceptions->show_exception(Object(Error)) #1 [internal function]: _exception_handler(Object(Error)) #2 {main} thrown in /home/directpr/public_html/reports/new/system/core/Exceptions.php on line 190
A PHP Error was encountered
Severity: Error
Message: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /home/directpr/public_html/reports/new/system/core/Common.php on line 658 and defined in /home/directpr/public_html/reports/new/system/core/Exceptions.php:190 Stack trace: #0 /home/directpr/public_html/reports/new/system/core/Common.php(658): CI_Exceptions->show_exception(Object(Error)) #1 [internal function]: _exception_handler(Object(Error)) #2 {main} thrown
Filename: core/Exceptions.php
Line Number: 190
Backtrace:
解决方案
解决了这个问题。这是 Authorize 的问题,作为解决方案,我们已将 Live URL 更改为https://api2.authorize.net/xml/v1/request.api
推荐阅读
- r - 为什么我的新 var 名称显示为“... <- NULL”
- selenium - 使用 selenium webdriver 单击隐藏元素
- java - Spring Boot - SimpMessagingTemplate 没有在具有 Spring Boot 安全性的 Spring Boot WebSocket 中向客户端发送消息
- java - 媒体编解码器完全耗尽输出缓冲区
- python-3.x - 如何修复 Microsoft 扬声器识别 API 中未启动的响应
- multithreading - 使用 newrelic 和 kotlin 协程跟踪事务
- mysql - 如何将 XML 上传到 MySQL 以响应 axios 和 nodejs
- spring-boot - Spring Boot - Spring Cloud AWS:未找到区域
- android - 导航图范围内的 ViewModel 函数无法解析
- javascript - 如何结合两个javascript正则表达式或正则表达式