View Single Post
Old 21st May 2008, 23:08
gauthier gauthier is offline
Join Date: Oct 2007
Posts: 58
Thanks: 5
Thanked 3 Times in 2 Posts

Hi, thanks to grandpagenocide.

I am using the ispconfig_remoting_ext_beta4_os version of remote framework, ISPConfig 2.2.23 on OS Centos5.

It works fine to create webs, create users (email accounts) and update users. But it fails suspending or deleting webs.

I have already cheked the remote user has permissions to delete and update websites. And I am trying first supending and then deleting.

Debug shows the following:
soap_transport_http: port = 81
soap_transport_http: path = /remote/index.php
soap_transport_http: entered sendHTTPS() with data of length: 737
soap_transport_http: found proper separation of headers and document
soap_transport_http: cleaned data, stringlen: 186

soapclient: got response:
Fatal error: Call to a member function myGroups() on a non-object in /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_domain.lib.php on line 376
The line 376 is (I show it with the "------------->" string):

function domain_delete($doc_id, $doctype_id, $action, $die_on_error = '1') {
global $go_api, $go_info;

// If the currently logged in user is not admin or reseller, we will not allow
// him to delete this record
-------------> $tmp_groups = $go_api->groups->myGroups();
if(!is_array($tmp_groups)) {
$sql = "UPDATE isp_nodes SET status = 1 WHERE doc_id = '$doc_id' AND doctype_id = '$doctype_id'";
Does anybody know why is this ?

Also, I would like to know how shall I empty the recycle bins using framework.... (I thing there is no way...)

Thanks a lot.

Last edited by gauthier; 22nd May 2008 at 02:17.
Reply With Quote