From 8b520345958344b7329aab41f5a9686acb12c079 Mon Sep 17 00:00:00 2001 From: following Date: Wed, 29 May 2013 15:25:56 +0200 Subject: [PATCH] documented okapi update problems --- bin/dbupdate.php | 5 ++++- bin/okapi-update.php | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/dbupdate.php b/bin/dbupdate.php index fbed4494..1bfb38e4 100644 --- a/bin/dbupdate.php +++ b/bin/dbupdate.php @@ -26,7 +26,10 @@ system('php maintain.php'); // We do *two* tests for OKAPI presence to get some robustness agains internal OKAPI changes. - // This should be replaced by a facade function call. + // + // This should be replaced by a facade function call, but current OKAPI implementation + // does not work well when called from the command line, due to exception handling problems + // (see http://code.google.com/p/opencaching-api/issues/detail?id=243). $okapi_vars = sql_table_exists('okapi_vars'); $okapi_syncbase = sql_field_exists('caches','okapi_syncbase'); if ($okapi_vars != $okapi_syncbase) diff --git a/bin/okapi-update.php b/bin/okapi-update.php index 7ecf5123..d6dd6429 100644 --- a/bin/okapi-update.php +++ b/bin/okapi-update.php @@ -22,6 +22,12 @@ $GLOBALS['rootpath'] = dirname(__FILE__) . '/../htdocs/'; require_once($GLOBALS['rootpath']."okapi/facade.php"); okapi\Facade::database_update(); + // This may not work properly if an OKAPI update mutation function relies + // on catching exceptions. The cryptic error message + // "exception thrown without a stack frame in Unknown on line 0" + // may appear (see http://code.google.com/p/opencaching-api/issues/detail?id=243). + // Then, you must call OKAPI update manually via + // http://site-address/okapi/update } ?> \ No newline at end of file