Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2017-07-25 21:22:29

alex43210
Member
Registered: 2017-05-14
Posts: 11

Problems with transfering to other departament

E.g. I have few departaments robot/humans....

By default messages routed to departament "robot" - and there I have some bot (that must redirect chats by some user and text processing results to "humans" departament)

I created role "Operators" with (tempary) full rights (in /site_admin/permission/editrole/3) and their own group:

Hp8CiGX.png

Finally I created account with "Operators" group:

1501017499_.jpg

And assign it to "human" departament:

1501017542_.png

So now I'm logged in as admin, create some chat (associated with departament "robot"), write some messages.
In other browser session I logged in as Operators-related account.
As admin I'm transferring chat to other departament.

1501017625_.png

As operator I see chat in "Transfered chats":

1501017675_.png

But when I click on chat title link - I see next rights-related error:
1501017733_.jpg
(stacktrace added by myself with modification of adminchat template)

P.S. Same results when I trying to transfer to operator instead of departament transfering

Last edited by alex43210 (2017-07-25 21:28:14)

Offline

#2 2017-07-25 21:36:41

alex43210
Member
Registered: 2017-05-14
Posts: 11

Re: Problems with transfering to other departament

I found that in browser console on operator side I have next:
"/index.php/site_admin/chat/accepttransfer/31?_=1501018330938 Failed to load resource: the server responded with a status of 503 (Service Temporarily Unavailable)"

Requedt info there:


Request URL:MyAddress/index.php/site_admin/chat/accepttransfer/32?_=1501018407217
Request Method:GET
Status Code:503 Service Temporarily Unavailable
Remote Address:MyAddress:80
Referrer Policy:no-referrer-when-downgrade
Response Headers
Cache-Control:no-store, no-cache, must-revalidate
Connection:close
Content-Length:0
Content-Type:application/json; charset=utf-8
Date:Tue, 25 Jul 2017 21:34:15 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Retry-After:300
Server:Apache/2.4.18 (Ubuntu)
Status:503 Service Temporarily Unavailable

Request Headers
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate
Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Cookie:PHPSESSID=u9eapgfquv2fr7p4jkfc6b09n7
Host:MyAddress
Referer:MyAddress/index.php/site_admin/
User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36 Vivaldi/1.91.867.42
X-Requested-With:XMLHttpRequest

Query String Parameters
_:1501018407217

So I'll turn on debug options in settings and send more details (and, maybe - solution) later

Last edited by alex43210 (2017-07-25 21:40:03)

Offline

#3 2017-07-25 21:42:30

alex43210
Member
Registered: 2017-05-14
Posts: 11

Re: Problems with transfering to other departament

I found that I have next exception:

