Hi,
as a workaround, can you just place an empty "global_settings.php" file in
the services directory and see if that works? Parallely, we can
invesistigate what could be the problem.
Thanks,
Christian
Tobias Koller (GERMO GmbH) wrote:
>
> Hi list,
>
>
>
> till today I used qooxdoo 0.7.x for my application with php-request (not
> rpc).
>
> Today I downloaded v 1.0 and tried out the php rpc backend.
>
>
>
> But I have some problems with it.
>
>
>
> I downloaded the rpc to
>
> "myQooxdooAppRootFolder/services"
>
>
>
> And made a call like described in the api:
>
> _______________
>
> var rpc = new qx.io.remote.Rpc();
>
> rpc.setTimeout(10000);
>
> rpc.setUrl("http://localhost/myQooxdooApp/services");
>
> rpc.setServiceName("qooxdoo.test");
>
> rpc.setCrossDomain(true);
>
>
>
> // call a remote procedure -- takes no arguments, returns a
> string
>
> var that = this;
>
> this.RpcRunning = rpc.callAsync(
>
> function(result, ex, id)
>
> {
>
> that.RpcRunning = null;
>
> if (ex == null) {
>
> alert(result);
>
> } else {
>
> alert("Async(" + id + ") exception: " + ex);
>
> }
>
> },
>
> "method_getInteger");
>
> }
>
>
>
> _________________
>
> But I always get a timeout and firebug shows me this:
>
> _____________
>
>
>
> <br />
> Warning: require_once(global_settings.php) [ function.require-once
> function.require-once ]: failed to open
> stream: No such file or directory in
> c:\data\eclipse\MyQooxdooApp\services\server\AbstractServer.php
> on line 49<br />
> <br />
> Fatal error: require_once() [ function.require function.require ]: Failed
> opening required
> 'global_settings.php' (include_path='C:\PHP5_2\pear') in
> C:\data\eclipse\ MyQooxdooApp \services\server\AbstractServer.php
> on line 49<br />
> <br />
> Warning: require_once(global_settings.php) [ function.require-once
> function.require-once ]: failed to open
> stream: No such file or directory in C:\data\eclipse\ MyQooxdooApp
> \services\server\AbstractServer.php on line 49<br />
> <br />
> Fatal error: require_once() [ function.require function.require ]: Failed
> opening required
> 'global_settings.php' (include_path='C:\PHP5_2\pear') in
> C:\data\eclipse\ MyQooxdooApp \services\server\AbstractServer.php
> on line 49<br />
>
> _______________
>
>
>
> In the AbstractServer.php is some code like:
>
>
>
> _______________
>
> if ( file_exists("global_settings.php") )
>
> {
>
> require_once "global_settings.php";
>
> }
>
> _______________
>
>
>
> It seems that the file_exists can find the file but require_once
> doesn't.
>
> I guess the problem is, that AbstractServer.php is also included by
> index.php.
>
>
>
> Did anyone have the same problems???
>
>
>
> Is there a mistake with my clientside-Javascript-call?
>
>
>
> I'm using IIS and PHP 5.1.2.
>
>
>
>
>
> Thanks
>
> Tobi
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://n2.nabble.com/Problems-with-php-rpc-tp4265802p4266600.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel