Closed (fixed)
Project:
Vocabulary Index
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2008 at 08:04 UTC
Updated:
24 Jul 2013 at 08:40 UTC
The Vocabulary Index show me this error, when I try to
go on page of one of the vocabularies.
Fatal error: Cannot use object of type stdClass as array in /www/login/www/htdocs/site/sites/all/modules/vocabindex/vocabindex.view.inc on line 320
Comments
Comment #1
xanoCould you please write down the steps to reproduce this error as detailed as possible?
Comment #2
Lock Us commentedExcuse me, I was trying one more time, and I found my fault - I didn't create terms. I haven't got problem now. But I think that this is small error, but error. Maybe user must see the error block with text - "You haven't got terms in the current vocabulary."?
So, this problem is actual only when you have a vocabulary without terms.
Comment #3
xanoFatal errors are always critical since they mess up the whole site. Having no terms in a vocabulary should not break the code. I took a look at the specific line, but I couldn't see what went wrong. Could you please provide step by step instructions to reproduce the error?
Comment #4
xanoAnd, not unimportant, do you encounter the error using the latest dev version too?
Comment #5
xanoI think this is being caused by vocabindex_cache_get() not returning anything and it is probably also present in 5.x-2.x-dev.
Comment #6
xanoFixed and committed to all branches. However in 7.x-2.x-dev this fix causes another bug to appear. This will be dealt with at another time and in another issue.
Comment #8
xano