• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Too long titles throws a non friendly error

Status
Not open for further replies.

MagnusB

Member
Showcase
Just saw that there was a few error in my server error log connected to a too long title of a showcase items. I tested it, and it threw a pretty unintuitive error message, which kinda explains why I did not see the item he tried to create:
Code:
The following error occurred:
 
Mysqli statement execute error : Data too long for column 'item_name' at row 1
Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1591
XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1580
XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1381
XenForo_DataWriter->save() in NFLJ/Showcase/ControllerPublic/Index.php at line 346
NFLJ_Showcase_ControllerPublic_Index->actionAddSave() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in ~/public_html/index.php at line 13

Optimally the input field should have maxlength equal to the maximum allowed characters for the title field (it defaults to 100, I think that isn't allowed in showcase).
 
This has already been addressed and will be available in the next maintenance release.
 
Status
Not open for further replies.
Back
Top