Fixed No stack trace from errors when running the CLI installer

Xon

Well-known member
Affected version
2.0.1
When the subaction task for CLI installer is invoked, the standard XenForo error handler isn't installed. The means stack traces are not generated or logged.

This makes troubleshooting an installer from the CLI virtually impossible, as you simple have no real hope at guessing which step broke or what line caused the error. This is critically important, as the installer from the GUI is crippled in debug mode and fails the import data resulting in extra easily skippable steps for the add-on to be returned to a usable state.

The extend of the error logging amounts to the following crippled output:
Code:
  [XF\Db\Exception]
  MySQL statement prepare error [1054]: Unknown column 'xm_prefixes' in 'field list'
 
You should be able to get a full trace by adding the --verbose switch to your command, IIRC.
 
Top Bottom