dawb Posted May 6, 2013 Share Posted May 6, 2013 Hi, The image uploader in the CMS has been working fine but now all of a sudden we receive the following error when trying to upload files "The folder path is not allowed". I have checked all of the rights and they are all 0777. Does anyone know how to fix this issue? I have looked through the forums but none of the resolutions seem to work in our case. Thanks for the help. Link to comment Share on other sites More sharing options...
NemoPS Posted May 6, 2013 Share Posted May 6, 2013 The cms uploader seems to be broken in the latest release. At least, it is for many people, as for example it works locally for me. Have you recently changed your server config somehow? Do you know if the server admins just installed new softwares? Link to comment Share on other sites More sharing options...
dawb Posted May 6, 2013 Author Share Posted May 6, 2013 Hi Nemo, thanks for getting back to me. Nothing has changed that we are aware of. We have gone through the error logs and the issue appears to be that the $_GET['folder'] value in the ajax upload is now being returned as undefined for some reason. We have also tried reverting ajaxfilemanager folder back to the version from 1.5.2 but this does not seem to make any difference. Link to comment Share on other sites More sharing options...
dawb Posted May 15, 2013 Author Share Posted May 15, 2013 Hi, The issue was that the client had uploaded a file with an ' in the file name which was breaking the script. The issue was happening when the the file manager creates the list of files. From what I can tell it is in the getFileList() function in class.manager.php but I could not work out where to change this so that the filename is php safe. Thanks for the help Link to comment Share on other sites More sharing options...
haunter Posted October 9, 2013 Share Posted October 9, 2013 I repaired it! Problem was caused by absolute path to web directory - first, find out path to your web directory (in my case that was eshop/myeshopname/ or www/myshopname ) then add to file:youradmindirectory\ajaxfilemanager\jscripts\for_tinymce.js before row 237 (try { win.ImageDialog.showPreviewImage(url); }) this code: url = url.replace("eshop/", ""); and file js\tiny_mce\plugins\advimage\image.htm around row 230 replace submit input by this input <input type="submit" id="insert" name="insert" value="{#insert}" onclick="document.getElementById('src').value = document.getElementById('src').value.replace('eshop/','');return true;" /> of course, replace eshop/ by your individual path!!! Link to comment Share on other sites More sharing options...
vekia Posted October 9, 2013 Share Posted October 9, 2013 I repaired it! Problem was caused by absolute path to web directory - first, find out path to your web directory (in my case that was eshop/myeshopname/ or www/myshopname ) then add to file: youradmindirectory\ajaxfilemanager\jscripts\for_tinymce.js before row 237 (try { win.ImageDialog.showPreviewImage(url); }) this code: url = url.replace("eshop/", ""); and file js\tiny_mce\plugins\advimage\image.htm around row 230 replace submit input by this input <input type="submit" id="insert" name="insert" value="{#insert}" onclick="document.getElementById('src').value = document.getElementById('src').value.replace('eshop/','');return true;" /> of course, replace eshop/ by your individual path!!! hello thank you for solution may i know in what ps version you changed it? Link to comment Share on other sites More sharing options...
Recommended Posts