Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
Good.
Yesterday attempt to install the tool, but I was wrong.
In the install.php file when you insert the table lh_abstract_email_template there is no default value for user_mail_as_sender and can not do the insert as this field is not added.
[== PHP ==]
$db->query("CREATE TABLE IF NOT EXISTS `lh_abstract_email_template` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(250) NOT NULL,
`from_name` varchar(150) NOT NULL,
`from_name_ac` tinyint(4) NOT NULL,
`from_email` varchar(150) NOT NULL,
`from_email_ac` tinyint(4) NOT NULL,
`user_mail_as_sender` tinyint(4) NOT NULL,
`content` text NOT NULL,
`subject` varchar(250) NOT NULL,
`bcc_recipients` varchar(200) NOT NULL,
`subject_ac` tinyint(4) NOT NULL,
`reply_to` varchar(150) NOT NULL,
`reply_to_ac` tinyint(4) NOT NULL,
`recipient` varchar(150) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;");
$db->query("INSERT INTO `lh_abstract_email_template` (`id`, `name`, `from_name`, `from_name_ac`, `from_email`, `from_email_ac`, `content`, `subject`, `subject_ac`, `reply_to`, `reply_to_ac`, `recipient`,`bcc_recipients`) VALUES
(1,'Send mail to user','Live Helper Chat',0,'',0,'Dear {user_chat_nick},\r\n\r\n{additional_message}\r\n\r\nLive Support response:\r\n{messages_content}\r\n\r\nSincerely,\r\nLive Support Team\r\n','{name_surname} has responded to your request', 1,'',1,'',''),
(2,'Support request from user', '', 0, '', 0, 'Hello,\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nAdditional data, if any:\r\n{additional_data}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nLink to chat if any:\r\n{prefillchat}\r\n\r\nSincerely,\r\nLive Support Team', 'Support request from user', 0, '', 0, '{$adminEmail}',''),
(3, 'User mail for himself', 'Live Helper Chat', 0, '', 0, 'Dear {user_chat_nick},\r\n\r\nTranscript:\r\n{messages_content}\r\n\r\nSincerely,\r\nLive Support Team\r\n', 'Chat transcript', 0, '', 0, '',''),
(4, 'New chat request', 'Live Helper Chat', 0, '', 0, 'Hello,\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nClick to accept chat automatically\r\n{url_accept}\r\n\r\nSincerely,\r\nLive Support Team', 'New chat request', 0, '', 0, '{$adminEmail}',''),
(5, 'Chat was closed', 'Live Helper Chat', 0, '', 0, 'Hello,\r\n\r\n{operator} has closed a chat\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nAdditional data, if any:\r\n{additional_data}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nSincerely,\r\nLive Support Team', 'Chat was closed', 0, '', 0, '',''),
(6, 'New FAQ question', 'Live Helper Chat', 0, '', 0, 'Hello,\r\n\r\nNew FAQ question\r\nEmail: {email}\r\n\r\nQuestion:\r\n{question}\r\n\r\nQuestion URL:\r\n{url_question}\r\n\r\nURL to answer a question:\r\n{url_request}\r\n\r\nSincerely,\r\nLive Support Team', 'New FAQ question', 0, '', 0, '', ''),
(7, 'New unread message', 'Live Helper Chat', 0, '', 0, 'Hello,\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nClick to accept chat automatically\r\n{url_accept}\r\n\r\nSincerely,\r\nLive Support Team', 'New chat request', 0, '', 0, '{$adminEmail}',''),
(8, 'Filled form', 'Live Helper Chat', 0, '', 0, 'Hello,\r\n\r\nUser has filled a form\r\nForm name - {form_name}\r\nUser IP - {ip}\r\nDownload filled data - {url_download}\r\nIdentifier - {identifier}\r\nView filled data - {url_view}\r\n\r\n {content} \r\n\r\nSincerely,\r\nLive Support Team','Filled form - {form_name}', 0, '', 0, '{$adminEmail}',''),
(9, 'Chat was accepted', 'Live Helper Chat', 0, '', 0, 'Hello,\r\n\r\nOperator {user_name} has accepted a chat [{chat_id}]\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nClick to accept chat automatically\r\n{url_accept}\r\n\r\nSincerely,\r\nLive Support Team', 'Chat was accepted [{chat_id}]', 0, '', 0, '{$adminEmail}','');");
I put a default value to user_mail_as_sender and installation was OK.
I find myself doing tests with something that should work well but I do not work for me.
It may be that this version has some error?
A greeting!
Offline
Hi,
Good find, it happens with some specific MySQL and php version. I will update install script in a few hours.
Offline
Fixed install in github and thanks again for report
Offline
Pages: 1