nblackburn93 Posted August 14, 2014 Share Posted August 14, 2014 When I upload an image to any of the hooks, the file uploads but does not have the dot before jpg on the file ext. This causes the images not to display. Example: http://www.aidapt.com.au/modules/themeconfigurator/img/58f0db35c3238cfbb75ba28dea12ebe4c785b7ee_620x3801jpg On Windows Server. Link to comment Share on other sites More sharing options...
Dh42 Posted August 14, 2014 Share Posted August 14, 2014 What version of Prestashop and the theme configurator are you using? Link to comment Share on other sites More sharing options...
nblackburn93 Posted August 14, 2014 Author Share Posted August 14, 2014 v1.1 on v1.6.0.5 of Prestashop Link to comment Share on other sites More sharing options...
Dh42 Posted August 14, 2014 Share Posted August 14, 2014 I am pretty sure this has been fixed in the updates to the later versions. Link to comment Share on other sites More sharing options...
nblackburn93 Posted August 14, 2014 Author Share Posted August 14, 2014 It says it is up to date in my modules page, how would i go about updating it? Link to comment Share on other sites More sharing options...
Dh42 Posted August 14, 2014 Share Posted August 14, 2014 Strange, that is the current version. Have you tried to upload a new image since it has been updated? Link to comment Share on other sites More sharing options...
nblackburn93 Posted August 14, 2014 Author Share Posted August 14, 2014 Yes. This is a new installation. I updated everything to latest except the version of PS as it is the one compatible with my theme. Its really bugging me because for every image it misses the dot. I have to edit the database and rename the image. If it didn't rename the image when it uploaded it, there would be no issue. Link to comment Share on other sites More sharing options...
Dh42 Posted August 14, 2014 Share Posted August 14, 2014 Are you comfortable editing the php files? A quick and dirty way to fix the issue is to change line 432 in the themeconfigurator.php to $img_name = $salt.'_'.Tools::str2url($image['name']).'.jpg'; Link to comment Share on other sites More sharing options...
nblackburn93 Posted August 14, 2014 Author Share Posted August 14, 2014 That works amazingly! Thank you so much for your help, two support teams couldn't tell me that! I am okay with PHP but still in early stages of learning. Your help is so greatly appreciated! Link to comment Share on other sites More sharing options...
Dh42 Posted August 14, 2014 Share Posted August 14, 2014 No problem, glad it worked. Just curious, what two teams did you use for support? You can pm them to me if you don't want to post them. Link to comment Share on other sites More sharing options...
nblackburn93 Posted August 14, 2014 Author Share Posted August 14, 2014 Two levels of support from TemplateMonster who I got the original theme from. Link to comment Share on other sites More sharing options...
anmolrattan Posted August 14, 2014 Share Posted August 14, 2014 I am facing same problem. Even after applying changes, it is not working for me. Link to comment Share on other sites More sharing options...
Dh42 Posted August 14, 2014 Share Posted August 14, 2014 Does anything change when you apply the fix? Link to comment Share on other sites More sharing options...
anmolrattan Posted August 14, 2014 Share Posted August 14, 2014 Images are not appearing. It seems even it is not picking anything from database now. NO changes are taking effect. Link to comment Share on other sites More sharing options...
anmolrattan Posted August 14, 2014 Share Posted August 14, 2014 What ever I try to save, it save like taking off the "." from image name. Also, image name gets appended by a random number. 92215a05036576e5cc40c82f941773ef024984e1_verifiedpng Link to comment Share on other sites More sharing options...
Recommended Posts