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
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

alzum - November 9, 2009 - 16:15

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

areaten - November 16, 2009 - 13:29

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

areaten - November 16, 2009 - 15:15
Title:Node titles are limited to 128 characters when imported» Node titles are limited to 128 characters when imported (when content type is an UberCart product class)

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

alzum - November 16, 2009 - 15:24
Title:Node titles are limited to 128 characters when imported (when content type is an UberCart product class)» Node titles are limited to 128 characters when imported

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

alzum - November 16, 2009 - 15:28
Title:Node titles are limited to 128 characters when imported» Ubercart product titles are limited to 128 characters when imported
Status:active» by design

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

areaten - November 16, 2009 - 23:49

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_...

 
 

Drupal is a registered trademark of Dries Buytaert.