WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => Modules => Topic started by: CodeALot on March 24, 2024, 02:39:12 PM

Title: Error in $wb->get_user_id() value, causing problems in MiniForm
Post by: CodeALot on March 24, 2024, 02:39:12 PM
/framework/class.wb.php contains an error, resulting in an invalid value for $wb->get_user_id()

This causes an error in storing form data in MiniForm 0.15.4

WB 2.13.5 -r220, patched r223
PHP 8.1.27 & PHP 8.3.3 tested

Code: [Select]
There was an uncatched exception
    Incorrect integer value: '' for column `h_00036d5f_bbaf`.`wb_mod_miniform_data`.`user_id` at row 1 in line (828) of (/framework/class.database.php):
Title: Re: Error in $wb->get_user_id() value, causing problems in MiniForm
Post by: dbs on March 24, 2024, 03:43:47 PM
workaround: find get_user_id() in view.php and replace it with getUserId()