-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fatal error: Call to a member function format() on null in magento2/lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php on line 260 #1427
Comments
Issue is related to https://bugs.php.net/bug.php?id=66323. Created an internal ticket MAGETWO-39421 |
@supravatweb, the issue was fixed in 1.0.0-beta. Please, check the issue on this version. |
Problem still exists on my side on certain server/php, CentOS with php 5.5.24 to be exact. Intl version 1.1.0, ICU version 4.2.1. Everything is working on Windows and Ubuntu with latest 5.5.x php, so it's most likely usual problem when different/older intl is behaving differently. In my case IntlDateFormatter excepts this: But crashes on this: It seems it only excepts DateTimeZone with timezone identifier. One more thing, it's possible last fallback added in 1.0.0-beta is also wrong: new \DateTimeZone(\DateTimeZone::UTC) new \DateTimeZone("UTC") - working Hope it helps. |
The issue should be already fixed. |
I am getting this issue in magento 2.1.1. I can see this when I go to index page or when I try to checkout. The checkout doesn't complete showing error as
would like to know how can I fix this or debug this? Thanks, |
IntlDateFormatter may returns null instead of throwing an exception, see bug #66323 Usually, something like this is done:
|
There is a known PHP issue with versions: Update PHP version and it will be fixed. |
[Performance] Add seed for JMeter scenarios
After the install Magento2 on localhost, its working file. But when I try to re-index, its getting the following error.
Fatal error: Call to a member function format() on null in /var/www/html/magento2/lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php on line 260
Have any idea for this?
The text was updated successfully, but these errors were encountered: