Duplicate XF\Db\InvalidQueryException: MySQL statement prepare error [1064]

mcatze

Well-known member
Affected version
XF2.3 Beta 5
I tried a fresh installation of XenForo 2.3 Beta 5 on a LAMP with MariaDB 10.11.7 and got this error..

Code:
XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 15 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 40
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Install/Helper.php at line 352
XF\Install\Helper->insertDefaultData() in src/XF/Install/Controller/Install.php at line 179
XF\Install\Controller\Install->actionStep2() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
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 install/index.php at line 14
 
It's this one from Beta 4. The solution is working.. ;)

 
I replaced ChrisD's code an now a get a smaller error:


Code:
ParseError: syntax error, unexpected string content "", expecting "-" or identifier or variable or number in src/XF/Install/Data/MySql.php at line 3408

    Composer\Autoload\{closure}() in src/vendor/composer/ClassLoader.php at line 427
    Composer\Autoload\ClassLoader->loadClass() in src/XF/Install/Helper.php at line 315
    XF\Install\Helper->createApplicationTables() in src/XF/Install/Controller/Install.php at line 176
    XF\Install\Controller\Install->actionStep2() 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 install/index.php at line 14
 
Back
Top Bottom