error with Import members spreadsheet

Post

Posted
Rating:
#5248 (In Topic #1187)
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
I am finally going live today, and have previously and sucesfully imported members using the member CSV import facility.

However using the recommended approach, I downloaded the members database, and simply changed Validated from "No" to "Yes", and the system errors as follows

Database query failed: UPDATE cms_f_members SET (removed for security) [Data too long for column 'm_password_compat_scheme' at row 1]

The members validation status is still left as Off

I have also tried removing the password column from the CSV file, and setting the default password, but the same error occurs

However if i set the Password column in plain text then it imports correctly without the error message.

I think there may be a bug here.

Thanks
Chris

 

Last edit: by Chris Graham

Online now: No Back to the top

Post

Posted
Rating:
#5249
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

I believe this one has been fixed some time ago.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5250
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
Hi chris.
Could you give me any pointers on the file involved.

Couldn't see anything obvious in the tracker?

Thanks
Chris
Online now: No Back to the top

Post

Posted
Rating:
#5251
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Taking a look.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5252
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Change to sources/hooks/systems/tasks/import_member_csv.php and sources/hooks/systems/tasks/download_member_csv.php in:

https://github.com/ocproducts/composr/commit/2991840534417e3cbd58da13900ba1382994bad6#diff-9db9f7484e08c321685fa3924e4085fa

I think I discovered it myself, when I happened to come across a password hash that had a slash in.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5255
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
Hi chris.
All a bit odd. The line in git as changed is different. Mine  reads
$parts = preg_split('#\s*/\s*#', $line['Password'], 3);

Up to going custom around 10.15 I was keeping up to date with updates so not sure why this is wrong.

I'll try updating and try again.
Online now: No Back to the top

Post

Posted
Rating:
#5257
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Go with $parts = explode(' / ', $line['Password'], 3);, you actually avoided a future bug  by noticing this.

Because of your version's changes involving member account changes, a lot of files touching member accounts had to be changed.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5265
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
Thanks chris.

That resolved it
Chris
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,827 members
  • Our newest member is LowfareMart
Back to Top