Missing column image_type in xf_credits_currency

  1. DJ XtAzY

    DJ XtAzY - Feb 28, 2014 New Member

    Credit
    Point
    Without this column, admins are unable to create new currencies.

    Server Error
    Mysqli prepare error: Unknown column 'image_type' in 'field list'

    1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
    2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
    3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
    4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
    5. Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1612
    6. XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1601
    7. XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1393
    8. XenForo_DataWriter->save() in Brivium/Credits/ControllerAdmin/Currency.php at line 111
    9. Brivium_Credits_ControllerAdmin_Currency->actionSave() in XenForo/FrontController.php at line 347
    10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    11. XenForo_FrontController->run() in /home/djxtazy/public_html/admin.php at line 13
     
    Loading...
  2. Brivium

    Brivium - Feb 28, 2014 XenForo Services Staff Member

    Credit
    Point
    Hello,

    To solve your issue, please open file \library\Brivium\Credits\DataWriter\Currency.php and find
    Code:
    'image_type'        => array('type' => self::TYPE_STRING,    'default' => '', 'maxLength' => 25,),
    Change to
    Code:
    // 'image_type'        => array('type' => self::TYPE_STRING,    'default' => '', 'maxLength' => 25,),
    Regards,
     
    #2