SOLVED Avantfax GUI and other issues

ext-104

Member
Joined
Aug 20, 2020
Messages
80
Reaction score
61
incrediblePBX2020 / raspi 4

Avantfax GUI not working properly, having to backpage on login, wouldn't update fields, etc.

I could live with that, but fax to email was failing too. SQL command invoked by a Avantfax function
would fail and error out of db query before completing with "Incorrect integer value: '' for column", etc.

The issue seems to be that somewhere along the way the databases updated versions for mysql/mariadb started
enforcing tighter tolerances on updating data and matching column types. Like updating a Integer column with and empty field " "
will fail. It seems Avantfax needed to update their code to follow and have not.

Fix;

The issue is to turn off strict mode.

login into mariadb and....

mysql -u root -p passw0rd

MariaDB [(none)]> SELECT @@GLOBAL.sql_mode;

+-------------------------------------------------------------------------------------------+
| @@GLOBAL.sql_mode |
+-------------------------------------------------------------------------------------------+
| STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+-------------------------------------------------------------------------------------------+

MariaDB [(none)]> SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';

Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> SELECT @@GLOBAL.sql_mode;

+------------------------+
| @@GLOBAL.sql_mode |
+------------------------+
| NO_ENGINE_SUBSTITUTION |
+------------------------+
1 row in set (0.001 sec)

To permanently set sql_mode;

change etc/mysql/my.cnf
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION

restart db and and check.

login into Advantfax GIU and will now work properly. No more "back page" on logging in. actually asked to
change password for first time login instead and now updates and saves info too.

Fixed my errors with fax to email and is working great.


@wardmundy
 
@ext-104: You da man! Thank you. Will push out the update tomorrow.

Congrats on fixing our longest running bug!
 
Last edited:
@ext-104: Patch has been pushed out through the Automatic Update Utility. The AvantFax development team has apparently folded so a MySQL guru was our last hope. Thanks again.
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top