vtiger.com - Home of vtiger CRM
Home Products Downloads Support Buy Support Partners Company  Community Forums Blogs   Extensions  
Call Us : +1 408-733-3229
 
Log in

Register | Forgot password ?
<<August 2010>>
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

 Search this forum

SourceForge.net Logo


vtiger CRM Webservices
Post new topic   Reply to topic  Forum Home -> General Discussions Previous topic :: Next topic
Goto page Previous  1, 2, 3, 4, 5  Next

Post  naviX   Post subject: Re: vtiger CRM Webservices
     
Tue Feb 17, 2009 8:08 am 
Posts: 1 
 
  Reply with quote
Hallo,

I installed vtclient - Sample, but when I log with a admin account I can see this error:
Warning: sort() expects parameter 1 to be array, null given in C:\xampp\htdocs\crm\vtclient\index.php on line 29

It is error of function doListTypes(), and I can't see any module in the module list. It seems to be something like permission module issue...

Any suggestions?

Thanks, Ivan

    View user's profile Send private message

Post  codeslush   Post subject: Re: vtiger CRM Webservices
     
Tue Feb 17, 2009 3:51 pm 
Posts: 19 
 
  Reply with quote
I get the same exact error. As a result, the list of "modules" fails to populate with anything. I thought it may have been some newbie mistake and didn't want to post back-to-back problems since my first issue was clearly an improper setup.

If we can get an answer to this that would be great.

-M

    View user's profile Send private message

Post  mak   Post subject: Re: vtiger CRM Webservices
     Senior Member
Wed Feb 18, 2009 7:25 am 
Posts: 178 
 
  Reply with quote
Hi avg,

Custom fields and other fields will be treated in a same way. they will be part of response of Desribe of the EntityType.

if you have any other questions feel free to get back to me

_________________
Thanks,
Vtiger Team,
MAK.

    View user's profile Send private message

Post  ynieves   Post subject: Re: vtiger CRM Webservices
     
Thu Feb 19, 2009 4:51 pm 
Posts: 3 
 
  Reply with quote
I present a same problem, how to fix.


Warning: sort() expects parameter 1 to be array, null given in /srv/www/html/vtclient/index.php on line 29

    View user's profile Send private message

Post  prasad.a   Post subject: Re: vtiger CRM Webservices
     Senior Member
Thu Feb 19, 2009 5:44 pm 
Posts: 1666 
 
  Reply with quote
Hi,

Try replacing vtclient/vtwsclib/Vtiger/WSClient.php with the file attached in this post (make sure to rename .php.txt to .php).

I have added a minor bug fix to doLogin function

Used:
Code:
$this->_sessionid = $resultdata[result][sessionName];


instead of:
Code:
$this->_sessionid = $resultdata[result][sessionId];


Regards,
Prasad
vtiger Team



WSClient.php.txt
 Description:

Download
 Filename:  WSClient.php.txt
 Filesize:  5.69 KB
 Downloaded:  209 Time(s)


    View user's profile Send private message

Post  ynieves   Post subject: Re: vtiger CRM Webservices
     
Thu Feb 19, 2009 10:30 pm 
Posts: 3 
 
  Reply with quote
Thanks Prasat.

Thats working now.

Yoinier.

    View user's profile Send private message

Post  avg   Post subject: Re: vtiger CRM Webservices
     
Tue Feb 24, 2009 9:55 pm 
Posts: 9 
 
  Reply with quote
mak wrote:
Custom fields and other fields will be treated in a same way. they will be part of response of Desribe of the EntityType.

Thank you, MAK, tested it and it works

    View user's profile Send private message

Post  khidhaboy   Post subject: Re: vtiger CRM Webservices - Illegal Token error
     
Tue Mar 24, 2009 11:25 am 
Posts: 9 
 
  Reply with quote
Hi all

I'm new to vTiger and am very keen on the latest version as I want to make use of the webservices features.

I have installed version 5.1.0 and have also installed both the vtwsclib and vtclient (Sample Web Services Client Application) as suggested in the very first post.

I can login to my installed 5.1.0 version and I've got my Access Key (so my install appears to be fine).
I can pull up the login box for vtclient and I can actually login using my admin account and the Access Key - I get to the next screen and I see a list of modules down the left hand side (Accounts, Calendar, Campaigns etc).

But I get the following error msg whenever I click on any module link

Zend_Json_Exception: Illegal Token in /home/vtigercrm510/vtclient/vtwsclib/third-party/Zend/Json/Decoder.php on line 451

What am I missing / or doing wrong?

help much appreciated

KB

    View user's profile Send private message

Post  khidhaboy   Post subject: Re: vtiger CRM Webservices - No records
     
Tue Mar 24, 2009 5:20 pm 
Posts: 9 
 
  Reply with quote
Hi,

I've tried to use the vtclient (sample) on another machine running WAMP, with Pear and Zend Framework 1.7.0 installed.

I get slightly further... I can login to my vtiger 5.1.0 install via vtclient, I can now click on a module - instead of getting Illegal Token i now get

"Warning: Invalid argument supplied for foreach() in C:\wamp\www\webservices\vtiger\vtclient\index.php on line 103"

Also, after a few attempts this disappears but I get "No Records", even when I do a search for say "Accounts" - still no records?

I know there is data there because I installed the crm with dummy data.

Help please!

KB

    View user's profile Send private message

Post  khidhaboy   Post subject: Re: vtiger CRM Webservices - vtwsclib
     
Wed Mar 25, 2009 2:34 pm 
Posts: 9 
 
  Reply with quote
Hi,

No replies to my previous 2 posts - I sure hope someone can help on this one - perhaps prasad.a?

I decided to make use of the vtwsclib (as per your topic post)

So far I've been able to use the wrapper class / functions to login, (doLogin) and even (doQuery).

However, if I purposely break say the doQuery by sending in an invalid sql statement or the login - i just get a blank screen and if I print_r(my Vtiger_WSClient Object) - the [error_msg] part of the array is blank. There are also no success code etc.

I am running vtiger 5.1.0 and also trying to make use of the vtwsclib - Web Services Client Library (so far v.impressed Very Happy ).

I've looked at the documentation and tutorial (which doesn't refer to using the vtwsclib) in there I see that you can check to see if the $jsonResponse['success']==false - if so you can echo out $jsonResponse['error]['message]

I want to be able to do something like above but using the library. Hope this all makes sence, below is my php code

<?php
include_once 'vtwsclib/Vtiger/WSClient.php';

$crmUrl = 'http://vtiger510.servername/';
$userName = 'admin';
$userAccesskey = 'abcd123';

$vtiger = new Vtiger_WSClient($crmUrl);

/* login */
$login = $vtiger->doLogin($userName, $userAccesskey);
if(!$login){
die("Login Failed");
}

/* Do Query */
$query = "select * from Contacts where account_id = '3x125';";
$contacts = $vtiger->doQuery($query);

echo '<pre>'.print_r($contacts, TRUE).'</pre>';
echo '<pre>'.print_r($vtiger, TRUE).'</pre>';
?>

    View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    vtiger Forum Index -> General Discussions All times are GMT
Leave a Testimonial
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

Jump to: