nethesis / ns8-nethvoice

NethVoice: an Asterisk based PBX
GNU General Public License v3.0
0 stars 1 forks source link

Invalid datetyme mysql error #256

Closed Stell0 closed 6 days ago

Stell0 commented 1 week ago

PDOException with the SQLSTATE error code 22007, which signifies an invalid datetime format. The specific error is:

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `asterisk`.`queueoptions`.`VQ_RETRY` at row 1

This error is occurring during the execution of an SQL REPLACE INTO statement in the Queueoptions.class.php file, specifically at line 132. The error suggests that the column VQ_RETRY in the queueoptions table of the asterisk database is receiving an empty string ('') instead of a valid integer value.

The issue lies with the value being inserted into the VQ_RETRY column. It is expected to be an integer, but it is receiving an empty string instead. This typically happens when the variable or input corresponding to VQ_RETRY is not properly validated or initialized before executing the query. To fix this, ensure that the value being passed for VQ_RETRY is a valid integer.

Stell0 commented 6 days ago

Same error on Pin module