SoapClient CreateItem return 空
SoapClient CreateItem return null
我在 kohana fw 上写了一个应用程序。由于某些原因,我不得不在 linux server(rhel6) 上重新编译 php ,并且一些使用 ms exchange 的进程死了。
新 php 使用此配置选项重新编译:
./configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu
--target=x86_64-redhat-linux-gnu
--program-prefix=
--prefix=/usr
--exec-prefix=/usr
--bindir=/usr/bin
--sbindir=/usr/sbin
--sysconfdir=/etc
--datadir=/usr/share
--includedir=/usr/include
--libdir=/usr/lib64
--libexecdir=/usr/libexec
--localstatedir=/var
--sharedstatedir=/var/lib
--mandir=/usr/share/man
--infodir=/usr/share/info
--with-libdir=lib64
--with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php.d
--disable-debug
--enable-shared
--disable-rpath
--without-pear
--without-bz2
--with-exec-dir=/usr/bin
--with-freetype-dir=/usr
--with-png-dir=/usr
--with-xpm-dir=/usr
--enable-gd-native-ttf
--without-gdbm
--with-gettext
--with-gmp
--with-iconv
--with-jpeg-dir=/usr
--with-openssl
--with-pcre-regex=/usr
--with-zlib
--with-layout=GNU
--enable-exif
--enable-ftp
--enable-magic-quotes
--enable-sockets
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
--enable-ucd-snmp-hack
--enable-shmop
--enable-calendar
--without-sqlite
--with-libxml-dir=/usr
--with-xml
--enable-xml
--with-system-tzdata
--with-apxs2=/usr/sbin/apxs
--without-gd
--disable-dom
--disable-dba
--without-unixODBC
--enable-pdo
--disable-xmlreader
--disable-xmlwriter
--enable-sqlite3
--with-sqlite3
--disable-phar
--disable-fileinfo
--enable-json
--without-pspell
--enable-wddx=shared
--with-curl
--disable-posix
--disable-sysvmsg
--disable-sysvshm
--disable-sysvsem
--with-pdo-informix=/opt/IBM/informix
--enable-intl
--enable-mbstring
--with-mysql
--with-mysqli
--enable-pcntl
--with-pdo-mysql
--with-pspell
--with-libedit
--with-readline
--enable-shmop
--with-snmp
--enable-soap
--enable-sockets
--without-pdo-pgsql
--with-pdo-dblib
--with-imap=/usr/local/src/imap-2007e
--with-imap-ssl
好吧,我所知道的是 windows 上项目的本地副本仍然可以发送邮件,但服务器版本不会。我搜索了所有日志并没有发现任何有价值的错误,但仅在访问日志中,并且仅包含请求时间和 n 条评论。
当我在代码中搜索时,为了找出代码失败的地方,我到了创建项目的地步:
$response = $this->client->CreateItem($CreateItem);
var_dump($response);die();
即returns空。在本地机器上这里是对象。
p.s:有关更多信息,请提供唯一的跟踪...((
exception 'ErrorException' with message 'Trying to get property of non-object' in /opt/project/www/modules/exchangeclient/classes/exchangeclient.php:446
Stack trace:
#0 /opt/project/www/modules/exchangeclient/classes/exchangeclient.php(446): Kohana_Core::error_handler(8, 'Trying to get p...', '/opt/project/ww...', 446, Array)
#1 /opt/project/www/application/classes/controller/backend/mail.php(284): ExchangeClient->send_message('krutitskiyvn@vt...', '???????????????...', 'action_bcosale()
#3 /opt/project/www/system/classes/kohana/request/client/internal.php(118): ReflectionMethod->invoke(Object(Controller_Backend_Mail))
#4 /opt/project/www/system/classes/kohana/request/client.php(64): Kohana_Request_Client_Internal->execute_request(Object(Request))
#5 /opt/project/www/system/classes/kohana/request.php(1138): Kohana_Request_Client->execute(Object(Request))
#6 /opt/project/www/index.php(115): Kohana_Request->execute()
#7 {main}"
它可能是什么以及如何检查?!
这很愚蠢,但那是缓存问题...重新启动服务器有帮助 =)
我在 kohana fw 上写了一个应用程序。由于某些原因,我不得不在 linux server(rhel6) 上重新编译 php ,并且一些使用 ms exchange 的进程死了。
新 php 使用此配置选项重新编译:
./configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu
--target=x86_64-redhat-linux-gnu
--program-prefix=
--prefix=/usr
--exec-prefix=/usr
--bindir=/usr/bin
--sbindir=/usr/sbin
--sysconfdir=/etc
--datadir=/usr/share
--includedir=/usr/include
--libdir=/usr/lib64
--libexecdir=/usr/libexec
--localstatedir=/var
--sharedstatedir=/var/lib
--mandir=/usr/share/man
--infodir=/usr/share/info
--with-libdir=lib64
--with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php.d
--disable-debug
--enable-shared
--disable-rpath
--without-pear
--without-bz2
--with-exec-dir=/usr/bin
--with-freetype-dir=/usr
--with-png-dir=/usr
--with-xpm-dir=/usr
--enable-gd-native-ttf
--without-gdbm
--with-gettext
--with-gmp
--with-iconv
--with-jpeg-dir=/usr
--with-openssl
--with-pcre-regex=/usr
--with-zlib
--with-layout=GNU
--enable-exif
--enable-ftp
--enable-magic-quotes
--enable-sockets
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
--enable-ucd-snmp-hack
--enable-shmop
--enable-calendar
--without-sqlite
--with-libxml-dir=/usr
--with-xml
--enable-xml
--with-system-tzdata
--with-apxs2=/usr/sbin/apxs
--without-gd
--disable-dom
--disable-dba
--without-unixODBC
--enable-pdo
--disable-xmlreader
--disable-xmlwriter
--enable-sqlite3
--with-sqlite3
--disable-phar
--disable-fileinfo
--enable-json
--without-pspell
--enable-wddx=shared
--with-curl
--disable-posix
--disable-sysvmsg
--disable-sysvshm
--disable-sysvsem
--with-pdo-informix=/opt/IBM/informix
--enable-intl
--enable-mbstring
--with-mysql
--with-mysqli
--enable-pcntl
--with-pdo-mysql
--with-pspell
--with-libedit
--with-readline
--enable-shmop
--with-snmp
--enable-soap
--enable-sockets
--without-pdo-pgsql
--with-pdo-dblib
--with-imap=/usr/local/src/imap-2007e
--with-imap-ssl
好吧,我所知道的是 windows 上项目的本地副本仍然可以发送邮件,但服务器版本不会。我搜索了所有日志并没有发现任何有价值的错误,但仅在访问日志中,并且仅包含请求时间和 n 条评论。
当我在代码中搜索时,为了找出代码失败的地方,我到了创建项目的地步:
$response = $this->client->CreateItem($CreateItem);
var_dump($response);die();
即returns空。在本地机器上这里是对象。
p.s:有关更多信息,请提供唯一的跟踪...((
exception 'ErrorException' with message 'Trying to get property of non-object' in /opt/project/www/modules/exchangeclient/classes/exchangeclient.php:446
Stack trace:
#0 /opt/project/www/modules/exchangeclient/classes/exchangeclient.php(446): Kohana_Core::error_handler(8, 'Trying to get p...', '/opt/project/ww...', 446, Array)
#1 /opt/project/www/application/classes/controller/backend/mail.php(284): ExchangeClient->send_message('krutitskiyvn@vt...', '???????????????...', 'action_bcosale()
#3 /opt/project/www/system/classes/kohana/request/client/internal.php(118): ReflectionMethod->invoke(Object(Controller_Backend_Mail))
#4 /opt/project/www/system/classes/kohana/request/client.php(64): Kohana_Request_Client_Internal->execute_request(Object(Request))
#5 /opt/project/www/system/classes/kohana/request.php(1138): Kohana_Request_Client->execute(Object(Request))
#6 /opt/project/www/index.php(115): Kohana_Request->execute()
#7 {main}"
它可能是什么以及如何检查?!
这很愚蠢,但那是缓存问题...重新启动服务器有帮助 =)