I have a problem like in attachment. I don't know why address isn't rendering. Please help me how to debug this.

enter image description here

有帮助吗?

解决方案

The issue is caused by inability to load address attributes from EAV tables in the database. Magento assumes values of certain IDs invariant and thus they're hard-coded in a PHP code for performance optimization purposes. Attribute set ID = 2 is hard-coded for address attributes. However, the field eav_attribute_set.attribute_set_id is AUTO_INCREMENT and thus is governed by MySQL settings auto_increment_increment and auto_increment_offset. Having non-default values for those settings is the root cause of the issue.

The fix:

  1. Make changes to the MySQL config my.cnf:
    • auto_increment_increment = 1
    • auto_increment_offset = 1
  2. Restart MySQL to apply the config changes
  3. Create a new empty database
  4. Re-install Magento from scratch to the new database

Note: Changing MySQL settings above will not recover the existing database.

许可以下: CC-BY-SA归因
scroll top