[== Undefined ==]
ezcPersistentQueryException Object
(
    [originalMessage] => A query failed internally in Persistent Object: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'user_typing_txt' at row 1 Query: 'UPDATE `lh_chat` SET `nick` = :ezcValue1, `status` = :ezcValue2, `status_sub` = :ezcValue3, `status_sub_arg` = :ezcValue4, `status_sub_sub` = :ezcValue5, `sender_user_id` = :ezcValue6, `time` = :ezcValue7, `user_id` = :ezcValue8, `hash` = :ezcValue9, `ip` = :ezcValue10, `referrer` = :ezcValue11, `dep_id` = :ezcValue12, `email` = :ezcValue13, `user_status` = :ezcValue14, `support_informed` = :ezcValue15, `country_code` = :ezcValue16, `country_name` = :ezcValue17, `user_typing` = :ezcValue18, `user_typing_txt` = :ezcValue19, `operator_typing` = :ezcValue20, `operator_typing_id` = :ezcValue21, `phone` = :ezcValue22, `has_unread_messages` = :ezcValue23, `has_unread_op_messages` = :ezcValue24, `last_user_msg_time` = :ezcValue25, `last_op_msg_time` = :ezcValue26, `last_msg_id` = :ezcValue27, `mail_send` = :ezcValue28, `lat` = :ezcValue29, `lon` = :ezcValue30, `city` = :ezcValue31, `additional_data` = :ezcValue32, `session_referrer` = :ezcValue33, `wait_time` = :ezcValue34, `chat_duration` = :ezcValue35, `chat_variables` = :ezcValue36, `priority` = :ezcValue37, `chat_initiator` = :ezcValue38, `user_tz_identifier` = :ezcValue39, `user_closed_ts` = :ezcValue40, `online_user_id` = :ezcValue41, `unread_messages_informed` = :ezcValue42, `unread_op_messages_informed` = :ezcValue43, `reinform_timeout` = :ezcValue44, `wait_timeout` = :ezcValue45, `wait_timeout_repeat` = :ezcValue46, `wait_timeout_send` = :ezcValue47, `timeout_message` = :ezcValue48, `transfer_timeout_ts` = :ezcValue49, `transfer_if_na` = :ezcValue50, `transfer_timeout_ac` = :ezcValue51, `na_cb_executed` = :ezcValue52, `fbst` = :ezcValue53, `nc_cb_executed` = :ezcValue54, `remarks` = :ezcValue55, `operation` = :ezcValue56, `operation_admin` = :ezcValue57, `screenshot_id` = :ezcValue58, `tslasign` = :ezcValue59, `chat_locale` = :ezcValue60, `chat_locale_to` = :ezcValue61, `unanswered_chat` = :ezcValue62, `product_id` = :ezcValue63, `uagent` = :ezcValue64, `device_type` = :ezcValue65 WHERE `id` = :ezcValue66'
    [message:protected] => A query failed internally in Persistent Object: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'user_typing_txt' at row 1 Query: 'UPDATE `lh_chat` SET `nick` = :ezcValue1, `status` = :ezcValue2, `status_sub` = :ezcValue3, `status_sub_arg` = :ezcValue4, `status_sub_sub` = :ezcValue5, `sender_user_id` = :ezcValue6, `time` = :ezcValue7, `user_id` = :ezcValue8, `hash` = :ezcValue9, `ip` = :ezcValue10, `referrer` = :ezcValue11, `dep_id` = :ezcValue12, `email` = :ezcValue13, `user_status` = :ezcValue14, `support_informed` = :ezcValue15, `country_code` = :ezcValue16, `country_name` = :ezcValue17, `user_typing` = :ezcValue18, `user_typing_txt` = :ezcValue19, `operator_typing` = :ezcValue20, `operator_typing_id` = :ezcValue21, `phone` = :ezcValue22, `has_unread_messages` = :ezcValue23, `has_unread_op_messages` = :ezcValue24, `last_user_msg_time` = :ezcValue25, `last_op_msg_time` = :ezcValue26, `last_msg_id` = :ezcValue27, `mail_send` = :ezcValue28, `lat` = :ezcValue29, `lon` = :ezcValue30, `city` = :ezcValue31, `additional_data` = :ezcValue32, `session_referrer` = :ezcValue33, `wait_time` = :ezcValue34, `chat_duration` = :ezcValue35, `chat_variables` = :ezcValue36, `priority` = :ezcValue37, `chat_initiator` = :ezcValue38, `user_tz_identifier` = :ezcValue39, `user_closed_ts` = :ezcValue40, `online_user_id` = :ezcValue41, `unread_messages_informed` = :ezcValue42, `unread_op_messages_informed` = :ezcValue43, `reinform_timeout` = :ezcValue44, `wait_timeout` = :ezcValue45, `wait_timeout_repeat` = :ezcValue46, `wait_timeout_send` = :ezcValue47, `timeout_message` = :ezcValue48, `transfer_timeout_ts` = :ezcValue49, `transfer_if_na` = :ezcValue50, `transfer_timeout_ac` = :ezcValue51, `na_cb_executed` = :ezcValue52, `fbst` = :ezcValue53, `nc_cb_executed` = :ezcValue54, `remarks` = :ezcValue55, `operation` = :ezcValue56, `operation_admin` = :ezcValue57, `screenshot_id` = :ezcValue58, `tslasign` = :ezcValue59, `chat_locale` = :ezcValue60, `chat_locale_to` = :ezcValue61, `unanswered_chat` = :ezcValue62, `product_id` = :ezcValue63, `uagent` = :ezcValue64, `device_type` = :ezcValue65 WHERE `id` = :ezcValue66'
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/html/ezcomponents/PersistentObject/src/persistent_session.php
    [line:protected] => 822
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/ezcomponents/PersistentObject/src/handlers/save_handler.php
                    [line] => 385
                    [function] => performQuery
                    [class] => ezcPersistentSession
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ezcQueryUpdate Object
                                (
                                    [values:ezcQueryUpdate:private] => Array
                                        (
                                            [`nick`] => :ezcValue1
                                            [`status`] => :ezcValue2
                                            [`status_sub`] => :ezcValue3
                                            [`status_sub_arg`] => :ezcValue4
                                            [`status_sub_sub`] => :ezcValue5
                                            [`sender_user_id`] => :ezcValue6
                                            [`time`] => :ezcValue7
                                            [`user_id`] => :ezcValue8
                                            [`hash`] => :ezcValue9
                                            [`ip`] => :ezcValue10
                                            [`referrer`] => :ezcValue11
                                            [`dep_id`] => :ezcValue12
                                            [`email`] => :ezcValue13
                                            [`user_status`] => :ezcValue14
                                            [`support_informed`] => :ezcValue15
                                            [`country_code`] => :ezcValue16
                                            [`country_name`] => :ezcValue17
                                            [`user_typing`] => :ezcValue18
                                            [`user_typing_txt`] => :ezcValue19
                                            [`operator_typing`] => :ezcValue20
                                            [`operator_typing_id`] => :ezcValue21
                                            [`phone`] => :ezcValue22
                                            [`has_unread_messages`] => :ezcValue23
                                            [`has_unread_op_messages`] => :ezcValue24
                                            [`last_user_msg_time`] => :ezcValue25
                                            [`last_op_msg_time`] => :ezcValue26
                                            [`last_msg_id`] => :ezcValue27
                                            [`mail_send`] => :ezcValue28
                                            [`lat`] => :ezcValue29
                                            [`lon`] => :ezcValue30
                                            [`city`] => :ezcValue31
                                            [`additional_data`] => :ezcValue32
                                            [`session_referrer`] => :ezcValue33
                                            [`wait_time`] => :ezcValue34
                                            [`chat_duration`] => :ezcValue35
                                            [`chat_variables`] => :ezcValue36
                                            [`priority`] => :ezcValue37
                                            [`chat_initiator`] => :ezcValue38
                                            [`user_tz_identifier`] => :ezcValue39
                                            [`user_closed_ts`] => :ezcValue40
                                            [`online_user_id`] => :ezcValue41
                                            [`unread_messages_informed`] => :ezcValue42
                                            [`unread_op_messages_informed`] => :ezcValue43
                                            [`reinform_timeout`] => :ezcValue44
                                            [`wait_timeout`] => :ezcValue45
                                            [`wait_timeout_repeat`] => :ezcValue46
                                            [`wait_timeout_send`] => :ezcValue47
                                            [`timeout_message`] => :ezcValue48
                                            [`transfer_timeout_ts`] => :ezcValue49
                                            [`transfer_if_na`] => :ezcValue50
                                            [`transfer_timeout_ac`] => :ezcValue51
                                            [`na_cb_executed`] => :ezcValue52
                                            [`fbst`] => :ezcValue53
                                            [`nc_cb_executed`] => :ezcValue54
                                            [`remarks`] => :ezcValue55
                                            [`operation`] => :ezcValue56
                                            [`operation_admin`] => :ezcValue57
                                            [`screenshot_id`] => :ezcValue58
                                            [`tslasign`] => :ezcValue59
                                            [`chat_locale`] => :ezcValue60
                                            [`chat_locale_to`] => :ezcValue61
                                            [`unanswered_chat`] => :ezcValue62
                                            [`product_id`] => :ezcValue63
                                            [`uagent`] => :ezcValue64
                                            [`device_type`] => :ezcValue65
                                        )

                                    [table:ezcQueryUpdate:private] => `lh_chat`
                                    [whereString:protected] => WHERE `id` = :ezcValue66
                                    [db:protected] => ezcDbHandlerMysql Object
                                        (
                                            [identifierQuoteChars:protected] => Array
                                                (
                                                    [start] => `
                                                    [end] => `
                                                )

                                            [dbParams:ezcDbHandlerMysql:private] => Array
                                                (
                                                    [phptype] => mysql
                                                    [dbsyntax] => mysql
                                                    [username] => root
                                                    [password] => 6xaz8m4r
                                                    [protocol] => tcp
                                                    [hostspec] => 127.0.0.1
                                                    [port] => 3306
                                                    [socket] => 
                                                    [database] => lhc
                                                )

                                            [dsn:ezcDbHandlerMysql:private] => mysql:dbname=lhc;host=127.0.0.1;port=3306
                                            [reconnectedCounter:ezcDbHandlerMysql:private] => 0
                                            [transactionNestingLevel:protected] => 0
                                            [transactionErrorFlag:protected] => 
                                        )

                                    [aliases:ezcQuery:private] => 
                                    [boundCounter:ezcQuery:private] => 66
                                    [boundParameters:ezcQuery:private] => Array
                                        (
                                        )

                                    [boundParametersType:ezcQuery:private] => Array
                                        (
                                        )

                                    [boundValues:ezcQuery:private] => Array
                                        (
                                            [:ezcValue1] => Alexander Pozharskiy (315742176)
                                            [:ezcValue2] => 1
                                            [:ezcValue3] => 1
                                            [:ezcValue4] => 
                                            [:ezcValue5] => 0
                                            [:ezcValue6] => 0
                                            [:ezcValue7] => 1501018432
                                            [:ezcValue8] => 3
                                            [:ezcValue9] => 8a7ebe90117cc8ed2f5f7a634550988873e2edf9
                                            [:ezcValue10] => 174.138.64.227
                                            [:ezcValue11] => 
                                            [:ezcValue12] => 2
                                            [:ezcValue13] => 
                                            [:ezcValue14] => 0
                                            [:ezcValue15] => 1
                                            [:ezcValue16] => 
                                            [:ezcValue17] => 
                                            [:ezcValue18] => 1501018703
                                            [:ezcValue19] => human (***.ru) has joined the chat!
                                            [:ezcValue20] => 0
                                            [:ezcValue21] => 0
                                            [:ezcValue22] => 
                                            [:ezcValue23] => 0
                                            [:ezcValue24] => 0
                                            [:ezcValue25] => 1501018703
                                            [:ezcValue26] => 0
                                            [:ezcValue27] => 615
                                            [:ezcValue28] => 0
                                            [:ezcValue29] => 0
                                            [:ezcValue30] => 0
                                            [:ezcValue31] => 
                                            [:ezcValue32] => 
                                            [:ezcValue33] => 
                                            [:ezcValue34] => 5
                                            [:ezcValue35] => 0
                                            [:ezcValue36] => 
                                            [:ezcValue37] => 0
                                            [:ezcValue38] => 0
                                            [:ezcValue39] => Europe/Moscow
                                            [:ezcValue40] => 0
                                            [:ezcValue41] => 0
                                            [:ezcValue42] => 0
                                            [:ezcValue43] => 0
                                            [:ezcValue44] => 0
                                            [:ezcValue45] => 0
                                            [:ezcValue46] => 0
                                            [:ezcValue47] => 0
                                            [:ezcValue48] => 
                                            [:ezcValue49] => 0
                                            [:ezcValue50] => 0
                                            [:ezcValue51] => 0
                                            [:ezcValue52] => 0
                                            [:ezcValue53] => 0
                                            [:ezcValue54] => 1
                                            [:ezcValue55] => 
                                            [:ezcValue56] => 
                                            [:ezcValue57] => 
                                            [:ezcValue58] => 0
                                            [:ezcValue59] => 0
                                            [:ezcValue60] => 
                                            [:ezcValue61] => 
                                            [:ezcValue62] => 0
                                            [:ezcValue63] => 0
                                            [:ezcValue64] => python-requests/2.18.1
                                            [:ezcValue65] => 0
                                            [:ezcValue66] => 71
                                        )

                                    [boundValuesType:ezcQuery:private] => Array
                                        (
                                            [:ezcValue1] => 2
                                            [:ezcValue2] => 2
                                            [:ezcValue3] => 2
                                            [:ezcValue4] => 2
                                            [:ezcValue5] => 2
                                            [:ezcValue6] => 2
                                            [:ezcValue7] => 2
                                            [:ezcValue8] => 2
                                            [:ezcValue9] => 2
                                            [:ezcValue10] => 2
                                            [:ezcValue11] => 2
                                            [:ezcValue12] => 2
                                            [:ezcValue13] => 2
                                            [:ezcValue14] => 2
                                            [:ezcValue15] => 2
                                            [:ezcValue16] => 2
                                            [:ezcValue17] => 2
                                            [:ezcValue18] => 2
                                            [:ezcValue19] => 2
                                            [:ezcValue20] => 2
                                            [:ezcValue21] => 2
                                            [:ezcValue22] => 2
                                            [:ezcValue23] => 2
                                            [:ezcValue24] => 2
                                            [:ezcValue25] => 2
                                            [:ezcValue26] => 2
                                            [:ezcValue27] => 2
                                            [:ezcValue28] => 2
                                            [:ezcValue29] => 2
                                            [:ezcValue30] => 2
                                            [:ezcValue31] => 2
                                            [:ezcValue32] => 2
                                            [:ezcValue33] => 2
                                            [:ezcValue34] => 2
                                            [:ezcValue35] => 2
                                            [:ezcValue36] => 2
                                            [:ezcValue37] => 2
                                            [:ezcValue38] => 2
                                            [:ezcValue39] => 2
                                            [:ezcValue40] => 2
                                            [:ezcValue41] => 2
                                            [:ezcValue42] => 2
                                            [:ezcValue43] => 2
                                            [:ezcValue44] => 2
                                            [:ezcValue45] => 2
                                            [:ezcValue46] => 2
                                            [:ezcValue47] => 2
                                            [:ezcValue48] => 2
                                            [:ezcValue49] => 2
                                            [:ezcValue50] => 2
                                            [:ezcValue51] => 2
                                            [:ezcValue52] => 2
                                            [:ezcValue53] => 2
                                            [:ezcValue54] => 2
                                            [:ezcValue55] => 2
                                            [:ezcValue56] => 2
                                            [:ezcValue57] => 2
                                            [:ezcValue58] => 2
                                            [:ezcValue59] => 2
                                            [:ezcValue60] => 2
                                            [:ezcValue61] => 2
                                            [:ezcValue62] => 2
                                            [:ezcValue63] => 2
                                            [:ezcValue64] => 2
                                            [:ezcValue65] => 2
                                            [:ezcValue66] => 2
                                        )

                                    [expr] => ezcQueryExpression Object
                                        (
                                            [db:protected] => ezcDbHandlerMysql Object
                                                (
                                                    [identifierQuoteChars:protected] => Array
                                                        (
                                                            [start] => `
                                                            [end] => `
                                                        )

                                                    [dbParams:ezcDbHandlerMysql:private] => Array
                                                        (
                                                            [phptype] => mysql
                                                            [dbsyntax] => mysql
                                                            [username] => root
                                                            [password] => 6xaz8m4r
                                                            [protocol] => tcp
                                                            [hostspec] => 127.0.0.1
                                                            [port] => 3306
                                                            [socket] => 
                                                            [database] => lhc
                                                        )

                                                    [dsn:ezcDbHandlerMysql:private] => mysql:dbname=lhc;host=127.0.0.1;port=3306
                                                    [reconnectedCounter:ezcDbHandlerMysql:private] => 0
                                                    [transactionNestingLevel:protected] => 0
                                                    [transactionErrorFlag:protected] => 
                                                )

                                            [aliases:ezcQueryExpression:private] => 
                                            [quoteValues:protected] => 1
                                            [intervalMap:protected] => Array
                                                (
                                                    [SECOND] => SECOND
                                                    [MINUTE] => MINUTE
                                                    [HOUR] => HOUR
                                                    [DAY] => DAY
                                                    [MONTH] => MONTH
                                                    [YEAR] => YEAR
                                                )

                                        )

                                )

                            [1] => 1
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/html/ezcomponents/PersistentObject/src/handlers/save_handler.php
                    [line] => 72
                    [function] => updateInternal
                    [class] => ezcPersistentSaveHandler
                    [type] => ->
                    [args] => Array
                        (
                            [0] => erLhcoreClassModelChat Object
                                (
                                    [id] => 71
                                    [nick] => Alexander Pozharskiy (315742176)
                                    [status] => 1
                                    [status_sub] => 1
                                    [status_sub_sub] => 0
                                    [time] => 1501018432
                                    [user_id] => 3
                                    [sender_user_id] => 0
                                    [hash] => 8a7ebe90117cc8ed2f5f7a634550988873e2edf9
                                    [ip] => 174.138.64.227
                                    [referrer] => 
                                    [dep_id] => 2
                                    [email] => 
                                    [user_status] => 0
                                    [support_informed] => 1
                                    [country_code] => 
                                    [country_name] => 
                                    [phone] => 
                                    [user_typing] => 1501018703
                                    [user_typing_txt] => human (***.ru) has joined the chat!
                                    [operator_typing] => 0
                                    [has_unread_messages] => 0
                                    [last_user_msg_time] => 1501018703
                                    [last_msg_id] => 615
                                    [mail_send] => 0
                                    [lat] => 0
                                    [lon] => 0
                                    [city] => 
                                    [additional_data] => 
                                    [session_referrer] => 
                                    [wait_time] => 5
                                    [chat_duration] => 0
                                    [priority] => 0
                                    [online_user_id] => 0
                                    [transfer_if_na] => 0
                                    [transfer_timeout_ts] => 0
                                    [transfer_timeout_ac] => 0
                                    [wait_timeout] => 0
                                    [wait_timeout_send] => 0
                                    [timeout_message] => 
                                    [user_tz_identifier] => Europe/Moscow
                                    [na_cb_executed] => 0
                                    [nc_cb_executed] => 1
                                    [fbst] => 0
                                    [operator_typing_id] => 0
                                    [chat_initiator] => 0
                                    [chat_variables] => 
                                    [remarks] => 
                                    [operation] => 
                                    [operation_admin] => 
                                    [screenshot_id] => 0
                                    [wait_timeout_repeat] => 0
                                    [unread_messages_informed] => 0
                                    [reinform_timeout] => 0
                                    [last_op_msg_time] => 0
                                    [has_unread_op_messages] => 0
                                    [unread_op_messages_informed] => 0
                                    [user_closed_ts] => 0
                                    [unanswered_chat] => 0
                                    [product_id] => 0
                                    [status_sub_arg] => 
                                    [tslasign] => 0
                                    [chat_locale] => 
                                    [chat_locale_to] => 
                                    [uagent] => python-requests/2.18.1
                                    [device_type] => 0
                                    [updateIgnoreColumns] => Array
                                        (
                                        )

                                    [user] => erLhcoreClassModelUser Object
                                        (
                                            [id] => 3
                                            [username] => human
                                            [password] => $2y$10$s6btqcGyAjeENszOa/DX6uMJY8yVly/wtWw4iSChZn1e2AIQj9tsG
                                            [email] => ***.ru
                                            [name] => human
                                            [filepath] => 
                                            [filename] => 
                                            [surname] => human
                                            [job_title] => 
                                            [departments_ids] => 2
                                            [skype] => 
                                            [xmpp_username] => 
                                            [disabled] => 0
                                            [hide_online] => 0
                                            [all_departments] => 0
                                            [invisible_mode] => 0
                                            [time_zone] => 
                                            [rec_per_req] => 0
                                            [session_id] => 
                                            [chat_nickname] => human
                                            [active_chats_counter] => 0
                                            [closed_chats_counter] => 0
                                            [pending_chats_counter] => 0
                                            [operation_admin] => 
                                            [inactive_mode] => 0
                                            [attr_int_1] => 0
                                            [attr_int_2] => 0
                                            [attr_int_3] => 0
                                        )

                                )

                            [1] => 1
                            [2] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/www/html/ezcomponents/PersistentObject/src/persistent_session.php
                    [line] => 431
                    [function] => update
                    [class] => ezcPersistentSaveHandler
                    [type] => ->
                    [args] => Array
                        (
                            [0] => erLhcoreClassModelChat Object
                                (
                                    [id] => 71
                                    [nick] => Alexander Pozharskiy (315742176)
                                    [status] => 1
                                    [status_sub] => 1
                                    [status_sub_sub] => 0
                                    [time] => 1501018432
                                    [user_id] => 3
                                    [sender_user_id] => 0
                                    [hash] => 8a7ebe90117cc8ed2f5f7a634550988873e2edf9
                                    [ip] => 174.138.64.227
                                    [referrer] => 
                                    [dep_id] => 2
                                    [email] => 
                                    [user_status] => 0
                                    [support_informed] => 1
                                    [country_code] => 
                                    [country_name] => 
                                    [phone] => 
                                    [user_typing] => 1501018703
                                    [user_typing_txt] => human (***.ru) has joined the chat!
                                    [operator_typing] => 0
                                    [has_unread_messages] => 0
                                    [last_user_msg_time] => 1501018703
                                    [last_msg_id] => 615
                                    [mail_send] => 0
                                    [lat] => 0
                                    [lon] => 0
                                    [city] => 
                                    [additional_data] => 
                                    [session_referrer] => 
                                    [wait_time] => 5
                                    [chat_duration] => 0
                                    [priority] => 0
                                    [online_user_id] => 0
                                    [transfer_if_na] => 0
                                    [transfer_timeout_ts] => 0
                                    [transfer_timeout_ac] => 0
                                    [wait_timeout] => 0
                                    [wait_timeout_send] => 0
                                    [timeout_message] => 
                                    [user_tz_identifier] => Europe/Moscow
                                    [na_cb_executed] => 0
                                    [nc_cb_executed] => 1
                                    [fbst] => 0
                                    [operator_typing_id] => 0
                                    [chat_initiator] => 0
                                    [chat_variables] => 
                                    [remarks] => 
                                    [operation] => 
                                    [operation_admin] => 
                                    [screenshot_id] => 0
                                    [wait_timeout_repeat] => 0
                                    [unread_messages_informed] => 0
                                    [reinform_timeout] => 0
                                    [last_op_msg_time] => 0
                                    [has_unread_op_messages] => 0
                                    [unread_op_messages_informed] => 0
                                    [user_closed_ts] => 0
                                    [unanswered_chat] => 0
                                    [product_id] => 0
                                    [status_sub_arg] => 
                                    [tslasign] => 0
                                    [chat_locale] => 
                                    [chat_locale_to] => 
                                    [uagent] => python-requests/2.18.1
                                    [device_type] => 0
                                    [updateIgnoreColumns] => Array
                                        (
                                        )

                                    [user] => erLhcoreClassModelUser Object
                                        (
                                            [id] => 3
                                            [username] => human
                                            [password] => $2y$10$s6btqcGyAjeENszOa/DX6uMJY8yVly/wtWw4iSChZn1e2AIQj9tsG
                                            [email] => ***.ru
                                            [name] => human
                                            [filepath] => 
                                            [filename] => 
                                            [surname] => human
                                            [job_title] => 
                                            [departments_ids] => 2
                                            [skype] => 
                                            [xmpp_username] => 
                                            [disabled] => 0
                                            [hide_online] => 0
                                            [all_departments] => 0
                                            [invisible_mode] => 0
                                            [time_zone] => 
                                            [rec_per_req] => 0
                                            [session_id] => 
                                            [chat_nickname] => human
                                            [active_chats_counter] => 0
                                            [closed_chats_counter] => 0
                                            [pending_chats_counter] => 0
                                            [operation_admin] => 
                                            [inactive_mode] => 0
                                            [attr_int_1] => 0
                                            [attr_int_2] => 0
                                            [attr_int_3] => 0
                                        )

                                )

                            [1] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/www/html/modules/lhchat/accepttransfer.php
                    [line] => 92
                    [function] => update
                    [class] => ezcPersistentSession
                    [type] => ->
                    [args] => Array
                        (
                            [0] => erLhcoreClassModelChat Object
                                (
                                    [id] => 71
                                    [nick] => Alexander Pozharskiy (315742176)
                                    [status] => 1
                                    [status_sub] => 1
                                    [status_sub_sub] => 0
                                    [time] => 1501018432
                                    [user_id] => 3
                                    [sender_user_id] => 0
                                    [hash] => 8a7ebe90117cc8ed2f5f7a634550988873e2edf9
                                    [ip] => 174.138.64.227
                                    [referrer] => 
                                    [dep_id] => 2
                                    [email] => 
                                    [user_status] => 0
                                    [support_informed] => 1
                                    [country_code] => 
                                    [country_name] => 
                                    [phone] => 
                                    [user_typing] => 1501018703
                                    [user_typing_txt] => human (***.ru) has joined the chat!
                                    [operator_typing] => 0
                                    [has_unread_messages] => 0
                                    [last_user_msg_time] => 1501018703
                                    [last_msg_id] => 615
                                    [mail_send] => 0
                                    [lat] => 0
                                    [lon] => 0
                                    [city] => 
                                    [additional_data] => 
                                    [session_referrer] => 
                                    [wait_time] => 5
                                    [chat_duration] => 0
                                    [priority] => 0
                                    [online_user_id] => 0
                                    [transfer_if_na] => 0
                                    [transfer_timeout_ts] => 0
                                    [transfer_timeout_ac] => 0
                                    [wait_timeout] => 0
                                    [wait_timeout_send] => 0
                                    [timeout_message] => 
                                    [user_tz_identifier] => Europe/Moscow
                                    [na_cb_executed] => 0
                                    [nc_cb_executed] => 1
                                    [fbst] => 0
                                    [operator_typing_id] => 0
                                    [chat_initiator] => 0
                                    [chat_variables] => 
                                    [remarks] => 
                                    [operation] => 
                                    [operation_admin] => 
                                    [screenshot_id] => 0
                                    [wait_timeout_repeat] => 0
                                    [unread_messages_informed] => 0
                                    [reinform_timeout] => 0
                                    [last_op_msg_time] => 0
                                    [has_unread_op_messages] => 0
                                    [unread_op_messages_informed] => 0
                                    [user_closed_ts] => 0
                                    [unanswered_chat] => 0
                                    [product_id] => 0
                                    [status_sub_arg] => 
                                    [tslasign] => 0
                                    [chat_locale] => 
                                    [chat_locale_to] => 
                                    [uagent] => python-requests/2.18.1
                                    [device_type] => 0
                                    [updateIgnoreColumns] => Array
                                        (
                                        )

                                    [user] => erLhcoreClassModelUser Object
                                        (
                                            [id] => 3
                                            [username] => human
                                            [password] => $2y$10$s6btqcGyAjeENszOa/DX6uMJY8yVly/wtWw4iSChZn1e2AIQj9tsG
                                            [email] => ***.ru
                                            [name] => human
                                            [filepath] => 
                                            [filename] => 
                                            [surname] => human
                                            [job_title] => 
                                            [departments_ids] => 2
                                            [skype] => 
                                            [xmpp_username] => 
                                            [disabled] => 0
                                            [hide_online] => 0
                                            [all_departments] => 0
                                            [invisible_mode] => 0
                                            [time_zone] => 
                                            [rec_per_req] => 0
                                            [session_id] => 
                                            [chat_nickname] => human
                                            [active_chats_counter] => 0
                                            [closed_chats_counter] => 0
                                            [pending_chats_counter] => 0
                                            [operation_admin] => 
                                            [inactive_mode] => 0
                                            [attr_int_1] => 0
                                            [attr_int_2] => 0
                                            [attr_int_3] => 0
                                        )

                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/html/lib/core/lhcore/lhmodule.php
                    [line] => 98
                    [args] => Array
                        (
                            [0] => /var/www/html/modules/lhchat/accepttransfer.php
                        )

                    [function] => include
                )

            [5] => Array
                (
                    [file] => /var/www/html/lib/core/lhcore/lhmodule.php
                    [line] => 486
                    [function] => runModule
                    [class] => erLhcoreClassModule
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [6] => Array
                (
                    [file] => /var/www/html/index.php
                    [line] => 39
                    [function] => moduleInit
                    [class] => erLhcoreClassModule
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
)

Offline

#4 2017-07-25 21:50:51

alex43210
Member
Registered: 2017-05-14
Posts: 11

Re: Problems with transfering to other departament

I found problem source. As I written in previous message - there exception during query execution:

[== Undefined ==]
 String data, right truncated: 1406 Data too long for column 'user_typing_txt' at row 1 Query: 'UPDATE `lh_chat` SET `nick` = :ezcValue1, `status` = :ezcValue2, `status_sub` = :ezcValue3, `status_sub_arg` = :ezcValue4, `status_sub_sub` = :ezcValue5, `sender_user_id` = :ezcValue6, `time` = :ezcValue7, `user_id` = :ezcValue8, `hash` = :ezcValue9, `ip` = :ezcValue10, `referrer` = :ezcValue11, `dep_id` = :ezcValue12, `email` = :ezcValue13, `user_status` = :ezcValue14, `support_informed` = :ezcValue15, `country_code` = :ezcValue16, `country_name` = :ezcValue17, `user_typing` = :ezcValue18, `user_typing_txt` = :ezcValue19, `operator_typing` = :ezcValue20, `operator_typing_id` = :ezcValue21, `phone` = :ezcValue22, `has_unread_messages` = :ezcValue23, `has_unread_op_messages` = :ezcValue24, `last_user_msg_time` = :ezcValue25, `last_op_msg_time` = :ezcValue26, `last_msg_id` = :ezcValue27, `mail_send` = :ezcValue28, `lat` = :ezcValue29, `lon` = :ezcValue30, `city` = :ezcValue31, `additional_data` = :ezcValue32, `session_referrer` = :ezcValue33, `wait_time` = :ezcValue34, `chat_duration` = :ezcValue35, `chat_variables` = :ezcValue36, `priority` = :ezcValue37, `chat_initiator` = :ezcValue38, `user_tz_identifier` = :ezcValue39, `user_closed_ts` = :ezcValue40, `online_user_id` = :ezcValue41, `unread_messages_informed` = :ezcValue42, `unread_op_messages_informed` = :ezcValue43, `reinform_timeout` = :ezcValue44, `wait_timeout` = :ezcValue45, `wait_timeout_repeat` = :ezcValue46, `wait_timeout_send` = :ezcValue47, `timeout_message` = :ezcValue48, `transfer_timeout_ts` = :ezcValue49, `transfer_if_na` = :ezcValue50, `transfer_timeout_ac` = :ezcValue51, `na_cb_executed` = :ezcValue52, `fbst` = :ezcValue53, `nc_cb_executed` = :ezcValue54, `remarks` = :ezcValue55, `operation` = :ezcValue56, `operation_admin` = :ezcValue57, `screenshot_id` = :ezcValue58, `tslasign` = :ezcValue59, `chat_locale` = :ezcValue60, `chat_locale_to` = :ezcValue61, `unanswered_chat` = :ezcValue62, `product_id` = :ezcValue63, `uagent` = :ezcValue64, `device_type` = :ezcValue65 WHERE `id` = :ezcValue66'

Where "[user_typing_txt] => human (***.ru) has joined the chat!" (52 characters)

As I can see in doc\update_db\structure.json:

[== Undefined ==]
{
 2921:                 "field": "user_typing_txt",
 2922                  "type": "varchar(50)",
 2923                  "null": "NO",

So seems like field is limited to 50 characters.
I changed user email to shorter - and chat accept request now work fine - so chat transferring works.

So there 2 solutions:
- (tempary) alter table lh_chat to make "user_typing_txt" field longer (e.g. 200 characters instead of 50. Or, maybe, text instead of varchar? But I'm not sure that it's good idea)
- make update that'll make it

Last edited by alex43210 (2017-07-25 21:52:01)

Offline

#5 2017-07-25 22:05:29

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Problems with transfering to other departament

Hi alex43210,
for bug report there are GitHub where issue are managed by the (busy) chat owner.
Here the forum is only for the basic help.

Thank you!
Have a nice time  smile  and thanks for your interest in Live helper chat!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#6 2017-07-25 22:32:12

alex43210
Member
Registered: 2017-05-14
Posts: 11

Re: Problems with transfering to other departament

Thanks. I posted issue there : https://github.com/LiveHelperChat/liveh … ssues/1071
Maybe some later (after mine tests) you'll see mine pull request with fix.

Offline

#7 2017-07-26 06:19:42

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Problems with transfering to other departament

Thank you smile


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer