how to bypas the long titel name

Hello, we get error when product has been imported, to long titel name, how can we bypas that? 

Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).
Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).
Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).
Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).
Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).
Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).
Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).

5 answers

Profile photo of Mall Staff 184060.00 $tone May 10, 2018
Public

Hi there,

Mage2CatalogProductOptionTypeTitle: Title is too long (maximum is 255 characters).

That issue because your database has bad data in the value of the catalog_product_option_type_title.title field.
To solve that, you could do steps as followings:
+ Open the php file at path: pub/ub-tool/protected/controllers/Step5Controller.php
and find to the code line:

$optionTypeTitle2->title = $optionTypeTitle->title;

and replace it by code lines:

$optionTypeTitle2->title = $optionTypeTitle->title;
if (strlen(trim($optionTypeTitle2->title)) > 255) {
$optionTypeTitle2->title = substr(trim($optionTypeTitle2->title), 0, 255);
}

+ Once done, you could continue with data migration in the step #5.
Regards,
Mall.
 

#1
Profile photo of Mall Staff 184060.00 $tone May 11, 2018
Public

Hi there,

now your extension just does not show the error anymore and do nit add the products??

the prob is not been solved

I wonder if you had followed all steps I suggested and complete data migration in the step #5 of our tool? And did you see any message after getting such step #5 done? 

Please provide me your site credentials below, I will help to check further:

  • Admin URL
  • Admin and SSH credentials
  • Let me know the path of your web root’s folder

 
PS. Please make sure you select Private option when posting your reply, then you’re safe to share your site credentials here. Only you and our technical team can access.

Regards,
Mall.

#4
Profile photo of ubdev Staff 98030.00 $tone May 11, 2018
Public

Hi there, 
Regarding your additional question via email: 

thank you but we use 999 char titel in magento one we have modified our magento 2 the name must not be cut down.
this is possible with your extension right?

The limit of maximum characters is the working rule of Magento 2. You can check out this screenshot for reference: https://prnt.sc/jgdyx2. Our migration tool strictly complies with the Magento 2 working rule, and we highly recommend you follow the same. 
If you still insist on modifying the title name, you should handle at your end. 
Thanks for your understanding.
Regards,
Ubertheme team
 

#5

Please login or Register to Submit Answer

Written By

Comments