Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search indexing script is unable to run #76

Open
jaswope opened this issue Jul 18, 2013 · 1 comment
Open

Search indexing script is unable to run #76

jaswope opened this issue Jul 18, 2013 · 1 comment

Comments

@jaswope
Copy link
Collaborator

jaswope commented Jul 18, 2013

Something in either header.inc or its chain of includes prevents the search indexing script from running. Looking at header.inc, it assumes that it is running in a web session and therefore is not appropriate to bootstrap the app environment. It is likely that one of those assumptions is preventing the CLI stuff from executing.

@jaswope
Copy link
Collaborator Author

jaswope commented Jan 26, 2014

Replacing this line with the following code can band-aid the problem. It doesn't fix header.inc not working for CLI stuff, but it at least keeps the indexer running.

/***********
 * These are some shims for header.inc
 ***********/
function tmbo_query($sql, $timeout=2) {
    global $link;
    return mysql_query($sql, $link);
}
function is_intger($arg) {
       return (is_numeric($arg) && floor($arg) == ceil($arg));
}
/***********
 * End Shims
 ***********/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant