🇺🇸United States @rosemarystanley

Account created on 20 November 2015, about 9 years ago
#

Recent comments

🇺🇸United States rosemarystanley

Ok I reviewed the other issues and created a PR to review and try out to see if that resolves your issue.

🇺🇸United States rosemarystanley

Ok created a merge request with some changes to integrate the entity save and mapping of other CC fields. I have no added custom field support yet but thought this might be a good start. Feel free to give it a try.

🇺🇸United States rosemarystanley

That's great. I am going to keep this open for now as a feature request because I'd like to integrate this as an option with the User registration form.

🇺🇸United States rosemarystanley

The line should actually should be


$body->street_address = (object) [
    'street' => $data['street'],  
    'city' => $data['city'], 
    'state' => $data['state'], 
    'postal_code' => $data['postal_code'], 
    'country' => $data['country'],
  ];

I think that's the issue

🇺🇸United States rosemarystanley

Hello and thanks for reaching out. I will try to take a closer look as soon as I can.

A couple of suggestions on what you can look at in the meantime:

There are hooks that fire before sending user data to constant contact. This one could be helpful:
hook_ik_constant_contact_contact_data_alter details can be found in ik_constant_contact.api.php

That may be a little more complicated but could be useful.

The email address from an entity is mapped via field settings in Drupal\ik_constant_contact\Plugin\Field\FieldType\ConstantContactListItem
Likely this file may need to be modified to map the other user/entity fields.

I'll take a look as soon as I am able.
Thanks!

🇺🇸United States rosemarystanley

Changes up to this point applied to 4.x-dev branch

🇺🇸United States rosemarystanley

Reapplied patch and will be releasing 3.0.3 with the correction. It must've gotten lost in the merge from the another issue.

🇺🇸United States rosemarystanley

Closing due to intactivity

🇺🇸United States rosemarystanley

Thank you for submitting the bug report and patch. I'll be reviewing as soon as I can.

🇺🇸United States rosemarystanley

Thanks all for your patches & commits. I'm in the process of releasing 3.1.8 that will have this bug fix in. I did go ahead and remove the token config save (it was outdated code and should have been removed before... and should have been changed to the saveTokens method)

🇺🇸United States rosemarystanley

Closing. This doesn't seem to be an issue anymore.

🇺🇸United States rosemarystanley

Merge request committed. New release 3.1.7 has been created and documentation is updated to include quotes. Thanks!

🇺🇸United States rosemarystanley

Thanks so much joel for the merge request. I'll review as soon as I can. Thanks.

🇺🇸United States rosemarystanley

Fix is available in v 3.1.5 or higher

🇺🇸United States rosemarystanley

Code change has been made of dev branch 3.x as well as will have a new release 3.1.6 shortly.

🇺🇸United States rosemarystanley

Hey. The module will automatically crop based on the crop type settings. But if the default/automatic crop is not how you prefer you can go in and manually adjust it.

Currently there is no AI functionality or complex analysis unfortunately. It just defaults to the most available space based on the crop settings starting from the center. The automatic crop is a plugin so in theory someone could come in and create a AI based plugin to add more complexity to it-- I would love to eventually add more complex options.

Let me know if you have other questions.

🇺🇸United States rosemarystanley

Yes, great point. I'll work on this.

🇺🇸United States rosemarystanley

Goodness, good catch. I've merged the PR and will create a new release shortly

🇺🇸United States rosemarystanley

Thanks so much for the patch for this!
It has been a crazy couple of weeks for me. Merging the PR in and made a release 3.0.2

🇺🇸United States rosemarystanley

Closing due to inactivity. Please reopen or create a new issue if need be.

🇺🇸United States rosemarystanley

Marking as fixed due to inactivity. Please reopen if need be. Thanks!

🇺🇸United States rosemarystanley

Thanks for reporting and patching! This is rolled into 3.1.4 release.

🇺🇸United States rosemarystanley

Closing due to inactivity and no response. Feel free to reopen if need be. Thanks!

🇺🇸United States rosemarystanley

Merged and in 5.1.4 release! Thanks

🇺🇸United States rosemarystanley

Hello! I'm taking a look at this and I'm a little confused. Where are you seeing the geolocation / geocoder module requirement? I'm not seeing any requirement for those modules. There are some APIs that help with getting a user's geolocation from the IP address but that does not require any additional module. I thought I had hard coded something from those modules but I'm not finding anything that requires it. Are you getting an error message or something?

🇺🇸United States rosemarystanley

Hello! So when the module was originally created it was for a client who wanted to target audiences for specific modals by geographic region/state...we decided to publish it for others to use and I guess we never went back to adjust this to only require the geolocation module if you have the geolocation settings enabled. So I'm marking this as a minor bug to fix and conditionally require the module if you want to use geolocation targeting for modals.

🇺🇸United States rosemarystanley

Hrm, possibly. Do you have any deployment/workflow hooks that runs config:import?

I would try the newest patch in #3215168 and try and move the tokens into the database.

🇺🇸United States rosemarystanley

Thanks for the update! Feel free to reopen or create a new issue if something changes.

🇺🇸United States rosemarystanley

So strange. I have been a bit swamped so I haven't had a chance to look into this further but thanks for updating and providing all the additional information.

🇺🇸United States rosemarystanley

So by default constant contact expires the access tokens "Access tokens automatically expire 1440 minutes (86,400 seconds). Making an API call with an expired access token returns a 401 unauthorized status code." so it should be saying 24 hours.. So that 2 hours is odd it may be a typo HOWEVER I don't think that would cause your tokens to need to be reauthorized manually. That time/date is what flags the cron to get a new token so that it doesn't expire.

Some other questions that may help... Is it the production environment that is always needing reauthorizations? Or the dev/staging environments?
We use pantheon, and I know the dev instances (non-live) stop auto-running cron sometimes if it has been inactive for awhile. But it shouldn't happen in the production (live) environment since that doesn't happen.

Are you using configuration sync? If so, when you go to the sync screen /admin/config/development/configuration is ik_constant_contact.tokens listed in the changed group?

Do you have the ik_constant_contact_tokens table in your database? If not, perhaps you need to run database updates? If you have recently done the update where tokens were moved to the database, it could potentially have cause a need to manually re-authorize the app.. but it shouldn't repeat.

I'm gonna keep trying to figure out what's going on, but I'm not sure because I haven't been able to recreate it in my environments that are using the module.

🇺🇸United States rosemarystanley

Hrm, I have a couple of questions to follow up:

do you have Long Lived Tokens set up on the Application(s)? See screenshot:

What version of the module do you have installed?

🇺🇸United States rosemarystanley

Ok rerolled the patch. Let's see how this does.

🇺🇸United States rosemarystanley

Thanks, that helps! I'll take a look as soon as I can. Moving back to needs work status.

🇺🇸United States rosemarystanley

Do you have any additional information via drupal logs?

🇺🇸United States rosemarystanley

Thanks! That's not a bad idea. I'll reopen this for consideration. (Updating the version as well)

🇺🇸United States rosemarystanley

Closing due to inactivity. We can reopen or create a new issue if there is more to fix.

🇺🇸United States rosemarystanley

Marking as fixed. We can reopen or create new issue if there is more to fix.

🇺🇸United States rosemarystanley

Thanks so much for submitting a patch. Sorry it's taking me a bit to get to this. Been a bit swamped at work. But I'll take a look and hopefully merge in when I have a chance.

🇺🇸United States rosemarystanley

Finding more errors popping up. Will need to do a better check

Production build 0.71.5 2024