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

xano’s picture

Priority: Normal » Critical
Status: Active » Postponed (maintainer needs more info)

Could you please write down the steps to reproduce this error as detailed as possible?

Lock Us’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Active

Excuse 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.

xano’s picture

Priority: Normal » Critical
Status: Active » Postponed (maintainer needs more info)

Fatal 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?

xano’s picture

And, not unimportant, do you encounter the error using the latest dev version too?

xano’s picture

Version: 6.x-2.0-rc1 » 5.x-2.x-dev
Assigned: Unassigned » xano
Status: Postponed (maintainer needs more info) » Active

I think this is being caused by vocabindex_cache_get() not returning anything and it is probably also present in 5.x-2.x-dev.

xano’s picture

Status: Active » Fixed

Fixed 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

xano’s picture

Assigned: xano » Unassigned