[TH] Custom Fields [Deleted]

I am getting this error when I try to import either the Custom Date or the AverageRating fields you've published:

Server Error
Invalid argument supplied for foreach()

  1. XenForo_Application::handlePhpError() in Waindigo/InstallUpgrade/Extend/Waindigo/CustomFields/ControllerAdmin/ThreadField.php at line 54
  2. Waindigo_InstallUpgrade_Extend_Waindigo_CustomFields_ControllerAdmin_ThreadField->actionImport() in XenForo/FrontController.php at line 347
  3. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  4. XenForo_FrontController->run() in /home/thebaby/public_html/forum/admin.php at line 13
Help, please!
 
Hey @Waindigo

Am I able to grab the value via: Header HTML?

I'm trying to use this JUST inside the thread_view:

Code:
<div class="stylethumbnailb"><img src="@imagePath/xenforo/thumbnails/{$value}.jpg" title="{$value}" /></div>
Which of course doesn't work
 
We've got a bit of a problem running this on the latest XF.

We set up custom fields in a particular sub-forum a while ago. We've just gone to add another forum section (not attached to, or in the same category as the other one) and it's being forcefully given the custom fields. When we uncheck them on the 'Thread Fields' tab in the 'Edit Forum' section of the admin area, after saving they are checked again.

Any ideas how we get around this bug?
 
Hey @Waindigo

Am I able to grab the value via: Header HTML?

I'm trying to use this JUST inside the thread_view:

Code:
<div class="stylethumbnailb"><img src="@imagePath/xenforo/thumbnails/{$value}.jpg" title="{$value}" /></div>
Which of course doesn't work
As per the instructions:
Use {$customFields.FIELD_ID}, replacing FIELD_ID with the required Field ID, to display custom field data in the header and footer.
 
We've got a bit of a problem running this on the latest XF.

We set up custom fields in a particular sub-forum a while ago. We've just gone to add another forum section (not attached to, or in the same category as the other one) and it's being forcefully given the custom fields. When we uncheck them on the 'Thread Fields' tab in the 'Edit Forum' section of the admin area, after saving they are checked again.

Any ideas how we get around this bug?
I can't replicate this. Do you have the latest version? Perhaps is conflicting with another add-on. Have you tried attaching/detaching from the forum by editing the custom field instead?
 
I have an Error with V 2.0.5.a and xenforo 1.3.2, resource manager 1.1.3

ErrorException: Fatal Error: Call to undefined method Waindigo_CustomFields_Extend_XenResource_Model_ResourceField::getResourceFieldGroupTitlePhraseName() - library/Waindigo/CustomFields/Extend/XenResource/Model/ResourceField.php:71
Generated By: Unknown Account, Today at 12:02 PM
Code:
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
PHP:
array(3) {
  ["url"] => string(60) "http://www.zetor-forum.de/forum/search/?type=resource_update"
  ["_GET"] => array(1) {
    ["type"] => string(15) "resource_update"
  }
  ["_POST"] => array(0) {
  }
}

Any idea whats wrong?

The same error in 2.0.5 bevor...

regards
 
Getting a lot of errors from the new update.

Image
9k2y.jpg

Errors
ErrorException: Undefined index: order - library/Waindigo/CustomFields/Extend/XenResource/Model/Resource.php:76
Generated By: Teferi, 2 minutes ago
Stack Trace
#0 /home/admin/web/planesofchaos.com/public_html/library/Waindigo/CustomFields/Extend/XenResource/Model/Resource.php(76): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/admin/web...', 76, Array)
#1 /home/admin/web/planesofchaos.com/public_html/library/XenResource/Model/Resource.php(291): Waindigo_CustomFields_Extend_XenResource_Model_Resource->getOrderByClause(Array, Array, 'resource.last_u...')
#2 /home/admin/web/planesofchaos.com/public_html/library/XenResource/Model/Resource.php(99): XenResource_Model_Resource->prepareResourceOrderOptions(Array, 'resource.last_u...')
#3 /home/admin/web/planesofchaos.com/public_html/library/*******/FilterResourceAuthor/Model/Resource.php(11): XenResource_Model_Resource->getResources(Array, Array)
#4 /home/admin/web/planesofchaos.com/public_html/library/XenResource/ControllerPublic/Resource.php(1180): *******_FilterResourceAuthor_Model_Resource->getResources(Array, Array)
#5 /home/admin/web/planesofchaos.com/public_html/library/Waindigo/CustomFields/Extend/XenResource/ControllerPublic/Resource.php(201): XenResource_ControllerPublic_Resource->_getResourceViewWrapper('description', Array, Array, Object(XenForo_ControllerResponse_View))
#6 /home/admin/web/planesofchaos.com/public_html/library/Waindigo/DisInResOverview/Extend/XenResource/ControllerPublic/Resource.php(59): Waindigo_CustomFields_Extend_XenResource_ControllerPublic_Resource->_getResourceViewWrapper('description', Array, Array, Object(XenForo_ControllerResponse_View))
#7 /home/admin/web/planesofchaos.com/public_html/library/XenResource/ControllerPublic/Resource.php(1397): Waindigo_DisInResOverview_Extend_XenResource_ControllerPublic_Resource->_getResourceViewWrapper('description', Array, Array, Object(XenForo_ControllerResponse_View))
#8 /home/admin/web/planesofchaos.com/public_html/library/Waindigo/DisInResOverview/Extend/XenResource/ControllerPublic/Resource.php(17): XenResource_ControllerPublic_Resource->actionView()
#9 /home/admin/web/planesofchaos.com/public_html/library/XenForo/FrontController.php(347): Waindigo_DisInResOverview_Extend_XenResource_ControllerPublic_Resource->actionView()
#10 /home/admin/web/planesofchaos.com/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /home/admin/web/planesofchaos.com/public_html/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
["url"] => string(49) "http://planesofchaos.com/resources/hells-armor.2/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Likely add-ons clashing on, but I'm not sure. Didn't happen until I updated *******'s Search by Resource and your Custom Fields.

