Hi @Chris Deeming,
I took a look and it looks like you generated the thumbnail URL (haven't checked for other images) using AVForums_Competitions_Model_Competition::getCompetitionImageUrl, I also noticed the method getCompetitionImagePath which is very similar to XenForo_Model_Attachment::getAttachmentDataFilePath. I have modified them like this
PHP:public function getCompetitionImageUrl(array $data, $type) { return XenForo_Link::buildPublicLink('attachments', $data); }
Which seems to work but I'm not sure it will work well when you resize the image and thumbnail in AVForums_Competitions_DataWriter_Competition...
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Field 'competition_entries' doesn't have a default value - library/Zend/Db/Statement/Mysqli.php:214
Generated By: Unknown Account, 6 minutes ago
Stack Trace
#0 library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 library/XenForo/DataWriter.php(1624): Zend_Db_Adapter_Abstract->insert('xf_user', Array)
#4 library/XenForo/DataWriter.php(1613): XenForo_DataWriter->_insert()
#5 library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#6 library/XenForo/ControllerPublic/Register.php(416): XenForo_DataWriter->save()
#7 library/Waindigo/JoinUserGroup/Extend/XenForo/ControllerPublic/Register.php(64): XenForo_ControllerPublic_Register->actionRegister()
#8 library/UserEss/ControllerPublic/Register.php(68): Waindigo_JoinUserGroup_Extend_XenForo_ControllerPublic_Register->actionRegister()
#9 library/Tac/DeDos/ControllerPublic/Register.php(51): UserEss_ControllerPublic_Register->actionRegister()
#10 library/XenForo/FrontController.php(347): Tac_DeDos_ControllerPublic_Register->actionRegister()
#11 library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 index.php(13): XenForo_FrontController->run()
#13 {main}
Request State
array(3) {
["url"] => string(41) "/register/register"
["_GET"] => array(1) {
["/register/register"] => string(0) ""
}
["_POST"] => array(19) {
<redacted>
}
}
That should be the fix, IIRC.Yeah, there is a fix in the installer so not sure at first glance why that didn't happen.
Anyway, the fix is this:
Code:ALTER TABLE xf_user CHANGE COLUMN competition_entries competition_entries BLOB NULL
Thanks, but that is already the case prior to error ...That should be the fix, IIRC.
mysql> describe xf_user;
+----------------------------+-------------------------------------------------------------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------------------+-------------------------------------------------------------------------------+------+-----+---------+----------------+
| user_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| username | varchar(50) | NO | UNI | NULL | |
[...]
| competition_entries | blob | NO | | NULL | |
[...]
+----------------------------+-------------------------------------------------------------------------------+------+-----+---------+----------------+
I see, sorry. Thanks.The column definition in your output is not correct, therefore use my query to make it correct. Correct, it currently doesn't allow a NULL value.
Thanks, Chris.That should be the fix, IIRC.
MySQL returned an empty result set (i.e. zero rows). (Query took 24.5450 seconds.)
I have a long list of outstanding work and things to do, somewhere on there is feature requests for existing add-ons. Though I don't think that's going to help you in the short term.
Happy to provide a refund if it's not what you need. Just drop me a PM with the PayPal address you paid with.
I do have to say, though, I'm somewhat surprised you got as far as purchasing it before realising it wasn't what you needed. I don't think there's any ambiguity in the resource description or video
We use essential cookies to make this site work, and optional cookies to enhance your experience.