Comments (11)
Hi, wasn't it fixed by #3374 (which I think was released only in v20)?
from magento-lts.
I don't think so. The issues seem different. This is an issue with the core form Date & DateTime filters in Admin (used internally by the EAV from components - such as the customer EAV models - and other forms), while the issue you mentioned seem to be specific to the customer registration form in the frontend which uses three different elements for DD, MM, and YYYY
from magento-lts.
Following the steps described, I cannot replicate with ver20.3.0 and PHP8.2.
from magento-lts.
I found this old PR #1457 and related bug which is the exact same as I am experiencing. This does not appear to happen on new installations, but it does happen with older/upgraded installations (in my case we migrated to OpenMage 19.5.2 from Magento CE 1.9.4.5, but or original magento installation - and DB - comes from 1.4).
It is clear from the issues reported both in OpenMage as well as Magento2 repos, that this is an issue which impacts quite a few people upgrading, and the fix in my view is quite simple and logical, there is no need to filter a Date when the input is empty, if anything this should also make for better and more performant code.
from magento-lts.
does it happen on OM 20.3.0?
from magento-lts.
Not sure, I have not upgraded to OM 20.x yet, we are still on 19. It will require quite a bit of work for me to move to OM 20 since we have in-house and community modules that need to be upgraded
from magento-lts.
Maybe its the database settings?
Can you show a DESCRIBE of that table?
from magento-lts.
<?php
require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
$test = new Zend_Locale_Math_PhpMath();
$test->Sub(0, '');
from magento-lts.
Sure, the Customer DOB is stored in magento's EAV model for the customer, in table customer_entity_datetime
mysql> DESCRIBE customer_entity_datetime;
+----------------+-------------------+------+-----+---------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------+-------------------+------+-----+---------------------+----------------+
| value_id | int | NO | PRI | NULL | auto_increment |
| entity_type_id | smallint unsigned | NO | MUL | 0 | |
| attribute_id | smallint unsigned | NO | MUL | 0 | |
| entity_id | int unsigned | NO | MUL | 0 | |
| value | datetime | NO | | 0000-00-00 00:00:00 | |
+----------------+-------------------+------+-----+---------------------+----------------+
5 rows in set (0.01 sec)
I see the @sreichel provided a patch in zf1-future to fix this in the parent class Zend_Locale_Math_PhpMath
, but that PR has not been merged yet, and even if it does, it might take sometime to be released and then we would need to upgrade OM 19.x to the new version of zf1-future which might have other implications.
I still think the patch I provided should be merged even if this is fixed elsewhere, it makes no sense to me to try and filter a date and/or datetime input doing time consuming conversions to and from internal locale and application locale when the input is empty.
from magento-lts.
@massa-man the PR targets main branch and has to be backported. I'm okay with it, but i remember that the v19.x branch is abandoned.
If you use composer, you can patch this file until the next zf1 release (that hopefully comes within next days)
However, +1 for the PR.
from magento-lts.
@massa-man The PR has been merged. With composer you can use dev-master until next release.
edit: updating zf1 is safe!
from magento-lts.
Related Issues (20)
- Fatal error: Uncaught Error: Call to a member function addData() on null HOT 2
- Deprecated functionality: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
- Deprecated functionality: strlen(): Passing null to parameter #1 ($string) of type string is deprecated
- Fatal error: Uncaught Error: Call to a member function setOnclick() on false HOT 2
- Deprecated functionality: nl2br(): Passing null to parameter #1 ($string) of type string is deprecated
- Deprecated functionality: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
- incorrect currency value HOT 4
- Use redis for session HOT 5
- Customer information missing after 19.5.3 -> 20.5.0 upgrade HOT 7
- Creating an order for a new registered customer - Required email address issue HOT 1
- Recaptcha HOT 2
- Payment and Shipping not selectable in backend (customer) order, but in frontend. HOT 1
- OpenMage (19.x and 20.x) appears incompatible with Amasty extensions
- onepage/billing.phtml required still displayed after removed. HOT 3
- Upgrading from 19.4.x to 20: recurring data is not saved
- Customers on online not showing HOT 3
- A recurring product is not calculated correctly in the cart HOT 3
- Long running queries presumably from layered navigation HOT 13
- PHP Error in frontend with improper request params HOT 2
- shardj/zf1-future patches all fail during composer install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-lts.