Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By gertjan-1 on
Hi, I've almost read all the posts about reindexing the database.
But I can't re-index my database. And I really can't find a way to do it. Searched all the admin pages ect.
When I try to do a manual reindex by index.php?q=admin/search/reindex then I get the following error
warning: call_user_func_array() expects first argument, 'admin_admin', to be a valid callback in C:\Program Files\Ensim\SiteData\webppliance\conf\domains\dpoy51\Inetpub\wwwroot\nieuws\includes\menu.inc on line 108.
Please help?
Gert
Comments
Rebuilding the search index
Search indexing is controlled by the update_index hook and cron.php. To index a Drupal site, access cron.php with a browser.
And to re-index the search database from scratch, delete the comment_cron_last, node_cron_last, and comment_cron_last records from the variables table. These timestamps are what prevents Drupal from rebuilding the entire search index on every cron call. Large sites may experience timeout errors performing this action, and it is not wise to do his if there is nothing wrong with your search index.
Thanx,...
I allready changed the value in those fields but that didn't work. Or I did something wrong with the Cron
Strange that there was no article in the forum about it.
Best regards
Gert,
Rebuild search index
Actually, it is better to just set the timestamps in those variables back to zero, rather than delete them. Remember that the variable includes the length of the number, so you can change it to '0000000000' and go from there.
Also ...
Remember to check that the node Status is "1" and the Moderate is "0", otherwise nodes will be excluded from the index.