Prakash Posted October 2, 2009 Share Posted October 2, 2009 I have tried to increase the size of meta description via phpmyadmin in ps_meta_lang to varchar(500) but the new category module still throwing me this error. 1. the field META description (English (English)) is too long (128 chars max) What can i do to extend the text field length? Link to comment Share on other sites More sharing options...
Prakash Posted October 2, 2009 Author Share Posted October 2, 2009 Any one please ? Link to comment Share on other sites More sharing options...
rocky Posted October 2, 2009 Share Posted October 2, 2009 Have you tried increasing the field size in classes/Product.php? protected $fieldsSizeLang = array('meta_description' => 255, 'meta_keywords' => 255, 'meta_title' => 128, 'link_rewrite' => 128, 'name' => 128, 'available_now' => 255, 'available_later' => 255); 1 Link to comment Share on other sites More sharing options...
Prakash Posted October 3, 2009 Author Share Posted October 3, 2009 No i didnt tried this yet, but i have a question the catalog page says the mx characters for description is 128 but both in Database table and in this product script it has 255 why is this ?And one more question is do i need to change 'meta_description' => 255 to 'meta_description' => 500 to get it done ?Thanks.Update:I had edited that file and increased meta_description from 255 to 500 but it still throws the same error message.Please help Link to comment Share on other sites More sharing options...
rocky Posted October 3, 2009 Share Posted October 3, 2009 I'm not sure it would say a maximum of 128 characters. I just tested it on my Prestashop v1.2.4 installation and it said "the field META description (English (English)) is too long (255 chars max)". I just increased the size of the field in my database to 500 and changed 'meta_description' => 255 to 'meta_description' => 500 in classes/Product.php and it saved the description fine without displaying the error message. Link to comment Share on other sites More sharing options...
rocky Posted October 3, 2009 Share Posted October 3, 2009 Sorry, my mistake. I just realised you meant the category meta-description, not the product meta-description. In that case, you need to change the field in ps_category_lang and change 'meta_description' => 128 to 'meta_description' => 500 in classes/Category.php. 1 Link to comment Share on other sites More sharing options...
Prakash Posted October 3, 2009 Author Share Posted October 3, 2009 Wow mate its working now, thanks for your timely help i appreciate it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now