Incomplete Object Error on for Drupal\marketo_ma_user\ActivityType in Marketo MA User Activities Configuration

Created on 26 August 2022, over 2 years ago

Problem/Motivation

On sites that previously had the 2.0 release of Marketo MA installed, the administration panel at /admin/config/services/marketo-ma/users/activities will produce a white screen error with an "incomplete object" error outputted to the system PHP log. This only happens if the site has a previously stored state for 'marketo_ma_user.activity_types' which are outputted on this page.

There appears to be an incompatibility between the schema of the old saved state and what is expected by processes calling getMarketoActivities() from the MarketoMaUserService class. This error does not happen on fresh installs.

Steps to reproduce

  1. Install and configure the 1.0 or 2.0 release of Marketo MA
  2. Enable and configure Marketo MA and Marketo MA User
  3. Retrieve activities from Marketo, choose some activities, and save.
  4. Upgrade to the 3.0 release.
  5. Go to the main Marketo MA config settings panel and re-enter your Account ID (another minor bug)
  6. Go to the User Activities config panel.

Proposed resolution

Add an update script to Marketo MA User to purge saved states for 'marketo_ma_user.activity_types'. If a saved state isn't found when MarketoMaUserService::getMarketoActivities() is called a fresh valid copy will be generated and saved. The keys for the data in the newly saved state will match those of the old state so previously selected activities will be retained and are still correct.

Remaining tasks

I'll submit a merge request with an update script to purge the offending saved state.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hyperlinked San Jose, CA

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024