Error on Salesforce mapped object list page: ArgumentCountError: Too few arguments to function Drupal\salesforce_mapping_ui\MappedObjectList::__construct(),

Created on 7 February 2024, 11 months ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

When I try to push an entity to Salesforce or go to the mapped objects page, I receive the following error:

ArgumentCountError: Too few arguments to function Drupal\salesforce_mapping_ui\MappedObjectList::__construct(), 3 passed in web/modules/contrib/salesforce/modules/salesforce_mapping_ui/src/MappedObjectList.php on line 45 and exactly 4 expected in Drupal\salesforce_mapping_ui\MappedObjectList->__construct() (line 55 of web/modules/contrib/salesforce/modules/salesforce_mapping_ui/src/MappedObjectList.php).

Steps to reproduce

Using 5.0.x version of Salesforce:

  • Enable salesforce mapping module
  • GO to salesforce mapped objects page

After following the steps, the page with crash, and accesing to logs the error will appear as the cause.

Proposed resolution

Fix MappedObjectList createInstance method to inject date.formatter dependency

πŸ› Bug report
Status

Fixed

Version

5.0

Component

salesforce_mapping.module

Created by

πŸ‡ͺπŸ‡ΈSpain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024