Ubercart product titles are limited to 128 characters when imported
areaten - November 8, 2009 - 21:46
| Project: | Node import |
| Version: | 6.x-1.0-rc4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
When the Drupal 6 node title string allows 255 characters
error:
Title cannot be longer than 128 characters but is currently 184 characters long.
I'm using version 6.x-1.0-rc4 of Node Import
I need long node titles, so any way of getting it to accept 255 characters?

#1
What step of the import does this problem occur on? Are you just importing the 'story' type?
I will have a look into the code to see if I can find where node_import makes this check if you could tell me these things.
Thanks.
#2
Hi alzum, thanks for helping
I am importing into a new content type I have created, 'Catalogue Item', and it is set as a product type within ubercart.
The problem occurs after the actual importing step, where you see the results page.
Status: Completed
Rows imported: 74 rows
Rows with errors: 30 rows
I downloaded 'Rows with errors' and each of the errors is:
Title cannot be longer than 128 characters but is currently 236 characters long.
(or a number bigger than 128)
Much appreciated for your help
#3
Hi
prompted by your suggestion whether it was a story content type or not, I tried importing as the story content type and I got no errors!
But setting the same content type as a product class in ubercart and then trying to import, I get the title error from before. So it's narrowed it down to a ubercart 2 and node import issue.
I'll post in relevant forums and report back here.
#4
OK cool, thanks. I recreated the error using some stuff of my own.
Seems it only happens with Ubercart.. You'll need to check if this is a restriction in ubercart, it may not be a problem with node_import.
I'll find out more.
#5
This isn't a problem with node_import. Ubercart has limited the product title to 128 characters. You'll have to get onto their forums to see how you can work around the limitation. If you can either get a module to allow longer titles, or hack ubercart and remove the maximum title limit, you should be ok to import.
I found this out by trying to manually create an item using 'create content' and the title was limited to 128 characters.
#6
Report back for anyone reading this. Patch to Ubercart 2.0 to fix product title length:
http://www.ubercart.org/forum/support/14100/ubercart_product_titles_are_...