Add-On Can't Release New Version of Plugin: SafeMySQL: Incorrect integer value: '' for column `phoebus_live`

About this bulletin board and the Pale Moon website

Moderators: Lootyhoof, FranklinDM

own3mall
Apollo supporter
Apollo supporter
Posts: 43
Joined: 2014-10-22, 00:32
Location: USA

Add-On Can't Release New Version of Plugin: SafeMySQL: Incorrect integer value: '' for column `phoebus_live`

Unread post by own3mall » 2025-04-02, 02:59

Hi, I just tried updating my addon, but it gave me this error message:
Fatal error: Uncaught Exception: SafeMySQL: Incorrect integer value: '' for column `phoebus_live`.`client`.`toolkit` at row 1. Full query: [UPDATE `client` SET `toolkit`='',`palemoon`='1',`basilisk`='1',`ambassador`='',`borealis`='',`epyrus`='',`thunderbird`='' WHERE `addonID` = 'myemailremoved'] in /srv/www/addons.palemoon.org/public_html/libraries/safemysql/safemysql.class.php:623 Stack trace: #0 /srv/www/addons.palemoon.org/public_html/libraries/safemysql/safemysql.class.php(483): SafeMySQL->error('SafeMySQL: Inco...') #1 /srv/www/addons.palemoon.org/public_html/libraries/safemysql/safemysql.class.php(140): SafeMySQL->rawQuery('UPDATE `client`...') #2 /srv/www/addons.palemoon.org/public_html/modules/classDatabase.php(75): SafeMySQL->query('UPDATE `client`...', Array, 'myemailremoved') #3 /srv/www/addons.palemoon.org/public_html/modules/classWriteManifest.php(236): classDatabase->query('normal', 'UPDATE `client`...', Array, 'myemailremoved...') #4 /srv/www/addons.palemoon.org/public_html/components/panel/devel in /srv/www/addons.palemoon.org/public_html/libraries/safemysql/safemysql.class.php on line 623
Any ideas?

Thanks

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5605
Joined: 2015-12-09, 15:45

Re: Add-On Can't Release New Version of Plugin: SafeMySQL: Incorrect integer value: '' for column `phoebus_live`

Unread post by moonbat » 2025-04-02, 04:08

Assuming this is for Youtube Non-stop. Guess Moonchild will have to take a look at the code or database.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37757
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Add-On Can't Release New Version of Plugin: SafeMySQL: Incorrect integer value: '' for column `phoebus_live`

Unread post by Moonchild » 2025-04-02, 07:40

Seems like Tobin relied on sloppy code being accepted by the database. Integer fields can't hold strings, and MariaDB is strict about it by default.
I guess I can work around it by disabling strict mode but it needs php code updates to use '0' or NULL (can't use NULL because not allowed in the schema) correctly instead of the empty string to properly solve this in phoebus.

EDIT: I've worked around it for now, seems it was configured prior but an update sidelined the relevant conf file. It does need fixing in phoebus, though. Means I'll have to switch gears to php when I'm not busy otherwise (not sure when) to make a proper fix for this.
Please let me know if it works for you.

EDIT2: filed Issue #7 (phoebus)
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

own3mall
Apollo supporter
Apollo supporter
Posts: 43
Joined: 2014-10-22, 00:32
Location: USA

Re: Add-On Can't Release New Version of Plugin: SafeMySQL: Incorrect integer value: '' for column `phoebus_live`

Unread post by own3mall » 2025-04-02, 14:41

Thank you, it seems to have worked.