Index Search Engine job NEVER ends
Permalink 3 users found helpfulThe Index Search Engine job just keeps running and running. My site is pretty small too, is there a way to reset it or something?
And this has been going on for days and days, says the same thing every time I check it.
BTW - the Generate Sitemap File and Process Email Posts jobs both run and end normally.
Fatal error: Call to a member function getInstance() on a non-object in /home/therap3/public_html/dibbvids/updates/concrete5.4.1.1/concrete/libraries/database_indexed_search.php on line 137
Not really sure where to go from for this.
I *think* you can fix the problem by going into your server's phpmyadmin and running these two queries:
TRUNCATE TABLE CollectionSearchIndexAttributes
and
TRUNCATE TABLE PageSearchIndex
If it's just a development site then go ahead and try that and then re-run the search index job. If it's a live site, I'm not 100% sure if that's a safe thing to do (I am pretty sure it's okay, as it seems that re-running the index job fills up those tables with data again) -- might be best to get another opinion on it in that case.
-Jordan
First go into your SQL database and find 'Jobs' and set jStatus = 'ENABLED';
Then the file:
/concrete/libraries/database_indexed_search.php
Copy this into your top level libraries folder and change the following code:
$bi = $b->getInstance(); if (!is_object($b)) { continue; }
to this:
if (!is_object($b)) { continue; } else { $bi = $b->getInstance(); }
This should stop it happening again.
Err what did that bit of code do any way?
Thanks, Dojo. Nice work.
Why wouldn't they update the core with this fix?
One thing I have noticed though is if your C5 has been updated and is not a 'clean install' the above sometimes does not work.
I ended up doing a COMPLETE re-install?
Wont help you, but just saying.......
Bloody annoying!
Sorry to hear.
Is this the same sort of issue the core team was having with their wordpress import script (watch their most recent weblog video), so now they are rewriting it so timeouts don't occur?
--
Scott Conrad
Sent with Sparrow
i got this error too, the spin run! run! run!(remember me to one piece ost)
this is the error i get when i try jordan suggest.
Request Timeout
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.
this is just 2$/mont hosting crap :), so no access to php ini
i try
set_time_limit(900);
but still error.
btw, can we turn it off? the spin? it never ending story :)
what benefit to run this spin?
I think maybe the setting is not working. If you look at the PHP manual (http://php.net/manual/en/function.set-time-limit.php... ) it says that the set_time_limit() function does not work if PHP is in "safe mode". Perhaps your host has safe mode turned on?
result : safe_mode : 0 //it is off isn't?
the hosting guy add this to my .htaccess:
php_value memory_limit 100M
php_value max_execution_time 300
i dont know if that's is work, after i try 'enable' change job and run again still got the error.
so i think better to 'enable' again job status like dojo said to stop the spin runing.
btw, when i try change code dojo suggest, the code is diferent.
canot find it in database_indexed_search.php
$bi = $b->getInstance(); if (!is_object($b)) { continue; }
So it was easier and quicker just to move folders and re-install
Total time= 32mins
http://www.concrete5.org/community/forums/customizing_c5/index-sear...