-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Strict Standards: Non-static method InstagramScraper\Instagram::getLocationById() should not be called statically #185
Comments
You get this error because
Btw, this is also quite obvious ;-) . |
I really start to love you haha thanks again but this time I found it before you replied :p but it's not working anyway :/ I got this : |
@amauryleproux Is it the complete error message? Don't you have a longer error stacktrace? |
There is the whole message: PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /Applications/MAMP/htdocs/instagram-php-scraper/vendor/phpfastcache/phpfastcache/src/phpFastCache/Drivers/Files/Item.php:39 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /Applications/MAMP/htdocs/instagram-php-scraper/vendor/phpfastcache/phpfastcache/src/phpFastCache/Drivers/Files/Item.php:39 |
Try to either to add a default timezone to you php ini file or set it in your script via |
You rock! Thanks again :) |
@amauryleproux You're welcome :) |
Thank you @AlexMiroshnikov |
Guys does anyone has an idea why I get this error when I try to get Media by location id please?
Thanks
The text was updated successfully, but these errors were encountered: