Code Monkey
Well-known member
You have to post the actual error content in code tags. Otherwise nobody knows what the actual script called was or all the files involved.
ErrorException: Array to string conversion - library\Waindigo\CustomFields\ViewPublic\Helper\Thread.php:30
#0 C:\xampp\htdocs\xenforo\library\Waindigo\CustomFields\ViewPublic\Helper\Thread.php(30): XenForo_Application::handlePhpError(8, 'Array to string...', 'C:\xampp\htdocs...', 30, Array)
#1 C:\xampp\htdocs\xenforo\library\Waindigo\CustomFields\ViewPublic\Helper\Thread.php(103): Waindigo_CustomFields_ViewPublic_Helper_Thread::getThreadFieldValueHtml(Object(WidgetFramework_XenForo_View1), Array, NULL)
#2 C:\xampp\htdocs\xenforo\library\Waindigo\CustomFields\Extend\XenForo\ViewPublic\Forum\View.php(26): Waindigo_CustomFields_ViewPublic_Helper_Thread::addThreadFieldsValueHtml(Object(WidgetFramework_XenForo_View1), Array)
#3 C:\xampp\htdocs\xenforo\library\XenForo\ViewRenderer\Abstract.php(227): Waindigo_CustomFields_Extend_XenForo_ViewPublic_Forum_View->renderHtml()
#4 C:\xampp\htdocs\xenforo\library\XenForo\ViewRenderer\HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Html', Array, 'forum_view')
#5 C:\xampp\htdocs\xenforo\library\XenForo\FrontController.php(572): XenForo_ViewRenderer_HtmlPublic->renderView('XenForo_ViewPub...', Array, 'forum_view', NULL)
#6 C:\xampp\htdocs\xenforo\library\XenForo\FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#7 C:\xampp\htdocs\xenforo\index.php(13): XenForo_FrontController->run()
#8 {main}
array(3) {
["url"] => string(56) "http://localhost/xenforo/forums/test-forum.2/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
When I click on a link to a forum, I get an error.Can you give steps to replicate this error? It seems to me that this error can only be replicated by editing the database directly or something like that.
An exception occurred: Array to string conversion in C:\xampp\htdocs\xenforo\library\Waindigo\CustomFields\ViewPublic\Helper\Thread.php on line 30
XenForo_Application::handlePhpError() in Waindigo/CustomFields/ViewPublic/Helper/Thread.php at line 30
Waindigo_CustomFields_ViewPublic_Helper_Thread::getThreadFieldValueHtml() in Waindigo/CustomFields/ViewPublic/Helper/Thread.php at line 103
Waindigo_CustomFields_ViewPublic_Helper_Thread::addThreadFieldsValueHtml() in Waindigo/CustomFields/Extend/XenForo/ViewPublic/Forum/View.php at line 26
Waindigo_CustomFields_Extend_XenForo_ViewPublic_Forum_View->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
XenForo_FrontController->run() in C:/xampp/htdocs/xenforo/index.php at line 13
Has it always been like that or did you have to set up some custom fields first?When I click on a link to a forum, I get an error.
Code:An exception occurred: Array to string conversion in C:\xampp\htdocs\xenforo\library\Waindigo\CustomFields\ViewPublic\Helper\Thread.php on line 30 XenForo_Application::handlePhpError() in Waindigo/CustomFields/ViewPublic/Helper/Thread.php at line 30 Waindigo_CustomFields_ViewPublic_Helper_Thread::getThreadFieldValueHtml() in Waindigo/CustomFields/ViewPublic/Helper/Thread.php at line 103 Waindigo_CustomFields_ViewPublic_Helper_Thread::addThreadFieldsValueHtml() in Waindigo/CustomFields/Extend/XenForo/ViewPublic/Forum/View.php at line 26 Waindigo_CustomFields_Extend_XenForo_ViewPublic_Forum_View->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227 XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67 XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572 XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158 XenForo_FrontController->run() in C:/xampp/htdocs/xenforo/index.php at line 13
Server Error Log
Error Info
ErrorException: Fatal Error: Call to undefined method Waindigo_CustomFields_Extend_XenResource_DataWriter_Category::_getFieldModel() - library/Waindigo/CustomFields/Extend/XenResource/DataWriter/Category.php:128
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(66) "http://ffxivaddicts.com/admin.php?resource-categories/fates.7/save"
["_GET"] => array(1) {
["resource-categories/fates_7/save"] => string(0) ""
}
["_POST"] => array(18) {
["category_title"] => string(5) "FATES"
["category_description"] => string(49) "List of FATES and best areas to quickly level up!"
["parent_category_id"] => string(1) "0"
["display_order"] => string(1) "6"
["allow_local"] => string(1) "1"
["allow_external"] => string(1) "1"
["allow_commercial_external"] => string(1) "1"
["allow_fileless"] => string(1) "1"
["usable_user_group_type"] => string(3) "sel"
["user_group_ids"] => array(3) {
[0] => string(1) "3"
[1] => string(1) "4"
[2] => string(1) "2"
}
["thread_node_id"] => string(2) "70"
["thread_prefix_id"] => string(1) "0"
["header"] => string(0) ""
["footer"] => string(0) ""
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(43) "/admin.php?resource-categories/fates.7/edit"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Fatal Error: Call to undefined method Waindigo_CustomFields_Extend_XenResource_DataWriter_Category::_getFieldModel()
library/Waindigo/CustomFields/Extend/XenResource/DataWriter/Category.php:128
What custom field is it that is causing the error? What are the settings for it? Did you give it a value when you created the thread?I set up some custom field and creat thread normal, but when I enable Debug Options and see the erro
i have created 10 Custom Thread Fields:What custom field is it that is causing the error? What are the settings for it? Did you give it a value when you created the thread?
You can set thread fields as required on a per-node basis. Just edit the node and the option is there.Now i try leave it blank for 1 field, 2field, 3field but not get an erro again,
I dont understand that what hapened, so i think that's good.
Ah! I want some custom field is requre
Can you add this option to addon?
Like this:
View attachment 59897
Thank you very much!
Just info. With the 1.2.2a version my problem is gone.XF 1.2.2
XFRM 1.0.2
Custom Fields by Waindigo 1.3.0a
/admin.php?resource-categories/
When I'm trying to set "Automatically Create Thread in Forum" for resource category I get this:
Code:Fatal Error: Call to undefined method Waindigo_CustomFields_Extend_XenResource_DataWriter_Category::_getFieldModel() library/Waindigo/CustomFields/Extend/XenResource/DataWriter/Category.php:128
This is a bug with PHP 5.3+. I thought it was something that was fixed in XenForo core. Are you running the latest version of XenForo?Secondly, on a clean install, trying to create an articleconfigure the field, I get this error :
View attachment 60162
I actually do not have this error on my live site, this is FYI.
Oh, the debug mode bug? OK. I'm with 1.2.1 on this install, not yet upgraded to 1.2.2. The other error has been noticed while running on XF1.2.2.This is a bug with PHP 5.3+. I thought it was something that was fixed in XenForo core. Are you running the latest version of XenForo?
We use essential cookies to make this site work, and optional cookies to enhance your experience.