I tried disabling *******'s, but the errors didn't let up. The error doesn't affect anything, it seems, but it does log it every time I click on a resource.
 
Here the same:

Error Info ErrorException: Undefined index: order - library/Waindigo/CustomFields/Extend/XenResource/Model/Resource.php:76
Generated By: Unknown Account, Today at 5:38 AM
PHP:
#0 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Waindigo/CustomFields/Extend/XenResource/Model/Resource.php(76): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/vhosts...', 76, Array)
#1 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenResource/Model/Resource.php(291): Waindigo_CustomFields_Extend_XenResource_Model_Resource->getOrderByClause(Array, Array, 'feature.feature...')
#2 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenResource/Model/Resource.php(1383): XenResource_Model_Resource->prepareResourceOrderOptions(Array, 'feature.feature...')
#3 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenResource/ControllerPublic/Resource.php(539): XenResource_Model_Resource->getFeaturedResourcesInCategories(Array, Array)
#4 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(347): XenResource_ControllerPublic_Resource->actionCategoryFeatured()
#5 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /var/www/vhosts/zetor-forum.de/httpdocs/forum/index.php(13): XenForo_FrontController->run()
#7 {main}
PHP:
array(3) {
  ["url"] => string(80) "http://zetor-forum.de/forum/resources/categories/typen%C3%BCbersicht.10/featured"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I have copied all new files over the old files and the installed addon upgraded. The errors came over last night.

But good news - the other errors from yesterday are gone ... :)
 
When attempting to edit a library, or post to a library, with this addon and the "article discussion thread" thing installed, the following appears at the top of each page (though bigger or smaller depending on the number of nodes selected):

Code:
Template Errors: waindigo_node_select_library

    Illegal string offset 'node_id' in /var/www/sites/testing.sufficientvelocity.com/html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 24:

    23: $__output .= '
    24:                 <option value="' . htmlspecialchars($node['node_id'], ENT_QUOTES, 'UTF-8') . '"' . (($node['node_id'] == $field['field_value']['node_id']) ? ' selected="selected"' : '') . '>&nbsp; &nbsp;' . htmlspecialchars($node['title'], ENT_QUOTES, 'UTF-8') . '</option>
    25:             ';

    Illegal string offset 'node_id' in /var/www/sites/testing.sufficientvelocity.com/html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 24:

    23: $__output .= '
    24:                 <option value="' . htmlspecialchars($node['node_id'], ENT_QUOTES, 'UTF-8') . '"' . (($node['node_id'] == $field['field_value']['node_id']) ? ' selected="selected"' : '') . '>&nbsp; &nbsp;' . htmlspecialchars($node['title'], ENT_QUOTES, 'UTF-8') . '</option>
    25:             ';

    Illegal string offset 'node_id' in /var/www/sites/testing.sufficientvelocity.com/html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 24:

    23: $__output .= '
    24:                 <option value="' . htmlspecialchars($node['node_id'], ENT_QUOTES, 'UTF-8') . '"' . (($node['node_id'] == $field['field_value']['node_id']) ? ' selected="selected"' : '') . '>&nbsp; &nbsp;' . htmlspecialchars($node['title'], ENT_QUOTES, 'UTF-8') . '</option>
    25:             ';

This doesn't appear to actually impede anything; the discussion thread gets created and the edits being made to the library work fine, as far as I can tell, but it does create a huge stack of STUFF at the top of every page which is going to scare people...
 
This doesn't appear to actually impede anything; the discussion thread gets created and the edits being made to the library work fine, as far as I can tell, but it does create a huge stack of STUFF at the top of every page which is going to scare people...
@Waindigo Some more info:

If I enable "Fetch public templates as files ", and then edit it to var_dump($field['field_value']) it dumps:
Code:
string 'a:2:{s:7:"node_id";s:1:"2";s:10:"content_id";s:2:"-1";}' (length=55)
...

This occurs for Creating a New Article. Editing an existing article dumps the non-serialized structure the code expects.
For the admincp, editing a library node dumps the above serialized data while creating works as expected.
 
Screenshots_2014-07-24-22-12-09.webp
Does this add on fix a problem I am having. Some artist want to upload a song at a time. The problem is that when this happens they fill up the page with there music. Is there a way to put these in a single folder without having to do the obvious. Down load into a zip and re upload!! :( Thanks
 
Can custom thread fields be required before submitting the thread? Can the rest of the editor be removed on the new thread page on forums this is enabled in so you can only fill the fields in? Thanks.
 
Top Bottom