duanmo5724 2013-08-31 20:40
浏览 36
已采纳

在CodeIgniter中运行时出现nuSOAP库错误

while running nusoap 0.9.5 i get this error

A PHP Error was encountered

Severity: Warning

Message: Attempt to modify property of non-object

Filename: nusoap/nusoap.php

Line Number: 4694

i found a patch while searching Dr. Google that supposed to solve this probem nusoap-version-0-9-5-attempt-to-modify-property-of-non-object-in-nusoap-php

and even though it solved the problem while run not from inside CodeIgniter, while i do it came up with a new error

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: nusoap/nusoap.php

Line Number: 4693

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: nusoap/nusoap.php

Line Number: 4695

  • 写回答

1条回答 默认 最新

  • dth2331 2013-09-02 14:55
    关注

    Fortunately Noah Eltzroth from http://www.noaheltzroth.com/ helped me to solve this problem

    after doing this

    To fix this problem I modified line 4694 in nusoap.php from:

    $this->schemas[$ns]->imports[$ns2][$ii]['loaded'] = true;
    

    To this:

    $this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true;
    

    if you still get the same error i got in the CodeIgniter, simply add @ operator to remove the errors

    the script works even though it shows the error, it is fine to hide the error

    if (! @$list2[$ii]['loaded']) {
        $this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true;
        $url = @$list2[$ii]['location'];
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥30 求解达问题(有红包)