Index Search Engine

Permalink 1 user found helpful
Hello,

I have Concrete5 installed and pretty much running OK. One small issue - when I run the Index Search Engine job it hangs and never completes

"Currently Running (Since 9:08:51 AM) Index updated. 2 pages required reindexing."

The database the the jStatus in the jobs table is RUNNING, but it never completes

Running the job via the URL returns this error:

"Fatal error: Call to a member function getInstance() on a non-object in /home/fords/domains/mydomain.com/public_html/concrete/libraries/database_indexed_search.php on line 137"

Anyone have any idea whats causing this?

Also the sitemap page in the dashboard is blank - but I assume thats because the index never finishes?

Thanks in advance!

drichardson23
 
drichardson23 replied on at Permalink Reply
drichardson23
OK, so got that fixed - there was a block referenced, but the add-in was missing from the packages directory.

However my sitemap page is still blank, how can I recreate this?

Thanks.
drichardson23 replied on at Permalink Reply
drichardson23
The weird thing is I can see my pages under the 'page search' sitemap view, just not under 'full sitemap' or 'flat view'.

Thanks.
pixelhandler replied on at Permalink Reply
How did you fix this I am getting the same error :

Fatal error: Call to a member function getInstance() on a non-object in pathto.../concrete/libraries/database_indexed_search.php on line 137

Best regards,

-Bill
pixelhandler replied on at Permalink Reply
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();
}
garrycl replied on at Permalink Reply
garrycl
Well done!

I have the same error. However, hoping to cure it before hacking into the core files.
Have posted the context of the error in a separate post.

All the best.

Garry
pixelhandler replied on at Permalink Reply
Gary,

I posted a bug in the tracker Here :

http://www.concrete5.org/developers/bugs/5-4-1-1/call-to-a-member-f...

for now I am overriding the core file in /libraries not sure how to submit the fix to the core team.

-Bill
garrycl replied on at Permalink Reply
garrycl
Thanks Bill,

I will do the same.

All the best.

Garry