opencart / opencart

A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.

Home Page:https://www.opencart.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't edit addresses as a customer

AJenbo opened this issue · comments

Version: bea93b4

Describe the bug
As a customer I can't change my addresses.

Opencart\Catalog\Model\Account\Address::editAddress(): Argument #2 ($address_id) must be of type int, array given, called in /var/www/html/system/engine/loader.php on line 156: in /var/www/html/catalog/model/account/address.php on line 37

This issue was also picked up by PHPStan during the GitHub action:
https://github.com/opencart/opencart/actions/runs/8122675764/job/22202365812
Looks like there are about 41 similar issues currently.

To Reproduce
Steps to reproduce the behavior:

  1. Create user
  2. Click on my account
  3. Add an address
  4. Edit the adresses
  5. See nothing happened

Expected behavior
Save and continue

Server / Test environment (please complete the following information):

  • Local development
  • Debian
  • PHP 8.2
  • Apache 2.4.57
  • Firefox