clampdown Posted April 7, 2016 Share Posted April 7, 2016 Hello,Using PS 1.6.0.14 - currently having a strange file manager issue...Upload the an image file - green tick appearsThe file doesn't appear in the file manager screenI have reinstalled the file manager for 1.6.0.14 - nothing changes.I've checked the log and get this message: filemanager/upload.php on line 135 In upload.php Lines 132 to 135 is this: } else { header('HTTP/1.1 406 file not permitted', true, 406); exit(); } So i'm a little confused... im only uploading a jpeg file.... Link to comment Share on other sites More sharing options...
Inform-All Posted April 7, 2016 Share Posted April 7, 2016 Did you check the folder write permissions on your hosting? Link to comment Share on other sites More sharing options...
clampdown Posted April 7, 2016 Author Share Posted April 7, 2016 Hello Inform-All,Yes they're 775 does it need to be 777? Link to comment Share on other sites More sharing options...
clampdown Posted April 7, 2016 Author Share Posted April 7, 2016 (edited) This is a strange issue....i can upload an image by FTP to /img/cms (both permissions 775) and it appears in the file manager... just can't upload through the file manager itself... Edited April 7, 2016 by clampdown (see edit history) Link to comment Share on other sites More sharing options...
Inform-All Posted April 7, 2016 Share Posted April 7, 2016 Hmm.. what file manager are you talking about, are you using a module? Could u send a screen or something? Because 755 for the image folders is fine. Link to comment Share on other sites More sharing options...
clampdown Posted April 7, 2016 Author Share Posted April 7, 2016 Hello Inform-AllPlease find attached file manager image Link to comment Share on other sites More sharing options...
Inform-All Posted April 8, 2016 Share Posted April 8, 2016 OKe, you can try a couple of things now, but most important do you use a media server? 1: Test if it works with all the 3th party modules disabled. 2: Disable friendly URL. 3: If still no good share: /adminxxx/filemanager/ folder with us. Link to comment Share on other sites More sharing options...
clampdown Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) I've tried all these steps and nothing happens still...Interestingly just checked my error log file and i'm getting the following error message: PHP Warning: chmod(): No such file or directory in /var/www/vhosts/domain.co.uk/httpdocs/adminXXX/filemanager/upload.php on line 71 Lines 69 - 73: 69: if (in_array(fix_strtolower($info['extension']), $ext_img) && @getimagesize($tempFile) != false) { 70: $is_img = true; 71: } else { 72: $is_img = false; 73: } Very strange.... file permission 775 for upload.php Edited April 8, 2016 by clampdown (see edit history) Link to comment Share on other sites More sharing options...
Inform-All Posted April 8, 2016 Share Posted April 8, 2016 If you install your prestashop you have to change the name of the admin folder. So I dont know your direct link but the /adminXXX/ should be whatever you called it. (the link where you visit your backoffice) Link to comment Share on other sites More sharing options...
masterblaster Posted April 9, 2016 Share Posted April 9, 2016 I had a similar problem in the past, it depended on a server update that messed up the permissions of /var/lib/php/session on the machine. This lead to a series of problems, including the file manager not working due to upload problems. In my case I had two errors in error_log : 1 ) The chmod warning clampdown just posted. 2 ) A generic "cannot create session file" in mail webserver error_log. Of course I solved the problem restoring the right permissions. I am not sure it is the same problem, but you could/should have your hosting check for that. 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