[cv6] Custom Field Extension

[cv6] Custom Field Extension 1.1.0 Release Candidate 3

No permission to download
Hello, your addon is great, however when trying to use a custom field for images I get the following Server error log:

Code:
XF\Db\Exception: Macro public:cv6_custom_fields_macros :: custom_fields_edit_image() error: MySQL statement prepare error [1054]: Unknown column 'xf_cv6_custom_image.content_id' in 'where clause' src/XF/Db/AbstractStatement.php:228

Code:
SELECT `xf_cv6_custom_image`.*
            FROM `xf_cv6_custom_image`
          
            WHERE (`xf_cv6_custom_image`.`field_id` = 'cover') AND (`xf_cv6_custom_image`.`field_source` = 'resource') AND (`xf_cv6_custom_image`.`user_id` = 1) AND (`xf_cv6_custom_image`.`content_id` = 4)
          
      
LIMIT 1
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Mvc/Entity/Finder.php(1346): XF\Db\AbstractAdapter->query('
            SELECT `xf_...')
#5 src/addons/cv6/CustomFields/Attachment/CustomImage.php(64): XF\Mvc\Entity\Finder->fetchOne()
#6 src/XF/Repository/Attachment.php(33): cv6\CustomFields\Attachment\CustomImage->getContainerIdFromContext(Array)
#7 src/addons/cv6/CustomFields/XF/CustomField/Definition.php(93): XF\Repository\Attachment->getEditorData('cv6_custom_imag...', Object(SV\MultiPrefix\XFRM\Entity\ResourceItem), '490fb3de2d9e182...', Array)
#8 [internal function]: cv6\CustomFields\XF\CustomField\Definition->getCustomImageData(Object(SV\MultiPrefix\XFRM\Entity\ResourceItem))
#9 src/XF/Template/Templater.php(1166): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l3/s3/public/cv6_custom_fields_macros.php(23): XF\Template\Templater->method(Object(cv6\CustomFields\XF\CustomField\Definition), 'getCustomImageD...', Array)
#11 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#12 internal_data/code_cache/templates/l3/s3/public/custom_fields_macros.php(664): XF\Template\Templater->callMacro('cv6_custom_fiel...', 'custom_fields_e...', Array, Array)
#13 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#14 internal_data/code_cache/templates/l3/s3/public/custom_fields_macros.php(229): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_e...', Array, Array)
#15 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#16 internal_data/code_cache/templates/l3/s3/public/xfrm_resource_edit.php(66): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_e...', Array, Array)
#17 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#18 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_e...', Array)
#19 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#20 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:ResourceItem...', 'public:xfrm_res...', Array)
#21 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#23 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#24 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#25 src/XF.php(488): XF\App->run()
#26 index.php(20): XF::runApp('XF\\Pub\\App')
#27 {main}
These issues are fixed, including two more with XFRM and attachments page. I'm working on one last issue with image type custom field on user profile page as it's option to edit it not working but upload is working fine.

If anyone know of any other issues other than the ones mentioned above, let me know. I will try to push first bugfix release this weekend :)

Ty
 
These issues are fixed, including two more with XFRM and attachments page. I'm working on one last issue with image type custom field on user profile page as it's option to edit it not working but upload is working fine.

If anyone know of any other issues other than the ones mentioned above, let me know. I will try to push first bugfix release this weekend :)

Ty
I really appreciate you taking time to fix this issue, I can't wait to update it.
 
Hoffi updated [cv6] Custom Field Extension with a new update entry:

Version 1.1.0 Release Candidate 3

Changelog:
  1. Resolved missing column creation issue for Image custom field during initial installation, ensuring consistent functionality for both fresh installs and upgrades. >> https://xenforo.com/community/threads/cv6-custom-field-extension.194853/post-1613490
  2. Fixed Typo related to XFRM, that was throwing errors when creating a resource.
  3. Fixed Issue to allow editing of custom field on user profile.

I have tested the addon at...

Read the rest of this update entry...
 
What I still miss is a triple-field. If I add some checkboxes, I can have 0 or 1;

but very often I need

unknown | yes | no


maybe your combo-box does the trick?
I will try now.
 
Top Bottom