 |
vtiger The Honest Open Source CRM
|
| Previous topic :: Next topic |
| Author |
Message |
crissy2k
Joined: 05 Jul 2006
Posts: 10
|
| Posted: Wed Mar 05, 2008 6:56 am Post subject: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
i'm using vtigercrm 5.0.0 rc. yes, i got stuck in that version because i have made a lot of changes already in the application ( new modules, new tools, new layout, new email alerts/notifications etc). the crm has been in use since 2006. it's only now that the company wants to make use of the helpdesk/troubleticket module ( i've also finished customizing that) so that's why it's only now that i bothered to install the customer portal add-on - the closest version is 5.0.0 so i figured i install that. the problem is i always get invalid username and password upon login. i did some troubleshooting and found out that even though the username and password is correct (verified this with vtiger_portalinfo table), the result whenever $client->call('authenticate_user'....) is called is always empty. i tried to get past the login problem by hard coding the $_SESSION variables at CustomerAuthenticate.php (set the id,user_name etc). however, the tickets list is empty for the portal user even though there are existing tickets under that user. so i guessing it's the soap call problem. can someone point me in the right direction???
btw, ive also tried installing the latest customer portal version 5.0.3. unlike the 5.0.0 version, i get this constructor error -> 'Response not of type text/xml' with 5.0.3 |
|
| Back to top |
|
johnkolbert
Joined: 29 Feb 2008
Posts: 8
|
| Posted: Wed Mar 05, 2008 7:45 am Post subject: Re: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
This is probably much simpler answer then you are looking for, but just a thought. Are you sure that you checked the box for "Portal User" under the contact's info? Also, admin accounts in the vTiger system are not automatically created accounts in the Customer Portal I believe.
Hope that helps, sounds like your problem is more complex, but worth a shot. |
|
| Back to top |
|
crissy2k
Joined: 05 Jul 2006
Posts: 10
|
| Posted: Wed Mar 05, 2008 8:19 am Post subject: Re: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
| actually, the system emailed the username/passwords for the portal to corresponding contacts when i enabled the checkbox for 'Portal User' so I'm sure that's not it. |
|
| Back to top |
|
johnkolbert
Joined: 29 Feb 2008
Posts: 8
|
| Posted: Wed Mar 05, 2008 8:22 am Post subject: Re: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
One more simple solution possibility. Make sure you set the start and end date for support (next to the enable portal check box). If you don't have an end date that's beyond the current date, the password won't work.
For some reason you can only edit those dates by using the global "edit" button for the contact. |
|
| Back to top |
|
crissy2k
Joined: 05 Jul 2006
Posts: 10
|
| Posted: Wed Mar 05, 2008 8:37 am Post subject: Re: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
| i've checked that also - support start and end dates are valid |
|
| Back to top |
|
crissy2k
Joined: 05 Jul 2006
Posts: 10
|
| Posted: Thu Mar 06, 2008 7:18 am Post subject: Re: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
any other ideas?
below is the output of $client->debug_str
(note: i have masked the host,urls,username and password)
also, i can very well browse http://somehost.com/vtigerservice.php?service=customerportal and view the services there including authenticate_user
soapclient2: call: authenticate_user, Array, http://somehost.com, http://somehost.com, , rpc, encoded; endpointType:
soapclient2: serializing param array for operation authenticate_user
soapclient2: in serialize_val: someuser@somehost.com, user_name, , , , , encoded
soapclient2: in serialize_val: somepasswd, user_password, , , , , encoded
soapclient2: wrapping RPC request with encoded method element
soapclient2: endpoint: http://somehost.com/vtigerservice.php?service=customerportal, soapAction: http://somehost.com, namespace: http://somehost.com, style: rpc, use:
encoded
soapclient2: SOAP message length: 641 contents: someuser@somehost.comsomepasswd
soapclient2: transporting via HTTP
soapclient2: sending message, length: 641
soapclient2: transport debug data...
soap_transport_http: scheme = http
soap_transport_http: host = somehost.com
soap_transport_http: path = /vtigerservice.php
soap_transport_http: query = service=customerportal
soap_transport_http: entered send() with data of length: 641
soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host somehost.com, port 80
soap_transport_http: calling fsockopen with host somehost.com
soap_transport_http: socket connected
soap_transport_http: wrote data to socket, length = 864
soap_transport_http: read line of 24 bytes: HTTP/1.1 404 Not Found
soap_transport_http: read line of 37 bytes: Date: Thu, 06 Mar 2008 06:52:15 GMT soap_transport_http: read line of 32 bytes: Server: Apache/2.0.52 (CentOS)
soap_transport_http: read line of 21 bytes: Content-Length: 299
soap_transport_http: read line of 19 bytes: Connection: close
soap_transport_http: read line of 45 bytes: Content-Type: text/html; charset=iso-8859-1
soap_transport_http: read line of 2 bytes:
soap_transport_http: found end of headers after length 180
soap_transport_http: want to read content of length 299
soap_transport_http: read buffer of 299 bytes
soap_transport_http: read to EOF
soap_transport_http: read body of length 299
soap_transport_http: received a total of 479 bytes of data from server
soap_transport_http: closed socket
soap_transport_http: end of send()
soapclient2: got response, length: 299 type: text/html; charset=iso-8859-1
soapclient2: Entering parseResponse() for data of length 299 and type text/html; charset=iso-8859-1
soapclient2: Error: Response not of type text/xml |
|
| Back to top |
|
crissy2k
Joined: 05 Jul 2006
Posts: 10
|
| Posted: Thu Mar 06, 2008 8:22 am Post subject: Re: customer portal v5.0.0 problem with vtigercrm5.0.0rc |
|
|
persevere and you will be rewarded :)
i've finally fixed this
the HTTP/1.1 404 Not Found error in the SOAP call got me thinking that I may be able to browse http://somehost.com/vtigerservice.php?service=customerportal and see the WDSL for the services in it BUT can i browse it from the server console? (i'm not working/testing on the consle). lynx-ing the URL on the console resulted to a 404 error :(
So after a fix on the httpd.conf and a restart of Apache, the site is now working well. |
|
| Back to top |
|
| |
|