Resolved Bug


This bug has been marked as resolved.

Call to a member function getInstance() on a non-object ... /concrete/libraries/database_indexed_search.php on line 137"

Permalink 51 48 Browser Info Environment
Call to a member function getInstance() on a non-object ... /concrete/libraries/database_indexed_search.php on line 137"

In 'system and maintenance' I clicked the jobs for and the search index never finished, see thread ...http://www.concrete5.org/index.php?cID=89523...

I think I fixed it :

in /concrete/libraries/database_indexed_search.php I copied the file to /libraries/database_indexed_search.php then ...

Find... lines 137 - 140
$bi = $b->getInstance();
if (!is_object($b)) {
   continue;
}


replace with...
if (!is_object($b)) {
   continue;
} else {
   $bi = $b->getInstance();
}


Status: Resolved
pixelhandler
jgaris replied on at Permalink
Thank you for posting this. I was experiencing the same issue. Your solution worked perfectly for me.
ratstew replied on at Permalink
Had the same thing and this solution solved it, ty!
12345j replied on at Permalink
12345j
fixed in gihub, closing

concrete5 Environment Information

# concrete5 Version
5.4.1.1

# concrete5 Packages
Ajax Form (0.5), Example FAQ (1.0), Product image gallery (1.0), Random Image (1.0), Suppliers Admin (1.0), Thumbview Template (1.1.1).

# concrete5 Overrides
blocks/address, blocks/autonav, blocks/content, blocks/image_download, blocks/page_list, blocks/search, controllers/page_types, jobs/index_search.php, libraries/database_indexed_search.php, single_pages/search-results.php, themes/kwa_usa

# Server Software
Apache/2.0.63 (Unix) PHP/5.2.13 DAV/2

# Server API
apache2handler

# PHP Version
5.2.13

# PHP Extensions
apache2handler, bcmath, bz2, calendar, ctype, curl, date, dbase, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, standard, tokenizer, xdebug, xml, xmlreader, xmlwriter, xsl, yaz, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 512M
post_max_size - 32M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 32M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
xdebug.max_nesting_level - 100
xdebug.var_display_max_children - 128
xdebug.var_display_max_data - 512
xdebug.var_display_max_depth - 3

Browser User-Agent String

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27