Fixed XF 2.3: XenForo2 importer notify_report doesn't have a default value

Abraham54

Well-known member
I installed bèta 5 after in the install files (upload) src/XF/Install/Data/MySql.php,
in MySql.php the "," have deleted.

But now File Healtth reports unusual findings in MySql.php
and Importing my XF 2.2 forum also ends with an error:

Code:
XF\Db\Exception: MySQL query error [1364]: Field 'notify_report' doesn't have a default value in src/XF/Db/AbstractStatement.php at line 230

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
    XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 79
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 220
    XF\Db\AbstractAdapter->insert() in src/XF/Import/DataHelper/Moderator.php at line 18
    XF\Import\DataHelper\Moderator->importModerator() in src/addons/XFI/Import/Importer/XenForo2.php at line 1199
    XFI\Import\Importer\XenForo2->stepModerators() in src/XF/Import/Runner.php at line 244
    XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
    XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
    XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2592
    XF\App->run() in src/XF.php at line 532
    XF::runApp() in admin.php at line 13
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0).

Change log:
Set a default value for moderator report and approval notifications
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom