sjmleeds Posted May 13, 2014 Share Posted May 13, 2014 Hi All, We upgraded from 1.5 to 1.6 and in the previous version, we made the amendments to the necessary files as mentioned here: http://www.prestashop.com/forums/topic/81129-solvedhow-to-change-the-length-of-the-file-name-of-the-attachement/ However, this solution doesnt work in 1.6 - it works in theory, as it does allow upload of longer charachter length files, however after adding and clicking "save and stay" or "save" the screen goes blank white, it does save the attachment, but doesnt redirect after that. Anyone who can shed any light would be most appreciated. Thanks Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted May 13, 2014 Share Posted May 13, 2014 Have you tried to override clasess file Attachment.php on public static $definition and increase size value of field name ? Don't forget, you should increasing varchar value in PREFIX_attachment_lang database table according to value defined on your override file Link to comment Share on other sites More sharing options...
sjmleeds Posted May 13, 2014 Author Share Posted May 13, 2014 Have you tried to override clasess file Attachment.php on public static $definition and increase size value of field name ? Don't forget, you should increasing varchar value in PREFIX_attachment_lang database table according to value defined on your override file Thanks, i tried all that and also updated varchar in db table to match the 128 in the files, but still it just gives white screen after saving attachment. Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted May 13, 2014 Share Posted May 13, 2014 Don't forget to delete file /cache/class_index.php to make the overridden file working well. Activate Prestashop debug mode, to see the error message instead only get a blank page. Set _PS_MODE_DEV_ to true in file /config/defines.inc.php define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
Wolfmanjack Posted October 1, 2015 Share Posted October 1, 2015 Hi Thanks for your Help findig the soluton. This Topic is SOLVED This Entry gives the solution: https://www.prestashop.com/forums/topic/63332-bug-the-field-mime-is-too-long-32-chars-max/ So long ... 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