Call to undefined function SEOstats\Config\env()
fbarrento opened this issue · 4 comments
fbarrento commented
I get this error when trying to access the GooglePageSpeesAnalysis
merajsiddiqui commented
$dotenv = new Dotenv\Dotenv('path to your .env'); $dotenv->load(); function env($config, $default) { $config_value = getenv($config); if(is_string($config_value) && (strlen(trim($config_value)) > 0)) { return $config_value; } else { return $default; } }
All you need to write this code where you are calling the Google Page Speed Analysis
fnagel commented
Same issue here.
aw73 commented
Same issue with examples : get-mozscape-metrics.php or get-google-pagespeed-analysis.php