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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?