Object accessed as array causes fatal error
- Status
- Closed
- Subject
- Object accessed as array causes fatal error
- Version
- 7.x
- Category
- Error
- Patch
- Less than 30-minutes fix
- Feature
- Search
- Lastmod by
- gaxweb
- Rating
- Description
Installer fails at the end with the following error:
"Fatal error: Cannot use object of type stdClass as array in
/tiki/lib/core/Search/Indexer.php on line 64"- Files
- Solution
Index: lib/core/Search/Indexer.php
=============
lib/core/Search/Indexer.php (revision 37744) +++ lib/core/Search/Indexer.php (working copy)@@ -68,7 +68,7 @@
}foreach ($objectList as $object) {
+ $this->addDocument($object->object_type, $object->object_id);
- $this->addDocument($object'object_type', $object'object_id');}
}- Importance
- 8
- Easy to solve?
- 7
- Priority
- 56
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3997
- Created
- Thursday 29 September, 2011 09:34:09 UTC
by gaxweb - LastModif
- Saturday 06 July, 2024 10:21:44 UTC