Fullscreen
Loading...
 
Skip to main content

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
(0)
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
  1. Tikiwiki
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+
Demonstrate Bug (older Tiki versions)
Ticket ID
3997
Created
Thursday 29 September, 2011 09:34:09 UTC
by gaxweb
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages