Generate Stats doesnt work with Google-Api activated

Issue #151 resolved
Karsten Bandlow created an issue

PHP Warning: require_once(google-api/apiClient.php): failed to open stream: No such file or directory in /var/www/system/startup.php on line 19 PHP Fatal error: require_once(): Failed opening required 'google-api/apiClient.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/system/startup.php on line 19

My Workaround, not very nice, because I need to go one level higher in path.

if(ENABLE_GOOGLE_LOGIN == 1) {
   require_once (DIR_SYSTEM . "../google-api/apiClient.php");
   require_once (DIR_SYSTEM . "../google-api/contrib/apiOauth2Service.php");
}

Comments (3)

  1. Janos SUTO repo owner

    Hello Karsten, no, I just skimmed through it, haven't had the time to see it, sorry. Your fix is ok, however would you try it with using DIR_BASE? In this case we wouldn't need "../", eg.

    require_once (DIR_BASE . "google-api/apiClient.php"); equire_once (DIR_BASE . "google-api/contrib/apiOauth2Service.php");

  2. Janos SUTO repo owner

    I've just committed the modifications. Please try it, and reopen the issue if it's not good enough.

  3. Log in to comment