File Manager Add-on Support Product Page
In progress
Not seeing uploaded files in File manager
Reported 28 May 2015 01:02:01
1
has this problem
28 May 2015 01:02:01 Phil Boyle posted:
Just recently file manager stopped showing the files in file manager. It is doing everything else but not showing the contents of the directory , it just showing the spinning loading symbol.It works just fine on my local testing server. My hosting company suggested this:
If you are using a hard-coded path for;
C:\HostingSpaces\NBClub\napierbridge.org.nz\wwwroot\
Try changing this to the path below and see if that resolved the issue for you;
D:\HostingSpaces\NBClub\napierbridge.org.nz\wwwroot\
But I don't how to make this change. Would this work and how do I make the change or do you have other suggestions?
I tried looking through the support archives but the one problem that was similar but it had no answer.
Replies
Replied 28 May 2015 07:39:36
28 May 2015 07:39:36 Teodor Kuduschiev replied:
Hello Phil,
Could you please provide a link to your page, where we can test/debug this? Use if this page requires login.
Could you please provide a link to your page, where we can test/debug this? Use if this page requires login.
Replied 29 May 2015 01:55:33
29 May 2015 01:55:33 Phil Boyle replied:
Hi Teodor
I have emailed the log in details. Thanks
The hosting company have tried to explain in more detail. see below:
Sorry I did not make myself clear, the path to your website has changed from;
C:\HostingSpaces\NBClub\napierbridge.org.nz\wwwroot\
To;
D:\HostingSpaces\NBClub\napierbridge.org.nz\wwwroot\
A symbolic link has been created for the old path to work, but this sometimes does not work as expected with PHP.
If in your PHP code you are using the old path to the websites files try changing your PHP code to use the new path to see if that fixes the issue.
Thanks again
Phil
I have emailed the log in details. Thanks
The hosting company have tried to explain in more detail. see below:
Sorry I did not make myself clear, the path to your website has changed from;
C:\HostingSpaces\NBClub\napierbridge.org.nz\wwwroot\
To;
D:\HostingSpaces\NBClub\napierbridge.org.nz\wwwroot\
A symbolic link has been created for the old path to work, but this sometimes does not work as expected with PHP.
If in your PHP code you are using the old path to the websites files try changing your PHP code to use the new path to see if that fixes the issue.
Thanks again
Phil
Replied 16 Jun 2015 00:48:30
16 Jun 2015 00:48:30 Phil Boyle replied:
Another client has just reported this problem. And as I have used it a quite a bit I expect to get a few more with the same problem.
Replied 16 Jun 2015 07:48:56
16 Jun 2015 07:48:56 Teodor Kuduschiev replied:
Hello Phil,
It seems there is some issue with the MIME types on your server. It doesn't seem to recognize some of the file types uploaded in the folder. Please check the MIME types settings on your server. There is a notice saying: "<b>Notice</b>: filetype(): Unknown file type " Please check if jpg/pdf etc files types are properly defined.
It seems there is some issue with the MIME types on your server. It doesn't seem to recognize some of the file types uploaded in the folder. Please check the MIME types settings on your server. There is a notice saying: "<b>Notice</b>: filetype(): Unknown file type " Please check if jpg/pdf etc files types are properly defined.
Replied 17 Jun 2015 00:09:37
17 Jun 2015 00:09:37 Phil Boyle replied:
Thanks Teodor . I will pass this on to the hosting company and see what they can find.
Replied 18 Jun 2015 00:25:27
18 Jun 2015 00:25:27 Phil Boyle replied:
Hi Teodor
Here is what the hosting company have to say:
MIME file types for JPG and PDF are all set correctly for your website.
I have attached screen shots that show both the PDF and JPG MIME settings set for your website napierbridge.org.nz.
The only change that has been made to web servers that could affect your file manage is the change from c drive to d drive.
If you are using hard coded paths in your file manager eg: c:/path-to-website, this this should be changed to d:/path-to-website
It is becoming increasingly more urgent as other clients are discovering the problem.
Here is what the hosting company have to say:
MIME file types for JPG and PDF are all set correctly for your website.
I have attached screen shots that show both the PDF and JPG MIME settings set for your website napierbridge.org.nz.
The only change that has been made to web servers that could affect your file manage is the change from c drive to d drive.
If you are using hard coded paths in your file manager eg: c:/path-to-website, this this should be changed to d:/path-to-website
It is becoming increasingly more urgent as other clients are discovering the problem.
Replied 18 Jun 2015 08:45:24
18 Jun 2015 08:45:24 Teodor Kuduschiev replied:
Hm, this looks strange. Can you ask them what else is different? The path is not a problem as we are not using hard-coded paths... none of our scripts use such.
It is an internal PHP function that generates those notices php.net/manual/en/function.filetype.php
There is either a different PHP version, different OS, different filesystem that might be causing this.
It is an internal PHP function that generates those notices php.net/manual/en/function.filetype.php
<b>Notice</b>: filetype(): Unknown file type (0)
There is either a different PHP version, different OS, different filesystem that might be causing this.
Replied 18 Jun 2015 11:03:25
18 Jun 2015 11:03:25 Teodor Kuduschiev replied:
Please add:
After the opening php tag in the ScriptLibrary/dmxEditor/extensions/FileManager/FileManager.php file, then just let me know when you do this.
error_reporting(0); clearstatcache();
After the opening php tag in the ScriptLibrary/dmxEditor/extensions/FileManager/FileManager.php file, then just let me know when you do this.
Replied 19 Jun 2015 00:38:13
19 Jun 2015 00:38:13 Phil Boyle replied:
Hi Teodor
I have added those bits of code as requested.
I have added those bits of code as requested.
Replied 19 Jun 2015 02:41:48
19 Jun 2015 02:41:48 Phil Boyle replied:
Hi Teodor
The problem is spreading. I have just been looking at another client's website that uses file genie to display a photo gallery and it works but I get this error for every single thumbnail:
Notice: filetype(): Unknown file type (0) in D:\HostingSpaces\NCS\napiercentral.net.nz\wwwroot\ScriptLibrary\incFileGenie.php on line 173
go here napiercentral.school.nz/gallery.php?aYear=2015 and click one of the galleries.
The problem is spreading. I have just been looking at another client's website that uses file genie to display a photo gallery and it works but I get this error for every single thumbnail:
Notice: filetype(): Unknown file type (0) in D:\HostingSpaces\NCS\napiercentral.net.nz\wwwroot\ScriptLibrary\incFileGenie.php on line 173
go here napiercentral.school.nz/gallery.php?aYear=2015 and click one of the galleries.
Replied 19 Jun 2015 06:57:57
19 Jun 2015 06:57:57 Teodor Kuduschiev replied:
This once again proves there is some issue with the hosting server ... as i explained already
It is a PHP function that generates those notices -> php.net/manual/en/function.filetype.php it is not the extension itself that has issues with its code. Please let your hosting provider know that this function (the one from the link i posted) generates such notices.
It is a PHP function that generates those notices -> php.net/manual/en/function.filetype.php it is not the extension itself that has issues with its code. Please let your hosting provider know that this function (the one from the link i posted) generates such notices.
Replied 21 Jun 2015 23:45:48
21 Jun 2015 23:45:48 Phil Boyle replied:
The hosting company suggested re-uploading all related php pages as a suggestion. I was going to do this and when I made the ftp connection the ftp software asked me did I went to accept the connection to the server which is unusual. Then before re-uploading the php pages I went to check that the problem still existed and it didn't, file manager is now working perfectly. I don't know what the hosting company did but it worked, they did say they couldn't do anything, I've now asked them to look at the other website with the same problems.
Thanks with your help, hopefully this will all be resolved.
Regards
Phil
Thanks with your help, hopefully this will all be resolved.
Regards
Phil