Generate Stats doesnt work with Google-Api activated
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)
-
reporter -
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");
-
repo owner - changed status to resolved
I've just committed the modifications. Please try it, and reopen the issue if it's not good enough.
- Log in to comment
Hello Janos, is there a problem with my workaround?