Hello. I have a Windows Plesk Hosting here and when I upload an elearning course I have this message: GET http://elearning.enaspot.com/Samples/VariablesManipulationAndPrintingPDF/dr/imgmd.json 404 (Not Found)
This was never happening before and while I am previewing it locally everything works OK, only on Godaddy hosting is problematic. Generally, I would've contacted the support center but I don't have number from eastern european countries and the chat is offline 24/7, so the only possible way to present the problem publicly is here.
I have read about configuring MIME types, which I did, but nothing changed, I still cannot view the project
I am total beginner in the field, so I don't understand much. Any help would be appreciated. Thanks
Good evening... or morning depending on where you're at.
Are you able to view your files via FTP or sFTP? Can you confirm that a file called imgmd.json exist in your hosting?
Just a pro tip:
If something about your work is not working. Do not immediately assume that it is a problem caused by something or someone other than yourself. You'll advance quicker that way
Hello and thanks for the answer.
Yes, I can confirm the file is present in the location. Actually, everything is OK when I view the project locally. The problem happens only when it is uploaded on my hosting.
This is a very odd situation indeed. The other thing I can think of is that apache is not added as json handler but even then... The only reason why apache would throw an ERROR 404 is if the file does not exist
Here is a screenshot of FileZilla where its shown that the imgmd.json is presented in the right location.
About the comment that "apache is not added as json handler" I am not sure what does that means. Also, I have read somewhere that I should add MIME types in the web.config file, so I added these lines:
<mimeMap fileExtension=".json" mimeType="application/json" />
but it does not help.
I'm only vaguely familiar with IIS, I assume that that's what you're using, but it should also have an equivalent for handlers.
As far as I know... The thing about IIS is that if you do not specify mime and handler. It will protect it by not serving it by default.
Yes, but I think I have specified it in the webconfig file.
It is so problematic without adequate technical support, I cannot call their support since there is no number for my country and the chat is always offline.
Anyway, thank you very much for trying to help @JHasselbring.
Would you like me to take a look?
@boilingxpoint- Did you ever get a resolution to this? I'm experiencing the same problem: Project runs on web servers other than GoDaddy. GoDaddy throws a 404 on all the json files, which are on the server. Reviewed mime type docs in help, but didn't resolve anything for me.
I'm sure you have found some solution. There is a solution I found.
Just change the extension .json to .txt it will solve the problem
-- it will not affect the program.
bit late to the party but , in the new plesk control panel under web server settings add mime type
any one of the above. and press ok. this will solve the problem