Posts: 69
Threads: 30
Joined: Feb 2017
Reputation:
22
I was unable to use Template to mail merge, in contact modules,
I tried with rtf, (made with wordpad) .doc (microsoft)
but i've always a fatal error
Fatal error: Call to a member function FetchRow() on boolean in /home/xxxxxxxx/public_html/vt_test/include/database/PearDatabase.php on line 618
I'm using php 5.6 but i've tried also with 7 and 5.5 without UUID, opcache enabled
any ideas?
Lorenzo
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
well, that was interesting. I hadn't visited that part of the code in a while, specially after the massive update we have made for PHP7 and MYSQL support. I have cleaned and tested the files. I eliminated a bunch of warning message and fixed a couple of errors, mostly related to MySQL strict mode. It seems to be working correctly now for all four supported modules. Update you code when you can and give it a try.
Note: I have tried OpenOffice document and I am almost sure RTF will work. I truely doubt Microsoft will work because they used an ActiveX component which is most probably totally obsolete, but give it a shot and let us know how it goes.
Thanks!
Joe
TSolucio
Posts: 69
Threads: 30
Joined: Feb 2017
Reputation:
22
02-22-2017, 12:14 AM
(This post was last modified: 02-22-2017, 12:15 AM by LorenzoGreco.)
git pull
Tried now also with a native ODT document
so made
NOME: $contacts-firstname$ COGNOME: $contacts-lastname$
CITTA’ NASCITA: DATA NASCITA: $contacts-birthday
Fatal error: Call to a member function FetchRow() on boolean in /home/XXXXXXXX/public_html/vt_test/include/database/PearDatabase.php on line 621
whith php 5.6
P.S. I've custom fields in contact module
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
have you applied the changeset?
Joe
TSolucio
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
activate the debug log and show me the offending SQL
Joe
TSolucio
Posts: 69
Threads: 30
Joined: Feb 2017
Reputation:
22
Yes i did corebos updater apply
i've sended you a private message with link for log
Posts: 69
Threads: 30
Joined: Feb 2017
Reputation:
22
quite...
so now i arrive to Download merged document ( openoffice format)
I downloaded the file, but was
NOME: $contacts-firstname$ COGNOME: $contacts-lastname$
CITTA’ NASCITA: DATA NASCITA: $contacts-birthday
doesn't merge the field.
Posts: 69
Threads: 30
Joined: Feb 2017
Reputation:
22
I tried directly uploading the sample file.
and it works!
thanks a lot
Lorenzo