Closed GoogleCodeExporter closed 8 years ago
I am getting the exact same error, but only on my production server, not on my
development or staging server. All servers are running the same version of PHP.
Original comment by j...@qccreative.com
on 22 Aug 2012 at 12:56
Also $apiConfig contains NULL and I get a notice on line 98 for attempting to
array_merge() a null value.
Original comment by j...@qccreative.com
on 22 Aug 2012 at 12:58
Have you made any changes to src/config.php? I was also wondering if you're
using the latest version of the Google APIs PHP Client on trunk.
Original comment by chirags@google.com
on 27 Aug 2012 at 8:56
Original comment by ianbar...@google.com
on 22 Mar 2013 at 3:15
I get the exact same error and I'm using the latest version.
Original comment by cv.johan...@gmail.com
on 1 Jul 2013 at 11:27
I found a way to fix this bug.
Add this to line 108 in Google_Client.php:
if (!isset($apiConfig)) {
// hack around with the include paths a bit so the library 'just works'
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
require "config.php";
// If a local configuration file is found, merge it's values with the default configuration
if (file_exists(dirname(__FILE__) . '/local_config.php')) {
$defaultConfig = $apiConfig;
require_once (dirname(__FILE__) . '/local_config.php');
$apiConfig = array_merge($defaultConfig, $apiConfig);
}
}
Somehow the global variable $apiConfig is cleared after one Google Api Request
and with this code
the variable is set for every request rather than just the first one.
Original comment by cv.johan...@gmail.com
on 1 Jul 2013 at 11:40
Can you please help? I added the above code still this is not working.
Original comment by sudharsh...@gmail.com
on 29 Dec 2014 at 11:55
Original issue reported on code.google.com by
samuel.o...@covenantuniversity.edu.ng
on 16 Aug 2012 at 9:26