Switching off results in error #9

Closed
opened 2023-03-04 13:54:51 -06:00 by musicpanda · 6 comments
musicpanda commented 2023-03-04 13:54:51 -06:00 (Migrated from github.com)

Having quite a lot of spam addresses in my newsletter subscription list I wanted to delete them. But there is no option for deleting. So I settled for the next best thing: clicking the checkmark in order to disable them.

But when I did that I received a 500 error. When I checked the log file I found the following error:

ERROR 2023/03/04 - 20:48:15: ThirtyBeesException: Property Customer->lastname is not valid at line 1092 in file classes/ObjectModel.php

Having quite a lot of spam addresses in my newsletter subscription list I wanted to delete them. But there is no option for deleting. So I settled for the next best thing: clicking the checkmark in order to disable them. But when I did that I received a 500 error. When I checked the log file I found the following error: > *ERROR* 2023/03/04 - 20:48:15: ThirtyBeesException: Property Customer->lastname is not valid at line 1092 in file classes/ObjectModel.php
musicpanda commented 2023-03-04 13:56:47 -06:00 (Migrated from github.com)

The lastname field was not empty but filled with "www.cutt.us/XZuSl".

The lastname field was not empty but filled with "www.cutt.us/XZuSl".
getdatakick commented 2023-03-06 04:28:20 -06:00 (Migrated from github.com)

Can you provide stacktrace?

Can you provide stacktrace?
musicpanda commented 2023-03-06 04:37:59 -06:00 (Migrated from github.com)

Here is a stack trace:
stack

Here is a stack trace: ![stack](https://user-images.githubusercontent.com/13930107/223086895-858007bc-976a-4fc9-9d6c-d0f7de602353.jpg)
getdatakick commented 2023-03-06 04:46:11 -06:00 (Migrated from github.com)

This is not a bug in this module. The problem is that there exists customer record (it could be guest account, I'm not sure) with invalid value for 'lastname'.

This module only loads the customer record, changes the registration flag, and resave it.

Do you have any idea how these customer records were created? I tried to create such record in front office and from back office, but every time system rejected the create request. I tried also to update existing customer records, but with the same result.

Do you have some third party checkout module, by any chance?

This is not a bug in this module. The problem is that there exists customer record (it could be guest account, I'm not sure) with invalid value for 'lastname'. This module only loads the customer record, changes the registration flag, and resave it. Do you have any idea how these customer records were created? I tried to create such record in front office and from back office, but every time system rejected the create request. I tried also to update existing customer records, but with the same result. Do you have some third party checkout module, by any chance?
getdatakick commented 2023-03-06 04:57:05 -06:00 (Migrated from github.com)

Is it possible that these are old customer records?

Before 2019 it was possible to create customer records with such names. This was fixed in 1.1.0 by commit c733d5360d5292c12bb6a899748d9094bc608e05.

So if these customer records were created in thirty bees 1.0.8 or older, they would go through. After update to 1.1.0 or newer, these records would be invalid. Simple load and save (even in back office) would not be allowed.

Is it possible that these are old customer records? Before 2019 it was possible to create customer records with such names. This was fixed in 1.1.0 by commit [c733d5360d5292c12bb6a899748d9094bc608e05](https://github.com/thirtybees/thirtybees/commit/c733d5360d5292c12bb6a899748d9094bc608e05). So if these customer records were created in thirty bees 1.0.8 or older, they would go through. After update to 1.1.0 or newer, these records would be invalid. Simple load and save (even in back office) would not be allowed.
musicpanda commented 2023-03-06 05:09:48 -06:00 (Migrated from github.com)

These records are from april 2019. So that is possible.

These records are from april 2019. So that is possible.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-thirtybees/blocknewsletter#9
No description provided.